|
@@ -1,5 +1,5 @@
|
|
|
-import { switchSerialNumber, computedQuestionNumber } from '../../../data/common';
|
|
|
-import { snGenerationMethodList } from '@/views/book/courseware/data/common';
|
|
|
+import { switchSerialNumber, computedQuestionNumber, isEnable } from '../../../data/common';
|
|
|
+import { snGenerationMethodList, checkString } from '@/views/book/courseware/data/common';
|
|
|
|
|
|
import SerialNumberPosition from '@/views/book/courseware/create/components/common/SerialNumberPosition.vue';
|
|
|
|
|
@@ -9,9 +9,18 @@ const mixin = {
|
|
|
switchSerialNumber,
|
|
|
computedQuestionNumber,
|
|
|
snGenerationMethodList,
|
|
|
+ checkString,
|
|
|
+ isEnable,
|
|
|
};
|
|
|
},
|
|
|
components: { SerialNumberPosition },
|
|
|
+ watch: {
|
|
|
+ 'property.serial_number': {
|
|
|
+ handler(val) {
|
|
|
+ this.property.sn_type = checkString(val); // 序号与序号类型需保持匹配
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
/**
|
|
|
* @description 设置属性
|