From 5d42d5ad34a892f6d34686ac589aaf1cfbbfc019 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Thu, 20 Apr 2023 11:51:25 +0800 Subject: [PATCH] 267 --- .../AppIntegratingSupermarket/components/AddStore.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue b/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue index f3cf410d..a9260fe8 100644 --- a/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue +++ b/project/fengdu/app/AppIntegratingSupermarket/components/AddStore.vue @@ -278,7 +278,10 @@ }, changeStatus (status, index) { - this.$set(this.form.goodsList[index], 'status', status === '0' ? '1' : '0') + this.$confirm(`确定${status === '0' ? '上架' : '下架'}该商品?`).then(() => { + this.$set(this.form.goodsList[index], 'status', status === '0' ? '1' : '0') + this.$message.success(`${status === '0' ? '上架' : '下架'}成功`) + }) }, handleSelectionChange (e) { @@ -286,7 +289,10 @@ }, remove (index) { - this.form.goodsList.splice(index, 1) + this.$confirm('确定删除该商品吗?').then(() => { + this.form.goodsList.splice(index, 1) + this.$message.success('删除成功!') + }) }, showList () {