提交一下
This commit is contained in:
@@ -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()
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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 || []
|
||||
|
||||
Reference in New Issue
Block a user