6fc08c05 by weimo934

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

1 parent 90ccb6e9
...@@ -174,5 +174,15 @@ export function loadFile(url) { ...@@ -174,5 +174,15 @@ export function loadFile(url) {
174 url 174 url
175 } 175 }
176 }) 176 })
177 }
177 178
179 /**
180 * 多个宗地代码获取树的数据信息
181 */
182 export function getListMenu(data) {
183 return request({
184 url:'/system/xzq/getZdListMenu',
185 method:'post',
186 data:data
187 })
178 } 188 }
......
...@@ -10,6 +10,7 @@ const store = new Vuex.Store({ ...@@ -10,6 +10,7 @@ const store = new Vuex.Store({
10 state: sessionStorage.getItem('state') ? JSON.parse(sessionStorage.getItem('state')) : { 10 state: sessionStorage.getItem('state') ? JSON.parse(sessionStorage.getItem('state')) : {
11 zddm:'', // 宗地代码 11 zddm:'', // 宗地代码
12 zdbsm: '', // 宗地标识码 12 zdbsm: '', // 宗地标识码
13 zdbsms:[], // 宗地标识码集合
13 xmmc: '', // 项目名称 14 xmmc: '', // 项目名称
14 zdmj: '', // 宗地面积 15 zdmj: '', // 宗地面积
15 zdzl: '', // 宗地坐落 16 zdzl: '', // 宗地坐落
......
...@@ -58,7 +58,7 @@ import Navigation from "../components/IvyElement/navigation"; ...@@ -58,7 +58,7 @@ import Navigation from "../components/IvyElement/navigation";
58 import Create from "./panel/create/index"; 58 import Create from "./panel/create/index";
59 import LineTree from "../components/lineTree/lineTree"; 59 import LineTree from "../components/lineTree/lineTree";
60 import { setTimeout } from "timers"; 60 import { setTimeout } from "timers";
61 import { getTree,getDdicByMC,getTreeList,getTreeByBsm } from "../api/common"; 61 import { getTree,getDdicByMC,getTreeList,getTreeByBsm,getListMenu } from "../api/common";
62 62
63 export default { 63 export default {
64 components: { 64 components: {
...@@ -172,6 +172,9 @@ export default { ...@@ -172,6 +172,9 @@ export default {
172 "$store.state.zdbsm": function(bsm) { 172 "$store.state.zdbsm": function(bsm) {
173 this.getRightTree(bsm); 173 this.getRightTree(bsm);
174 }, 174 },
175 "$store.state.zdbsms":function (zdbsms) {
176 this.getTreeByS(zdbsms)
177 }
175 }, 178 },
176 mounted(){ 179 mounted(){
177 180
...@@ -245,6 +248,14 @@ export default { ...@@ -245,6 +248,14 @@ export default {
245 }); 248 });
246 }, 249 },
247 methods: { 250 methods: {
251 getTreeByS(zdbsms){
252 getListMenu(zdbsms).then(res=>{
253 if (res.success) {
254 this.pd=res.result
255 }
256 })
257 },
258
248 //请求字典数据 259 //请求字典数据
249 async getDic() { 260 async getDic() {
250 let s = this.$store.state; 261 let s = this.$store.state;
...@@ -522,7 +533,7 @@ export default { ...@@ -522,7 +533,7 @@ export default {
522 // line-height: 160px; 533 // line-height: 160px;
523 padding: 0; 534 padding: 0;
524 } 535 }
525 536
526 .treeModule-show{ 537 .treeModule-show{
527 width: 290px; 538 width: 290px;
528 height: calc(100% - 120px); 539 height: calc(100% - 120px);
......
...@@ -843,6 +843,7 @@ ...@@ -843,6 +843,7 @@
843 zdfg(this.zdFghData).then(res => { 843 zdfg(this.zdFghData).then(res => {
844 if (res.success) { 844 if (res.success) {
845 Message.success('保存成功') 845 Message.success('保存成功')
846 this.$store.state.zdbsms=res.result;
846 this.$router.push({ 847 this.$router.push({
847 path: '/zd', 848 path: '/zd',
848 query: { 849 query: {
......
...@@ -444,6 +444,13 @@ ...@@ -444,6 +444,13 @@
444 ZdHb(data).then(res=>{ 444 ZdHb(data).then(res=>{
445 if (res.success) { 445 if (res.success) {
446 this.$message.success("合并成功") 446 this.$message.success("合并成功")
447 this.$router.push({
448 path: '/zd',
449 query: {
450 bsm: res.result,
451 source: 2
452 }
453 });
447 }else { 454 }else {
448 this.$message.error("合并失败") 455 this.$message.error("合并失败")
449 } 456 }
......