编辑
- {{ row.status === '0' ? '上架' : '下架' }}
+ {{ row.status === '0' ? '启用' : '停用' }}
删除
@@ -130,7 +130,7 @@
remove (id) {
this.$confirm('确定删除该商品吗?').then(() => {
- this.instance.post(`/app/appintegralsupermarketgoods/delete?id=${id}`).then(res => {
+ this.instance.post(`/app/appintegralsupermarketshop/delete?id=${id}`).then(res => {
if (res.code == 0) {
this.$message.success('删除成功!')
this.getList()
@@ -140,10 +140,10 @@
},
changeStatus (row) {
- this.$confirm(`确定${row.status === '0' ? '上架' : '下架'}该商品?`).then(() => {
- this.instance.post(`/app/appintegralsupermarketgoods/online?id=${id}`).then(res => {
+ this.$confirm(`确定${row.status === '0' ? '启用' : '停用'}该商铺?`).then(() => {
+ this.instance.post(`/app/appintegralsupermarketshop/enable?id=${row.id}`).then(res => {
if (res.code == 0) {
- this.$message.success(`${row.status === '0' ? '上架' : '下架'}成功`)
+ this.$message.success(`${row.status === '0' ? '启用' : '停用'}成功`)
this.getList()
}
})