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 () {