调整了一下默认为全部课区,然后对未选课区的进行全部查询
This commit is contained in:
@@ -104,7 +104,7 @@ export default {
|
||||
const {$http, $waitFor} = window
|
||||
const {groupCodeList, type, compareDate} = this.search
|
||||
console.log("筛选条件:", this.search)
|
||||
$waitFor($http && groupCodeList.length > 0 && (type != 3 || compareDate)).then(() => this.getStores())
|
||||
$waitFor($http && (type != 3 || compareDate)).then(() => this.getStores())
|
||||
.then(codes => Promise.all([this.getCameras(), this.getStoreKeyGoods(), this.getCategorySales()]).then(() => codes))
|
||||
.then((codes = []) => {
|
||||
this.stores = codes?.map(storeCode => {
|
||||
@@ -116,8 +116,8 @@ export default {
|
||||
})
|
||||
},
|
||||
getStores() {
|
||||
const {groupCodeList = []} = this.search
|
||||
return $http.get(`/data-boot/ca/screen/scStoreInfo/group/${groupCodeList[0]}`).then(res => {
|
||||
const {groupCodeList: [groupCode] = []} = this.search
|
||||
return $http.get(`/data-boot/ca/screen/scStoreInfo/group${groupCode ? `/${groupCode}` : ""}`).then(res => {
|
||||
if (res?.data) {
|
||||
return res.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user