From 1abd4c49b0155c97cdf722f4431436ce34f73d82 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Sun, 29 Jan 2023 14:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/AppActivity/components/List.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/project/activeAnalysis/app/AppActivity/components/List.vue b/project/activeAnalysis/app/AppActivity/components/List.vue index 5d2df38c..7baa1b92 100644 --- a/project/activeAnalysis/app/AppActivity/components/List.vue +++ b/project/activeAnalysis/app/AppActivity/components/List.vue @@ -42,7 +42,7 @@
编辑 详情 - 停止 + {{ row.status === '1' ? '关闭' : '开启' }} 删除
@@ -77,10 +77,6 @@ ], tableData: [], statusList: [ - { - dictValue: '0', - dictName: '未开始' - }, { dictValue: '1', dictName: '进行中' @@ -111,11 +107,11 @@ }) }, - stop (id) { - this.$confirm('确定停止该活动?').then(() => { + stop (id, status) { + this.$confirm(status === '1' ? '确认关闭该活动?' : '确认开启该活动?').then(() => { this.instance.post(`/app/appactivityinfo/stop?id=${id}`).then(res => { if (res.code == 0) { - this.$message.success('停止成功!') + this.$message.success('操作成功!') this.getList() } })