1ea00911 by zhaoqian

多幢分割跳转页面变化

1 parent 7ccf1929
......@@ -315,7 +315,7 @@
export default {
name: "",
inject: ['getTreeByS','getRightTree'],
inject: ['getTreeByS','getRightTree','getTreeByBsm'],
components: {zdQueryData,dzQueryData,hfghb},
props: {},
data() {
......@@ -646,14 +646,25 @@
saveDzFg(this.dzFghData).then(res => {
vm.loadingHide()
if (res.success) {
this.getRightTree(res.result,'0,1,2');
this.$router.push({
path: '/zd',
query: {
bsm: res.result,
source: 3, //分割标识
}
});
if(res.result.zrz!==''&&res.result.zrz!=null){
this.getTreeByBsm(res.result.zrz,'zrz','0,1,2');
this.$router.push({
path: '/zrz',
query: {
bsm: res.result.zrz,
source: 3, //分割标识
}
});
}else if(res.result.dz!==''&&res.result.dz!=null){
this.getTreeByBsm(res.result.dz,'dz','0,1,2');
this.$router.push({
path: '/dz',
query: {
bsm: res.result.dz,
source: 3, //分割标识
}
});
}
} else {
Message.error("保存失败")
}
......