From cbf941d01f7b625003b448aeaa25657d414027b4 Mon Sep 17 00:00:00 2001 From: spring <2396852758@qq.com> Date: 星期四, 10 七月 2025 10:09:25 +0800 Subject: [PATCH] 添加多个产品层级时,后面删除按钮点击不到(需要对层级数量做限制)(跟缪总确认,3个层级) --- src/views/basicData/product/index.vue | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/basicData/product/index.vue b/src/views/basicData/product/index.vue index d71d7cb..d07f5a2 100644 --- a/src/views/basicData/product/index.vue +++ b/src/views/basicData/product/index.vue @@ -55,7 +55,7 @@ > 缂栬緫 </el-button> - <el-button type="primary" link @click="openProDia('add', data)"> + <el-button type="primary" link @click="openProDia('add', data)" :disabled="node.level >= 3"> 娣诲姞浜у搧 </el-button> <el-button @@ -97,7 +97,6 @@ @selection-change="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination" - :total="total" ></PIMTable> </div> <el-dialog v-model="productDia" title="浜у搧" width="400px"> @@ -227,11 +226,11 @@ const tableData = ref([]); const tableLoading = ref(false); const isShowButton = ref(false); -const total = ref(0); const selectedRows = ref([]); const page = reactive({ current: 1, size: 10, + total: 0, }); const data = reactive({ form: { @@ -388,7 +387,7 @@ }).then((res) => { console.log("res", res); tableData.value = res.records; - total.value = res.total; + page.total = res.total; tableLoading.value = false; }); }; -- Gitblit v1.9.3