소스 검색

no message

linwenxin 8 달 전
부모
커밋
d21bbe2099
1개의 변경된 파일22개의 추가작업 그리고 13개의 파일을 삭제
  1. 22 13
      src/views/workOrder/automaticDispatchConfig/streetConfiguration/index.vue

+ 22 - 13
src/views/workOrder/automaticDispatchConfig/streetConfiguration/index.vue

@@ -26,6 +26,7 @@
     </div>
     <template-page
       ref="pageRef"
+      v-if="showTableTT"
       :getList="getList"
       :columnParsing="columnParsing"
       :optionsEvensGroup="optionsEvensGroup"
@@ -123,7 +124,9 @@ export default {
         websitId: '',
         websitName: ''
       },
-      formDialog: false
+      formDialog: false,
+      websit: null,
+      showTableTT: false
     }
   },
   mounted() {
@@ -434,6 +437,12 @@ export default {
   watch: {
     filterText(val) {
       this?.$refs?.listTree?.filter?.(val)
+    },
+    websit() {
+      this.showTableTT = false
+      this.$nextTick(() => {
+        this.showTableTT = true
+      })
     }
   },
   methods: {
@@ -468,12 +477,20 @@ export default {
     },
     // 树形选中
     handleNodeClick(e) {
+      if (e.type === 'C') {
+        this.websit = { ...e }
+      } else {
+        this.websit = null
+      }
       this.$refs.pageRef.refreshList()
     },
     // 列表请求函数
     getList(pam, cb) {
       try {
         cb && cb(pam)
+        if (this.websit && this.websit.websitId) {
+          pam.params.push({ param: 'websit_id', compare: '=', value: this.websit.websitId })
+        }
         return dispatchListDispatch(pam)
       } catch (err) {}
     },
@@ -526,10 +543,6 @@ export default {
       return obj
     },
     formDialogClose() {
-      // this.provinceList: [],
-      // cityList: [],
-      // areaList: [],
-      // streetList: [],
       this.formData = {
         provinceCode: '',
         provinceName: '',
@@ -539,14 +552,10 @@ export default {
         areaName: '',
         streetCode: '',
         streetName: '',
-        categoryId: '',
-        categoryName: '',
-        dictCode: '',
-        dictValue: '',
-        orderSmallId: '',
-        orderSmallTypeText: '',
-        orderSource: '',
-        orderSourceId: '',
+        categoryIds: [],
+        orderChannelIds: [],
+        orderSmallIds: [],
+        orderSourceIds: [],
         websitId: '',
         websitName: ''
       }