瀏覽代碼

Merge branch 'feature/v1.5.9' of http://192.168.3.207:8080/jianyu/page_bigmember_pc into feature/v1.5.9

yangfeng 3 年之前
父節點
當前提交
879d9573af
共有 1 個文件被更改,包括 17 次插入10 次删除
  1. 17 10
      src/views/medical/DistributorSearch.vue

+ 17 - 10
src/views/medical/DistributorSearch.vue

@@ -110,18 +110,29 @@ export default {
   },
   methods: {
     changeSubmitInfo (type) {
+      this.filters.searchbool = 1
       if (type) {
-        this.filters.searchbool = 1
         const getSelected = this.$refs.businessScopeSelector.getState()
         this.changeBusiness(getSelected)
         this.$refs.pushList.doQuery(this.filters)
       } else {
-        this.filters = Object.assign({}, this.$options.data.bind(this)().filters)
+        // this.filters = Object.assign({}, this.$options.data.bind(this)().filters)
         this.filters.area_code = this.subArea
-        this.$refs.areaSelector.setCitySelected()
-        this.$refs.businessScopeSelector.setState()
-        this.changeBusiness([])
-        // this.recoverCreate()
+        this.filters.business_scope = []
+        this.filters.business = {}
+        this.filters.company_name = ''
+        this.filters.brand = ''
+        this.filters.product_model = ''
+        this.filters.productList = [
+          {
+            value: ''
+          }
+        ]
+        try {
+          this.$refs.areaSelector.setCitySelected()
+          this.$refs.businessScopeSelector.setState()
+          this.$refs.pushList.doQuery()
+        } catch (error) {}
       }
     },
     addProduct () {
@@ -132,10 +143,6 @@ export default {
     delProduct (i) {
       this.filters.productList.splice(i, 1)
     },
-    // recoverCreate () {
-    //   this.filters.searchbool = 1
-    //   this.$refs.pushList.doQuery(this.filters)
-    // },
     onCloseDrawer (data) {
       this.showDrawer = data
     },