linwenxin hace 9 meses
padre
commit
ca0f8cc16c

+ 8 - 1
src/views/workOrder/basicConfiguration/recycleCategoryServer/mixins/formItems.js

@@ -75,7 +75,7 @@ export default {
             { label: '单选', value: 'SIGIN' },
             { label: '多选', value: 'MANY' }
           ],
-          attributes: { disabled: this.formData.id ? true : false },
+          attributes: { disabled: this.formData.id || this.formData.typeAttribute == 'SPEC' ? true : false },
           formItemAttributes: {
             label: '选项属性',
             prop: 'typeOption',
@@ -96,6 +96,13 @@ export default {
             label: '属性类型',
             prop: 'typeAttribute',
             rules: [...required]
+          },
+          events: {
+            change: val => {
+              if (val == 'SPEC') {
+                this.formData.typeOption = 'SIGIN'
+              }
+            }
           }
         },
         {