From 009a1a98df380697a51ca6a67e4d060f7d5ee1e0 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 24 Dec 2021 14:31:24 +0800 Subject: [PATCH] 25978 --- packages/3.0.0/AppContentInfo/components/List.vue | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/packages/3.0.0/AppContentInfo/components/List.vue b/packages/3.0.0/AppContentInfo/components/List.vue index 71479a12..12a5be13 100644 --- a/packages/3.0.0/AppContentInfo/components/List.vue +++ b/packages/3.0.0/AppContentInfo/components/List.vue @@ -107,22 +107,9 @@ }) }, - changeStatus (item) { - let title = item.status == '1' ? '是否要取消发布?' : '是否要发布?'; - this.$confirm(title, {type: 'warning'}).then(() => { - item.status = item.status == '1' ? '0' : '1' - this.instance.post('/app/appcountrysidetourism/addOrUpdate', item).then(res => { - if (res && res.code == 0) { - title == '是否要发布?' ? this.$message.success('发布成功') : this.$message.success('取消发布成功') - this.getList() - } - }) - }) - }, - remove(id) { this.$confirm('确定删除该数据?').then(() => { - this.instance.post(`/app/appcountrysidetourism/delete?id=${id}`).then(res => { + this.instance.post(`/app/appcontentinfo/delete?ids=${id}`).then(res => { if (res.code == 0) { this.$message.success('删除成功!') this.getList()