|
@@ -46,18 +46,27 @@
|
|
|
>启用</el-checkbox
|
|
|
>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="大题数">
|
|
|
- <ul class="topicno-list" v-if="topicSeries.length">
|
|
|
- <li>{{ topicSeries.length }}</li>
|
|
|
+ <el-form-item label="大题顺序">
|
|
|
+ <ul class="topicno-list" v-if="topicNoSeries.length">
|
|
|
+ <li v-for="item in topicNoSeries" :key="item.id">
|
|
|
+ {{ item.topicNo }}
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
+ <el-button type="text" class="btn-primary" @click="toViewStruct"
|
|
|
+ >查看题卡结构<i class="el-icon-arrow-right"></i
|
|
|
+ ></el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+
|
|
|
+ <!-- PageStructDialog -->
|
|
|
+ <page-struct-dialog ref="PageStructDialog"></page-struct-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { mapState, mapMutations, mapActions } from "vuex";
|
|
|
import { objAssign } from "../plugins/utils";
|
|
|
+import PageStructDialog from "./PageStructDialog.vue";
|
|
|
|
|
|
const COLUMN_OPTIONS = [
|
|
|
{
|
|
@@ -92,6 +101,7 @@ const COLUMN_OPTIONS = [
|
|
|
|
|
|
export default {
|
|
|
name: "page-prop-edit",
|
|
|
+ components: { PageStructDialog },
|
|
|
data() {
|
|
|
return {
|
|
|
columnOptions: [],
|
|
@@ -108,7 +118,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapState("card", ["curPageNo", "pages", "cardConfig", "topicSeries"]),
|
|
|
+ ...mapState("card", ["curPageNo", "pages", "cardConfig", "topicNoSeries"]),
|
|
|
curPage() {
|
|
|
return this.pages[this.curPageNo];
|
|
|
}
|
|
@@ -188,6 +198,9 @@ export default {
|
|
|
.catch(() => {
|
|
|
this.form.pageSize = this.prePageSize;
|
|
|
});
|
|
|
+ },
|
|
|
+ toViewStruct() {
|
|
|
+ this.$refs.PageStructDialog.open();
|
|
|
}
|
|
|
}
|
|
|
};
|