需求大厅调整区域条件传参

This commit is contained in:
donqi 2023-10-29 23:46:21 +08:00
parent 8c9082e503
commit 7abd4c2fe8
2 changed files with 9 additions and 4 deletions

View File

@ -15,7 +15,7 @@ export default {
// request 触发前拼接 url // request 触发前拼接 url
args.url = 'https://www.opsoul.com:8881' + args.url; args.url = 'https://www.opsoul.com:8881' + args.url;
// args.url = 'http://127.0.0.1:80' + args.url; // args.url = 'http://127.0.0.1:80' + args.url;
// args.url = 'http://192.168.10.105:80' + args.url; // args.url = 'http://192.168.10.106:80' + args.url;
if (!args.data) { if (!args.data) {
args.data = {} args.data = {}

View File

@ -355,12 +355,17 @@
params.params[condition.code] = condition.value === 1 ? 'desc' : 'asc'; params.params[condition.code] = condition.value === 1 ? 'desc' : 'asc';
} }
}) })
params.streetIds = this.workerStreetIds; params.cityIds = this.workerCityIds;
if (this.chosenArea.length === 1) { if (this.chosenArea.length === 1) {
//
params.cityIds = [this.chosenArea[0].areaId] params.cityIds = [this.chosenArea[0].areaId]
} } else if (this.chosenArea.length === 2) {
if (this.chosenArea.length === 2) { //
params.districtIds = [this.chosenArea[1].areaId] params.districtIds = [this.chosenArea[1].areaId]
} else if (this.chosenArea.length === 3) {
//
params.districtIds = [this.chosenArea[1].areaId];
params.streetIds = [this.chosenArea[2].areaId];
} }
this.$refs.loadStatusBar.showLoading(); this.$refs.loadStatusBar.showLoading();