|
@@ -64,6 +64,7 @@
|
|
class="inline-block"
|
|
class="inline-block"
|
|
>
|
|
>
|
|
<el-input-number
|
|
<el-input-number
|
|
|
|
+ v-if="modalForm.examNumberStyle === 'FILL'"
|
|
v-model="modalForm.examNumberDigit"
|
|
v-model="modalForm.examNumberDigit"
|
|
:min="5"
|
|
:min="5"
|
|
:max="15"
|
|
:max="15"
|
|
@@ -72,7 +73,9 @@
|
|
:controls="false"
|
|
:controls="false"
|
|
style="width: 100px"
|
|
style="width: 100px"
|
|
></el-input-number>
|
|
></el-input-number>
|
|
- <!-- {{ modalForm.examNumberDigit }} -->
|
|
|
|
|
|
+ <span v-else>
|
|
|
|
+ {{ modalForm.examNumberDigit }}
|
|
|
|
+ </span>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- <el-form-item prop="paperType" label="AB卷版式:" class="inline-block">
|
|
<!-- <el-form-item prop="paperType" label="AB卷版式:" class="inline-block">
|
|
<el-select
|
|
<el-select
|
|
@@ -184,7 +187,7 @@ const initModalForm = {
|
|
name: "",
|
|
name: "",
|
|
remark: "",
|
|
remark: "",
|
|
examNumberStyle: "",
|
|
examNumberStyle: "",
|
|
- examNumberDigit: 8,
|
|
|
|
|
|
+ examNumberDigit: 10,
|
|
paperType: "PRINT",
|
|
paperType: "PRINT",
|
|
examAbsent: true,
|
|
examAbsent: true,
|
|
discipline: true,
|
|
discipline: true,
|
|
@@ -360,6 +363,9 @@ export default {
|
|
},
|
|
},
|
|
numStyleChange() {
|
|
numStyleChange() {
|
|
this.modalForm.writeSign = this.modalForm.examNumberStyle !== "FILL";
|
|
this.modalForm.writeSign = this.modalForm.examNumberStyle !== "FILL";
|
|
|
|
+ if (this.modalForm.examNumberStyle !== "FILL") {
|
|
|
|
+ this.modalForm.examNumberDigit = 10;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
async submit() {
|
|
async submit() {
|
|
const valid = await this.$refs.modalFormComp.validate().catch(() => {});
|
|
const valid = await this.$refs.modalFormComp.validate().catch(() => {});
|