This commit is contained in:
yanran200730
2023-04-20 11:51:25 +08:00
parent c0a513a1a7
commit 5d42d5ad34

View File

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