yuanrf 1 month ago
parent
commit
6cf6dc5f86
1 changed files with 4 additions and 5 deletions
  1. 4 5
      src/components/MCR/MarketCustomerResourcesHome.vue

+ 4 - 5
src/components/MCR/MarketCustomerResourcesHome.vue

@@ -26,7 +26,7 @@
                         </el-option>
                     </el-select>
                     <el-select v-model="territorySel" clearable placeholder="省域" style="width
-                    :18%" @change="territoryChange">
+                    :18%" @change="(val) => { this.clientTypeSel = ''; territoryChange(); }">
                         <el-option v-for="item in territoryList" :key="item.id" :label="item.name" :value="item.id">
                         </el-option>
                     </el-select>
@@ -268,6 +268,7 @@ export default {
                         console.log(that.pageloadData.pageIndex, parseInt(that.pageloadData.pageIndex), 'that.pageloadData.pageIndex')
                         that.currentPage = parseInt(that.pageloadData.pageIndex);
                     }
+                    that.territoryChange();
                     that.loading = false;
 
                 } else if (resp.data.code == 400) {
@@ -356,13 +357,11 @@ export default {
             this.$router.push('/home/MCROper?id=' + 0);
         },
 
-        territoryChange(sid) {
+        territoryChange() {
+            var sid = this.territorySel;
             if (!sid) {
                 sid = 0;
             }
-
-            this.clientTypeSel = '';
-
             this.$axios.post('/api/MarketCustomerResources/QueryClientType', {
                 SetDataId: sid
             }, {