|
@@ -26,7 +26,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
<el-select v-model="territorySel" clearable placeholder="省域" style="width
|
|
|
- :18%">
|
|
|
+ :18%" @change="territoryChange">
|
|
|
<el-option v-for="item in territoryList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -354,6 +354,29 @@ export default {
|
|
|
currentPage: this.currentPage,
|
|
|
}));
|
|
|
this.$router.push('/home/MCROper?id=' + 0);
|
|
|
+ },
|
|
|
+
|
|
|
+ territoryChange(sid) {
|
|
|
+ if (!sid) {
|
|
|
+ sid = 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$axios.post('/api/MarketCustomerResources/QueryClientType', {
|
|
|
+ SetDataId: sid
|
|
|
+ }, {
|
|
|
+ headers: {
|
|
|
+ 'Authorization': this.token,
|
|
|
+ },
|
|
|
+ }).then(resp => {
|
|
|
+ if (resp.data.code == 200) {
|
|
|
+ this.clientTypeList = resp.data.data; //客户类别
|
|
|
+ } else {
|
|
|
+ //js抛异常
|
|
|
+ throw new Error(resp.data.msg);
|
|
|
+ }
|
|
|
+ }).catch(err => {
|
|
|
+ this.$message.error('网络异常!');
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|