6fc08c05 by weimo934

fix(fg,hb):分割合并后跳转页面

1 parent 90ccb6e9
......@@ -174,5 +174,15 @@ export function loadFile(url) {
url
}
})
}
/**
* 多个宗地代码获取树的数据信息
*/
export function getListMenu(data) {
return request({
url:'/system/xzq/getZdListMenu',
method:'post',
data:data
})
}
......
......@@ -10,6 +10,7 @@ const store = new Vuex.Store({
state: sessionStorage.getItem('state') ? JSON.parse(sessionStorage.getItem('state')) : {
zddm:'', // 宗地代码
zdbsm: '', // 宗地标识码
zdbsms:[], // 宗地标识码集合
xmmc: '', // 项目名称
zdmj: '', // 宗地面积
zdzl: '', // 宗地坐落
......
......@@ -58,7 +58,7 @@ import Navigation from "../components/IvyElement/navigation";
import Create from "./panel/create/index";
import LineTree from "../components/lineTree/lineTree";
import { setTimeout } from "timers";
import { getTree,getDdicByMC,getTreeList,getTreeByBsm } from "../api/common";
import { getTree,getDdicByMC,getTreeList,getTreeByBsm,getListMenu } from "../api/common";
export default {
components: {
......@@ -172,6 +172,9 @@ export default {
"$store.state.zdbsm": function(bsm) {
this.getRightTree(bsm);
},
"$store.state.zdbsms":function (zdbsms) {
this.getTreeByS(zdbsms)
}
},
mounted(){
......@@ -245,6 +248,14 @@ export default {
});
},
methods: {
getTreeByS(zdbsms){
getListMenu(zdbsms).then(res=>{
if (res.success) {
this.pd=res.result
}
})
},
//请求字典数据
async getDic() {
let s = this.$store.state;
......@@ -522,7 +533,7 @@ export default {
// line-height: 160px;
padding: 0;
}
.treeModule-show{
width: 290px;
height: calc(100% - 120px);
......
......@@ -843,6 +843,7 @@
zdfg(this.zdFghData).then(res => {
if (res.success) {
Message.success('保存成功')
this.$store.state.zdbsms=res.result;
this.$router.push({
path: '/zd',
query: {
......
......@@ -444,6 +444,13 @@
ZdHb(data).then(res=>{
if (res.success) {
this.$message.success("合并成功")
this.$router.push({
path: '/zd',
query: {
bsm: res.result,
source: 2
}
});
}else {
this.$message.error("合并失败")
}
......