From 51cc9fa80ca296fa6c320d0a47ed51ee0aaef1ce Mon Sep 17 00:00:00 2001 From: tk Date: Tue, 17 Jun 2025 17:05:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20=E8=A1=A8=E6=A0=BC=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=A0=8F=E6=8C=89=E9=92=AE=E4=B8=8B=E6=8B=89=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/naColOperation/index.vue | 76 ++++++++++++------- .../admin/src/components/naColTags/index.vue | 14 +++- .../admin/src/components/naSearch/index.vue | 8 +- .../admin/src/components/scSelect/index.vue | 2 +- .../src/components/scUpload/multiple.vue | 4 +- src/frontend/admin/src/config/table.js | 2 +- 6 files changed, 71 insertions(+), 35 deletions(-) diff --git a/src/frontend/admin/src/components/naColOperation/index.vue b/src/frontend/admin/src/components/naColOperation/index.vue index 146d2d9e..7f57921a 100644 --- a/src/frontend/admin/src/components/naColOperation/index.vue +++ b/src/frontend/admin/src/components/naColOperation/index.vue @@ -1,34 +1,40 @@ @@ -44,6 +50,7 @@ export default { default: naColOperation.buttons, }, prop: { type: String }, + showMenu: { type: Boolean }, }, data() { return { @@ -57,6 +64,19 @@ export default { methods: { async click(item, row, vue) { this.disabled = true + + if (item.confirm) { + try { + await this.$confirm(this.$t(`确定 {title}?`, { title: item.title }), this.$t('提示'), { + type: 'warning', + }) + } catch { + // + + this.disabled = false + return + } + } await item.click(row, vue) this.disabled = false }, diff --git a/src/frontend/admin/src/components/naColTags/index.vue b/src/frontend/admin/src/components/naColTags/index.vue index 684875cd..e58844f2 100644 --- a/src/frontend/admin/src/components/naColTags/index.vue +++ b/src/frontend/admin/src/components/naColTags/index.vue @@ -2,7 +2,11 @@