邻里互助

This commit is contained in:
liuye
2023-03-16 11:35:37 +08:00
parent 7dca4813ed
commit 72d6e63edc
3 changed files with 21 additions and 12 deletions

View File

@@ -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()
// }
// })
}
}
}