linwenxin 8 mesiacov pred
rodič
commit
c71b18ad83
1 zmenil súbory, kde vykonal 17 pridanie a 3 odobranie
  1. 17 3
      src/views/commonPage/parts-config/index.vue

+ 17 - 3
src/views/commonPage/parts-config/index.vue

@@ -144,6 +144,8 @@ export default {
             change: val => {
               var data = this.websitList.find(item => item.websitId === val)
               this.formData.websitName = data?.name || ''
+              this.formData.newRefundInner = ''
+              this.formData.newRefundOutside = ''
             }
           }
         },
@@ -162,10 +164,13 @@ export default {
           }
         },
         {
+          isShow: this.formData.websitId
+            ? this.websitList.find(item => item.websitId === this.formData.websitId)?.partsWebsitAttr
+            : true,
           name: 'el-input',
           md: 8,
           attributes: {
-            disabled: this.formType !== 1,
+            disabled: this.formType === 2,
             placeholder: '请输入',
             type: 'number',
             min: 1
@@ -177,6 +182,9 @@ export default {
           }
         },
         {
+          isShow: this.formData.websitId
+            ? this.websitList.find(item => item.websitId === this.formData.websitId)?.partsWebsitAttr
+            : true,
           name: 'slot-component',
           md: 16,
           attributes: {},
@@ -190,10 +198,13 @@ export default {
           }
         },
         {
+          isShow: this.formData.websitId
+            ? !this.websitList.find(item => item.websitId === this.formData.websitId)?.partsWebsitAttr
+            : true,
           name: 'el-input',
           md: 8,
           attributes: {
-            disabled: this.formType !== 1,
+            disabled: this.formType === 2,
             placeholder: '请输入',
             type: 'number',
             min: 1
@@ -205,6 +216,9 @@ export default {
           }
         },
         {
+          isShow: this.formData.websitId
+            ? !this.websitList.find(item => item.websitId === this.formData.websitId)?.partsWebsitAttr
+            : true,
           name: 'slot-component',
           md: 16,
           attributes: {},
@@ -221,7 +235,7 @@ export default {
           name: 'el-input',
           md: 8,
           attributes: {
-            disabled: this.formType !== 1,
+            disabled: this.formType === 2,
             placeholder: '请输入',
             type: 'number',
             min: 1