提交一下

This commit is contained in:
aixianling
2024-06-24 19:23:05 +08:00
parent c868d651d2
commit 6b74b90784
2 changed files with 4 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ export default {
.then(() => Promise.all([this.getCameras(), this.getStoreKeyGoods(), this.getCategorySales()]))
.then(() => {
this.stores = this.stores?.map(storeCode => {
const {storeCameraVOList, storeName} = this.cameras.find(e => e.storeCode == storeCode) || {}
const {storeCameraVOList = [], storeName} = this.cameras.find(e => e.storeCode == storeCode) || {}
const keyGoods = this.storeKeyGoods.filter(e => e.storeCode == storeCode) || []
const categorySale = this.categorySales.filter(e => e.storeCode == storeCode) || []
return {storeCode, storeName, camera: storeCameraVOList.map(e => e.cameraUrl), keyGoods, categorySale}
@@ -108,7 +108,7 @@ export default {
},
getCameras() {
return $http.post("/data-boot/la/screen/multipleStoreBoard/storeCamera", {
...this.search,
...this.search, limit: 999
}).then(res => {
if (res?.data) {
this.cameras = res.data?.records || []