From 3a2e992774f2fc23e33039bdf2ee6a0dfa8b4366 Mon Sep 17 00:00:00 2001 From: "@jyuhsin" <729757837@qq.com> Date: Tue, 6 May 2025 17:54:09 +0800 Subject: [PATCH] commit --- .../activity/wonderfulMoment/index.html | 19 +++++++++++++++++++ frontend/src/pages/index/index.vue | 11 ++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/backend/src/main/resources/views/platform/activity/wonderfulMoment/index.html b/backend/src/main/resources/views/platform/activity/wonderfulMoment/index.html index ad86197..75e09bc 100644 --- a/backend/src/main/resources/views/platform/activity/wonderfulMoment/index.html +++ b/backend/src/main/resources/views/platform/activity/wonderfulMoment/index.html @@ -93,6 +93,25 @@ layout("/layouts/platform_1.html"){ } }, methods: { + onTableRowDelete(id) { + if (!id) { + return + } + this.$confirm('确定删除该数据吗?', '提示', { + type: 'warning', + confirmButtonText: '确定', + cancelButtonText: '取消' + }).then(() => { + $.post(this.tableDeleteUrl, {id}).then((res) => { + if (res.code === 0) { + this.$message.success("删除成功") + this.pageData() + } else { + this.$message.error(res.msg) + } + }) + }).catch(() => {}) + }, publishedChange(val, row) { const params = JSON.parse(JSON.stringify(row)) this.$set(params, 'published', val) diff --git a/frontend/src/pages/index/index.vue b/frontend/src/pages/index/index.vue index ed5addf..41abb53 100644 --- a/frontend/src/pages/index/index.vue +++ b/frontend/src/pages/index/index.vue @@ -48,6 +48,7 @@ @@ -68,6 +69,10 @@ + @@ -76,7 +81,7 @@ 精彩瞬间 - + +