267
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user