From 24c4699005da96f45562d7057d80c103b8e428a2 Mon Sep 17 00:00:00 2001 From: WangHan <wwh_work@126,com> Date: 星期五, 03 一月 2025 10:32:34 +0800 Subject: [PATCH] 子级分类在用删除 --- admin-web/src/views/foundation/material/index.vue | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/admin-web/src/views/foundation/material/index.vue b/admin-web/src/views/foundation/material/index.vue index e436695..88ba642 100644 --- a/admin-web/src/views/foundation/material/index.vue +++ b/admin-web/src/views/foundation/material/index.vue @@ -218,7 +218,7 @@ { title: '缂栬緫', events: (row) => { - this.showAudit(row); + this.showAdd(row.id); }, }, { @@ -294,14 +294,10 @@ .catch(() => { }); }, - showAdd() { - // if (!this.editSetting.orgId) { - // this.$message.warning('璇峰厛閫夋嫨宸︿晶鏈烘瀯') - // } else { - this.editSetting.id = null; - this.editSetting.title = '鏂板'; - this.editSetting.show = true; - // } + showAdd(id) { + this.editSetting.id = id; + this.editSetting.title = id?'缂栬緫':'鏂板'; + this.editSetting.show = true; }, showSpecs(row) { this.specsSetting.goodsTemplatesId = row.id; @@ -310,7 +306,7 @@ // 鏌ヨtable鍒楄〃 search(pageNum) { if (pageNum != undefined) { - this.$refs.myTable.search(pageNum) + this.$refs.myTable.search({pageNum}) } else { this.$refs.myTable.search() } -- Gitblit v1.9.1