提交一下

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

@@ -1,7 +1,7 @@
<template>
<section class="AppDatePicker">
<div class="label">时段</div>
<el-select v-model="value" :picker-options="options" size="small" format="HH:mm" value-format="H" @change="handleSearch">
<el-select v-model="value" :picker-options="options" size="small" format="HH:mm" value-format="HH" @change="handleSearch">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"/>
</el-select>
</section>
@@ -23,7 +23,7 @@ export default {
methods: {
handleSearch(v) {
const list = this.refs['6e6c93d7-5b24-4d75-a0d0-4beb130045ed'].$refs.main
list.search.hourNum = v
list.search.hourNum = `${v}`.padStart(2, '0')
list.getData()
}
},

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 || []