修复最近的BUG

This commit is contained in:
aixianling
2024-08-15 11:01:20 +08:00
parent 9cd892a856
commit 9aa84e8a5a
2 changed files with 5 additions and 6 deletions

View File

@@ -184,7 +184,7 @@ Vue.component("tableColumn", {
return config.custom ? h('div', {
style: {color: row.preSaleNum > row.stockNum ? 'red' : '#fff'}, class: 'pointer'
}, '周边库存情况') :
h('span', row[config.prop] || '')
h('span', row[config.prop] ?? '')
}
}
})

View File

@@ -137,9 +137,8 @@ export default {
column.format ? column.format(e) : e[column.prop])) || [],
}
},
openNearbyStores({rowIndex}, store) {
const {thirdGoodsCode} = this.storeKeyGoods[rowIndex],
{storeCode, longitude, latitude} = store
openNearbyStores({thirdGoodsCode}, store) {
const {storeCode, longitude, latitude} = store
return $http.post("/data-boot/la/screen/multipleStoreBoard/aroundStock", {
type: "1", ...this.search, storeCode, longitude, latitude, thirdGoodsCode,
}).then(res => {
@@ -151,14 +150,14 @@ export default {
},
},
mounted() {
this.height = `${this.$el.clientHeight}px`
this.height = `${this.$el.clientHeight - 30}px`
}
}
</script>
<template>
<section class="AppStoresTable" @click="dialog=false">
<el-carousel indicator-position="none" :height="height" :autoplay="search.changeWay==1" @change="v=>curI=(v||0)" :interval="15000">
<el-carousel indicator-position="outside" :height="height" :autoplay="search.changeWay==1" @change="v=>curI=(v||0)" :interval="60000">
<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">