|
@@ -42,7 +42,7 @@
|
|
|
<!-- <el-form-item label="禁答区域">
|
|
|
<el-checkbox
|
|
|
v-model="form.showForbidArea"
|
|
|
- @change="showForbidAreaChange"
|
|
|
+ @change="cardConfigChange"
|
|
|
>启用</el-checkbox
|
|
|
>
|
|
|
</el-form-item> -->
|
|
@@ -56,10 +56,24 @@
|
|
|
>查看题卡结构<i class="el-icon-arrow-right"></i
|
|
|
></el-button>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="考生承诺书" label-width="80px">
|
|
|
+ <el-checkbox v-model="form.undertakingEnable" @change="cardConfigChange"
|
|
|
+ >启用</el-checkbox
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ v-if="form.undertakingEnable"
|
|
|
+ type="text"
|
|
|
+ class="btn-primary ml-2"
|
|
|
+ @click="toEditUndertaking"
|
|
|
+ >编辑</el-button
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
<!-- PageStructDialog -->
|
|
|
<page-struct-dialog ref="PageStructDialog"></page-struct-dialog>
|
|
|
+ <!-- EditUndertaking -->
|
|
|
+ <edit-undertaking ref="EditUndertaking"></edit-undertaking>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -67,6 +81,7 @@
|
|
|
import { mapState, mapMutations, mapActions } from "vuex";
|
|
|
import { objAssign } from "../plugins/utils";
|
|
|
import PageStructDialog from "./PageStructDialog.vue";
|
|
|
+import EditUndertaking from "../elements/undertaking/EditUndertaking.vue";
|
|
|
|
|
|
const COLUMN_OPTIONS = [
|
|
|
{
|
|
@@ -101,7 +116,7 @@ const COLUMN_OPTIONS = [
|
|
|
|
|
|
export default {
|
|
|
name: "page-prop-edit",
|
|
|
- components: { PageStructDialog },
|
|
|
+ components: { PageStructDialog, EditUndertaking },
|
|
|
data() {
|
|
|
return {
|
|
|
columnOptions: [],
|
|
@@ -113,6 +128,7 @@ export default {
|
|
|
columnGap: 4,
|
|
|
aOrB: false,
|
|
|
showForbidArea: false,
|
|
|
+ undertakingEnable: false,
|
|
|
},
|
|
|
prePageSize: "A3",
|
|
|
};
|
|
@@ -168,7 +184,7 @@ export default {
|
|
|
this.setTopicSeries([]);
|
|
|
this.$emit("init-page");
|
|
|
},
|
|
|
- showForbidAreaChange() {
|
|
|
+ cardConfigChange() {
|
|
|
this.setCardConfig(this.form);
|
|
|
},
|
|
|
configChange() {
|
|
@@ -199,6 +215,9 @@ export default {
|
|
|
toViewStruct() {
|
|
|
this.$refs.PageStructDialog.open();
|
|
|
},
|
|
|
+ toEditUndertaking() {
|
|
|
+ this.$refs.EditUndertaking.open();
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|