提交一下
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="AppDatePicker">
|
<section class="AppDatePicker">
|
||||||
<div class="label">时段</div>
|
<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-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</section>
|
</section>
|
||||||
@@ -23,7 +23,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleSearch(v) {
|
handleSearch(v) {
|
||||||
const list = this.refs['6e6c93d7-5b24-4d75-a0d0-4beb130045ed'].$refs.main
|
const list = this.refs['6e6c93d7-5b24-4d75-a0d0-4beb130045ed'].$refs.main
|
||||||
list.search.hourNum = v
|
list.search.hourNum = `${v}`.padStart(2, '0')
|
||||||
list.getData()
|
list.getData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ export default {
|
|||||||
.then(() => Promise.all([this.getCameras(), this.getStoreKeyGoods(), this.getCategorySales()]))
|
.then(() => Promise.all([this.getCameras(), this.getStoreKeyGoods(), this.getCategorySales()]))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.stores = this.stores?.map(storeCode => {
|
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 keyGoods = this.storeKeyGoods.filter(e => e.storeCode == storeCode) || []
|
||||||
const categorySale = this.categorySales.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}
|
return {storeCode, storeName, camera: storeCameraVOList.map(e => e.cameraUrl), keyGoods, categorySale}
|
||||||
@@ -108,7 +108,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getCameras() {
|
getCameras() {
|
||||||
return $http.post("/data-boot/la/screen/multipleStoreBoard/storeCamera", {
|
return $http.post("/data-boot/la/screen/multipleStoreBoard/storeCamera", {
|
||||||
...this.search,
|
...this.search, limit: 999
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.cameras = res.data?.records || []
|
this.cameras = res.data?.records || []
|
||||||
|
|||||||
Reference in New Issue
Block a user