瀏覽代碼

no message

linwenxin 9 月之前
父節點
當前提交
ca0f8cc16c
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/views/workOrder/basicConfiguration/recycleCategoryServer/mixins/formItems.js

+ 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'
+              }
+            }
           }
         },
         {