diff --git a/src/views/Customer/AgentManagement.vue b/src/views/Customer/AgentManagement.vue
index 5817b7e..6d5a386 100644
--- a/src/views/Customer/AgentManagement.vue
+++ b/src/views/Customer/AgentManagement.vue
@@ -33,21 +33,17 @@
@@ -506,6 +502,37 @@ export default {
}
},
},
+ props1: {
+ lazy: true,
+ checkStrictly: true,
+ async lazyLoad(node, resolve) {
+ // console.log(node, 123);
+ const { level } = node;
+ if (level == 0) {
+ console.log(23);
+ const { data } = await getAreaList({ parentId: 0 }); //获取省接口
+ var nodes = data.map((item) => {
+ return {
+ value: item.id,
+ label: item.name,
+ leaf: false,
+ };
+ });
+ resolve(nodes);
+ } else if (level == 1) {
+ const { data } = await getAreaList({ parentId: node.data.value }); //获取市接口
+ var nodes = data.map((item) => {
+ return {
+ value: item.id,
+ label: item.name,
+ leaf: true,
+ };
+ });
+ resolve(nodes);
+ }
+ },
+ },
+ area:[],
options: [
{
value: "0",
@@ -523,6 +550,7 @@ export default {
dialogVisible3:false,
operaVisible:false,
provinceId:'',
+ cityId:'',
areaList:[],
timelist:'',
tableData: [],
@@ -676,7 +704,7 @@ export default {
this.serviceStatus=this.$route.query.serviceStatus;
}
// 获取地区列表
- this.getCityList()
+ // this.getCityList()
this.getAgentList()
},
methods: {
@@ -992,7 +1020,9 @@ export default {
this.agentName='';
this.operationalName='';
this.provinceId=''
+ this.cityId=''
this.pageNum=1
+ this.area=[]
this.getAgentList()
},
//筛选
@@ -1010,6 +1040,7 @@ export default {
serviceStatus:this.serviceStatus,
agentName:this.agentName,
provinceId:this.provinceId,
+ cityId:this.cityId,
operationalName:this.operationalName,
}).then((res) => {
@@ -1031,6 +1062,12 @@ export default {
this.editoragentobj.provinceId = e[0];
this.editoragentobj.cityId = e[1];
}
+ },
+ locationsChange1(e) {
+ console.log(e);
+ if (!e) return;
+ this.provinceId = e[0];
+ this.cityId = e[1];
},
handleCurrentChange(val) {
this.pageNum=val;
diff --git a/src/views/Customer/CompanyRecord.vue b/src/views/Customer/CompanyRecord.vue
index b688fd0..8b07233 100644
--- a/src/views/Customer/CompanyRecord.vue
+++ b/src/views/Customer/CompanyRecord.vue
@@ -22,7 +22,7 @@
地区:
-
-
+ -->
+
@@ -565,6 +576,37 @@ export default {
}
},
},
+ props1: {
+ lazy: true,
+ checkStrictly: true,
+ async lazyLoad(node, resolve) {
+ // console.log(node, 123);
+ const { level } = node;
+ if (level == 0) {
+ console.log(23);
+ const { data } = await getAreaList({ parentId: 0 }); //获取省接口
+ var nodes = data.map((item) => {
+ return {
+ value: item.id,
+ label: item.name,
+ leaf: false,
+ };
+ });
+ resolve(nodes);
+ } else if (level == 1) {
+ const { data } = await getAreaList({ parentId: node.data.value }); //获取市接口
+ var nodes = data.map((item) => {
+ return {
+ value: item.id,
+ label: item.name,
+ leaf: true,
+ };
+ });
+ resolve(nodes);
+ }
+ },
+ },
+ area:[],
addagentobj: {
agentId: "", // 代理商名称
name: "", // 公司名称
@@ -738,7 +780,7 @@ export default {
mounted() {
this.orgType = localStorage.getItem("orgType");
// 获取地区列表
- this.getCityList();
+ // this.getCityList();
this.getcompanyList();
},
methods: {
@@ -1140,6 +1182,8 @@ export default {
this.name = "";
this.pageNum = 1;
this.provinceId = "";
+ this.cityId = "";
+ this.area=[]
this.getcompanyList();
},
//筛选
@@ -1153,6 +1197,7 @@ export default {
current: this.pageNum,
provinceId: this.provinceId,
size: this.pageSize,
+ cityId: this.cityId,
operatorName: this.operatorName,
operationStaffName: this.operationStaffName,
name: this.name,
@@ -1185,6 +1230,12 @@ export default {
this.editoragentobj.cityId = e[1];
}
},
+ locationsChange1(e) {
+ console.log(e);
+ if (!e) return;
+ this.provinceId = e[0];
+ this.cityId = e[1];
+ },
},
};
diff --git a/src/views/Customer/Companymanagement.vue b/src/views/Customer/Companymanagement.vue
index b67e2a7..03c93d4 100644
--- a/src/views/Customer/Companymanagement.vue
+++ b/src/views/Customer/Companymanagement.vue
@@ -21,7 +21,7 @@
地区:
-
-
+ -->
+
@@ -376,6 +387,7 @@