|
@@ -249,7 +249,7 @@ export default {
|
|
|
deleteOne (ids) {
|
|
|
this.$msgBox(`刪除`, '删除后将无法恢复,请问是否继续?')
|
|
|
.then(() => {
|
|
|
- this.$http.get('/czc-community/assets/building/delete', { id: ids }).then(({ status }) => {
|
|
|
+ this.$http.get('/czc-community/assets/building/delete', { id: ids }).then(({ status, data, msg }) => {
|
|
|
if (0 === status) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
@@ -257,7 +257,7 @@ export default {
|
|
|
});
|
|
|
this.mixins_search();
|
|
|
} else {
|
|
|
- this.$message.error('删除失败!');
|
|
|
+ this.$message.error(msg);
|
|
|
}
|
|
|
});
|
|
|
})
|