BUG 20240827 5
This commit is contained in:
@@ -63,8 +63,12 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
search: {
|
||||
immediate: true, deep: true, handler() {
|
||||
this.getData()
|
||||
immediate: true, deep: true, handler(v) {
|
||||
this.getData().then(() => {
|
||||
if (v.interval > 0 && v.changeWay == '1') {
|
||||
this.$refs.carousel?.$forceUpdate()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -73,7 +77,7 @@ export default {
|
||||
const {$http, $waitFor} = window
|
||||
const {groupCodeList, type, compareDate} = this.search
|
||||
console.log("筛选条件:", this.search)
|
||||
$waitFor($http && (type != 3 || compareDate)).then(() => this.getStores())
|
||||
return $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 => {
|
||||
@@ -171,7 +175,7 @@ export default {
|
||||
|
||||
<template>
|
||||
<section class="AppStoresTable" @click="dialog=false">
|
||||
<el-carousel ref="carousel" indicator-position="outside" :height="height" :autoplay="search.changeWay==1" @change="v=>curI=(v||0)" :interval="60000">
|
||||
<el-carousel ref="carousel" indicator-position="outside" :height="height" :autoplay="search.changeWay==1" @change="v=>curI=(v||0)" :interval="search.interval">
|
||||
<el-carousel-item v-for="(group,i) in storeList" :key="i">
|
||||
<div class="layout">
|
||||
<div class="store" v-for="store in group" :key="store.storeCode">
|
||||
|
||||
Reference in New Issue
Block a user