|
@@ -162,6 +162,8 @@ import {
|
|
deleteCardRule,
|
|
deleteCardRule,
|
|
getEnums,
|
|
getEnums,
|
|
} from "../api";
|
|
} from "../api";
|
|
|
|
+import { schoolSetStdnoInfo } from "@/modules/admin/api";
|
|
|
|
+
|
|
import pickerOptions from "@/constants/datePickerOptions";
|
|
import pickerOptions from "@/constants/datePickerOptions";
|
|
import ModifyCardRule from "../components/ModifyCardRule";
|
|
import ModifyCardRule from "../components/ModifyCardRule";
|
|
|
|
|
|
@@ -182,6 +184,7 @@ export default {
|
|
size: this.GLOBAL.pageSize,
|
|
size: this.GLOBAL.pageSize,
|
|
total: 0,
|
|
total: 0,
|
|
rules: [],
|
|
rules: [],
|
|
|
|
+ stdnoInfo: {},
|
|
examRule: {},
|
|
examRule: {},
|
|
curRule: {},
|
|
curRule: {},
|
|
editType: "ADD",
|
|
editType: "ADD",
|
|
@@ -227,6 +230,9 @@ export default {
|
|
}
|
|
}
|
|
this.examRule = examRule;
|
|
this.examRule = examRule;
|
|
|
|
|
|
|
|
+ const data = await schoolSetStdnoInfo(this.$ls.get("schoolId"));
|
|
|
|
+ this.stdnoInfo = data.result[0].value;
|
|
|
|
+
|
|
this.cardExtendFields = [
|
|
this.cardExtendFields = [
|
|
...extendFields,
|
|
...extendFields,
|
|
...JSON.parse(examRule.extendFields).filter((item) => item.enable),
|
|
...JSON.parse(examRule.extendFields).filter((item) => item.enable),
|
|
@@ -256,7 +262,9 @@ export default {
|
|
},
|
|
},
|
|
toAdd() {
|
|
toAdd() {
|
|
this.curRule = {
|
|
this.curRule = {
|
|
- fillNumber: this.examRule.examNumberDigit,
|
|
|
|
|
|
+ examNumberDigit: this.stdnoInfo.digit || 10,
|
|
|
|
+ containsLetter: this.stdnoInfo.containsLetter,
|
|
|
|
+ relationList: JSON.stringify(this.stdnoInfo.relationList || []),
|
|
requiredFields: this.cardRequiredFields.map((item) => {
|
|
requiredFields: this.cardRequiredFields.map((item) => {
|
|
return {
|
|
return {
|
|
code: item.code,
|
|
code: item.code,
|