Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
5 changed files
with
37 additions
and
2 deletions
... | @@ -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: { |
... | @@ -153,7 +153,12 @@ export default { | ... | @@ -153,7 +153,12 @@ export default { |
153 | } | 153 | } |
154 | }); | 154 | }); |
155 | if (newPath == "/zd") { | 155 | if (newPath == "/zd") { |
156 | //source为3时代表时分割后的宗地信息 | ||
157 | if(this.$route.query.source == '3'){ | ||
158 | this.getTreeByS(this.$store.state.zdbsms); | ||
159 | }else{ | ||
156 | this.getRightTree(this.$store.state.zdbsm); | 160 | this.getRightTree(this.$store.state.zdbsm); |
161 | } | ||
157 | }else if (newPath == "/zrz") { | 162 | }else if (newPath == "/zrz") { |
158 | this.getRightTreeByZrzbsm(this.$store.state.zrzbsm); | 163 | this.getRightTreeByZrzbsm(this.$store.state.zrzbsm); |
159 | }else if(newPath == "/dz"){ | 164 | }else if(newPath == "/dz"){ |
... | @@ -172,6 +177,9 @@ export default { | ... | @@ -172,6 +177,9 @@ export default { |
172 | "$store.state.zdbsm": function(bsm) { | 177 | "$store.state.zdbsm": function(bsm) { |
173 | this.getRightTree(bsm); | 178 | this.getRightTree(bsm); |
174 | }, | 179 | }, |
180 | // "$store.state.zdbsms":function (zdbsms) { | ||
181 | // this.getTreeByS(zdbsms) | ||
182 | // } | ||
175 | }, | 183 | }, |
176 | mounted(){ | 184 | mounted(){ |
177 | 185 | ||
... | @@ -245,6 +253,14 @@ export default { | ... | @@ -245,6 +253,14 @@ export default { |
245 | }); | 253 | }); |
246 | }, | 254 | }, |
247 | methods: { | 255 | methods: { |
256 | getTreeByS(zdbsms){ | ||
257 | getListMenu(zdbsms).then(res=>{ | ||
258 | if (res.success) { | ||
259 | this.pd=res.result | ||
260 | } | ||
261 | }) | ||
262 | }, | ||
263 | |||
248 | //请求字典数据 | 264 | //请求字典数据 |
249 | async getDic() { | 265 | async getDic() { |
250 | let s = this.$store.state; | 266 | let s = this.$store.state; | ... | ... |
... | @@ -843,11 +843,12 @@ | ... | @@ -843,11 +843,12 @@ |
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: { |
849 | bsm: res.result[0], | 850 | bsm: res.result[0], |
850 | source: 2 | 851 | source: 3, //分割标识 |
851 | } | 852 | } |
852 | }); | 853 | }); |
853 | } else { | 854 | } else { | ... | ... |
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment