ad511cad by 杨威

删除增加二次提醒,删除成功后,页面跳转到首页

1 parent c9646189
......@@ -300,26 +300,46 @@ export default {
},
//右键菜单的删除
deleteByBsm(){
let params={"bsm":this.zdData.bsm,"type":this.zdData.type};
if(this.zdData.type=='zd'){
params={"bsm":this.zdData.zdbsm,"type":this.zdData.type};
let name='';
switch (this.zdData.type) {
case 'zd':
name = '宗地'
break;
case 'dz':
name = '多幢'
break;
case 'zrz':
name = '自然幢'
break;
default:
break;
}
deleteZdInfoByBsm(params)
.then((res) => {
if(res.code=200){
this.$message({
message: res.message,
type: "success",
});
} else {
this.$message({
message: res.message,
type: "warning",
});
}
})
.catch((error) => {});
this.$confirm('是否确定删除该'+name+'?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
let params={"bsm":this.zdData.bsm,"type":this.zdData.type};
deleteZdInfoByBsm(params)
.then((res) => {
if(res.code=200){
this.$message({
type: 'success',
message: '删除成功!'
});
this.$router.push("/panel");
} else {
this.$message({
message: res.message,
type: "warning",
});
}
})
.catch((error) => {});
}).catch(() => {
});
},
},
};
......@@ -352,12 +372,6 @@ export default {
text-overflow: ellipsis;
white-space: nowrap;
}
// .active_color {
// color: #ffffff;
// }
.reTree_box {
// overflow-y: auto;
}
.reTree_icon {
width: 17px;
height: 17px;
......@@ -369,7 +383,6 @@ export default {
position: relative;
color: #ffffff;
cursor: pointer;
moz-user-select: -moz-none;
-moz-user-select: none;
-o-user-select: none;
-khtml-user-select: none;
......