商品管理更新

This commit is contained in:
2024-09-29 16:13:27 +08:00
parent 74c6237037
commit 8229afcc8e
6 changed files with 28 additions and 18 deletions

View File

@@ -50,8 +50,11 @@
<template v-if="pageData.hasAjax&&!pageData.goodsList.length">
<my-img-empty tips="未找到相关商品"></my-img-empty>
</template>
<my-pagination :totalElements="pageData.totalElements" :size="pageData.query.size"
@change="pageChange"></my-pagination>
<template v-if="pageData.goodsList.length">
<my-pagination :totalElements="pageData.totalElements" :size="pageData.query.size"
@change="pageChange"></my-pagination>
</template>
<view style="height: 100rpx;"></view>
</view>
@@ -476,11 +479,15 @@
}
});
}
function resetQuery(){
pageData.totalElements=0;
pageData.query.page=0;
}
function statesTableClick(index) {
pageData.stateCurrent = index
pageData.stateCurrent = index;
resetQuery()
console.log(index);
if(index==0){
pageData.query.isPauseSale=''
@@ -540,6 +547,7 @@
function searchFunc() {
console.log('searchFunc');
resetQuery()
getGoodsList()
}