调整table滚动兼顾使用滚动条

This commit is contained in:
2024-08-05 03:28:19 +08:00
parent 1d8d0a05e5
commit 5fc5146d01
10 changed files with 81 additions and 55 deletions

View File

@@ -36,9 +36,8 @@ export default {
}
},
methods: {
openNearbyStores({rowIndex}) {
const {thirdGoodsCode} = this.tableData[rowIndex],
{storeCode, longitude, latitude} = this.$storeBoard.store
openNearbyStores({thirdGoodsCode}) {
const {storeCode, longitude, latitude} = this.$storeBoard.store
return $http.post("/data-boot/la/screen/multipleStoreBoard/aroundStock", {
type: "1", ...this.search, storeCode, longitude, latitude, thirdGoodsCode,
}).then(res => {
@@ -55,7 +54,8 @@ export default {
<template>
<section class="AppStoreKeyGoods">
<div class="subTitle" v-text="'重点单品情况'"/>
<dv-scroll-board :config="tableConfig" @click="openNearbyStores" @click.native.stop/>
<scroll-table :table-data="tableData" :columns="columns" @click="openNearbyStores" @click.native.stop/>
<!--<dv-scroll-board :config="tableConfig" @click="openNearbyStores" @click.native.stop/>-->
</section>
</template>