linwenxin před 9 měsíci
rodič
revize
eed2277b9d

+ 24 - 20
src/views/workOrder/settleAccountsManagement/rewardsPunishmentsOrder/index.vue

@@ -128,7 +128,7 @@ export default {
         },
         {
           md: 6,
-          isShow: this.type == 1,
+          // isShow: this.type == 1,
           name: 'slot-component',
           attributes: { placeholder: '请输入网点名称' },
           formItemAttributes: {
@@ -163,17 +163,17 @@ export default {
             )
           }
         },
-        {
-          md: 6,
-          isShow: this.type == 0,
-          name: 'el-input',
-          attributes: { placeholder: '请输入网点名称', disabled: true },
-          formItemAttributes: {
-            label: '网点名称',
-            prop: 'websitName',
-            rules: [...required]
-          }
-        },
+        // {
+        //   md: 6,
+        //   isShow: this.type == 0,
+        //   name: 'el-input',
+        //   attributes: { placeholder: '请输入网点名称', disabled: true },
+        //   formItemAttributes: {
+        //     label: '网点名称',
+        //     prop: 'websitName',
+        //     rules: [...required]
+        //   }
+        // },
         {
           md: 6,
           isShow: true,
@@ -420,14 +420,18 @@ export default {
       })
     },
     getWebsit() {
-      if (this.type == 0) {
-        // this.formData.websitId = JSON.parse(localStorage.getItem('greemall_user')).adminWebsitId
-        // this.formData.websitName = JSON.parse(localStorage.getItem('greemall_user')).nickName
-      } else {
-        getWebsit({ type: 'C' }).then(res => {
-          this.websitList = res.data
-        })
-      }
+      getWebsit({ type: 'C' }).then(res => {
+        this.websitList = res.data
+      })
+      // if (this.type == 0) {
+      //   console.log(JSON.parse(localStorage.getItem('greemall_user')))
+      //   this.formData.websitId = JSON.parse(localStorage.getItem('greemall_user')).adminWebsitId
+      //   this.formData.websitName = JSON.parse(localStorage.getItem('greemall_user')).nickName
+      // } else {
+      //   getWebsit({ type: 'C' }).then(res => {
+      //     this.websitList = res.data
+      //   })
+      // }
     },
     getWorker() {
       getWorker({