邻里互助
This commit is contained in:
@@ -119,15 +119,22 @@
|
||||
},
|
||||
|
||||
changeStatus(row) {
|
||||
console.log(row)
|
||||
this.$confirm(`确定${row.status == 1 ? '启用' : '关闭'}该话题?`).then(() => {
|
||||
this.instance.post(`/app/appneighborhoodassistancetheme/enable?ids=${id}`).then(res => {
|
||||
this.instance.post(`/app/appneighborhoodassistancetheme/enable?id=${row.id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('操作成功!')
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
this.getList()
|
||||
})
|
||||
// this.instance.post(`/app/appneighborhoodassistancetheme/enable?id=${row.id}`).then(res => {
|
||||
// if (res.code == 0) {
|
||||
// this.$message.success('操作成功!')
|
||||
// this.getList()
|
||||
// }
|
||||
// })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user