左侧目录树数据查询接口修改
Showing
14 changed files
with
142 additions
and
113 deletions
| ... | @@ -123,12 +123,35 @@ export default { | ... | @@ -123,12 +123,35 @@ export default { |
| 123 | self.time = setTimeout(() => { | 123 | self.time = setTimeout(() => { |
| 124 | item.expand = item.expand == undefined? true:!item.expand; | 124 | item.expand = item.expand == undefined? true:!item.expand; |
| 125 | // self.$emit("itemClick", item); | 125 | // self.$emit("itemClick", item); |
| 126 | let source = '' | ||
| 127 | switch (this.$route.path) { | ||
| 128 | case '/add': | ||
| 129 | source = '1,2' | ||
| 130 | break; | ||
| 131 | case '/change': | ||
| 132 | source = '2' | ||
| 133 | break; | ||
| 134 | case '/panel': | ||
| 135 | source = '0,1,2' | ||
| 136 | break; | ||
| 137 | case '/modify': | ||
| 138 | source = '1' | ||
| 139 | break; | ||
| 140 | case '/search': | ||
| 141 | source = '0,1,2' | ||
| 142 | break; | ||
| 143 | |||
| 144 | default: | ||
| 145 | break; | ||
| 146 | } | ||
| 147 | //目录树的所有权类型单击时加载子节点 | ||
| 126 | if (!item.children && !item.type) { | 148 | if (!item.children && !item.type) { |
| 127 | let data = { | 149 | let data = { |
| 128 | xzqbsm:item.xzq, | 150 | xzqbsm:item.xzq, |
| 129 | djqbsm:item.djq, | 151 | djqbsm:item.djq, |
| 130 | djzqbsm:item.djzq, | 152 | djzqbsm:item.djzq, |
| 131 | syqlx:item.dm | 153 | syqlx:item.dm, |
| 154 | source:source | ||
| 132 | } | 155 | } |
| 133 | getZdDetailList(data).then((res) => { | 156 | getZdDetailList(data).then((res) => { |
| 134 | if (res.result.length>0) { | 157 | if (res.result.length>0) { | ... | ... |
| ... | @@ -69,10 +69,8 @@ export default { | ... | @@ -69,10 +69,8 @@ export default { |
| 69 | provide(){ | 69 | provide(){ |
| 70 | return{ | 70 | return{ |
| 71 | getRightTree: this.getRightTree, | 71 | getRightTree: this.getRightTree, |
| 72 | getRightTreeByZrzbsm:this.getRightTreeByZrzbsm, | 72 | getTreeByBsm:this.getTreeByBsm, |
| 73 | getTreeByS:this.getTreeByS, | 73 | getTreeByS:this.getTreeByS |
| 74 | getRightTreeByDzbsm:this.getRightTreeByDzbsm, | ||
| 75 | getRightTreeByHbsm:this.getRightTreeByHbsm | ||
| 76 | } | 74 | } |
| 77 | }, | 75 | }, |
| 78 | data() { | 76 | data() { |
| ... | @@ -144,23 +142,10 @@ export default { | ... | @@ -144,23 +142,10 @@ export default { |
| 144 | item.select = true; | 142 | item.select = true; |
| 145 | } | 143 | } |
| 146 | }); | 144 | }); |
| 147 | if (newPath == "/zd") { | 145 | if(newPath == "/search" || newPath == "/panel" || newPath == "/add" || newPath == "/change" || newPath == "/modify"){ |
| 148 | //source为3时代表时分割后的宗地信息 | ||
| 149 | // if(this.$route.query.source == '3'){ | ||
| 150 | // this.getTreeByS(this.$store.state.zdbsms); | ||
| 151 | // }else{ | ||
| 152 | // this.getRightTree(this.$store.state.zdbsm); | ||
| 153 | // } | ||
| 154 | }else if (newPath == "/zrz") { | ||
| 155 | // this.getRightTreeByZrzbsm(this.$store.state.zrzbsm); | ||
| 156 | }else if(newPath == "/dz"){ | ||
| 157 | // this.getRightTreeByDzbsm(this.$store.state.dzbsm); | ||
| 158 | }else if(newPath == "/h"){ | ||
| 159 | // this.getRightTreeByHbsm(this.$store.state.hbsm); | ||
| 160 | } else if(newPath == "/viewMap"){ | ||
| 161 | this.isMap = true; | ||
| 162 | } else { | ||
| 163 | this.getTreeList(); | 146 | this.getTreeList(); |
| 147 | } else { | ||
| 148 | |||
| 164 | } | 149 | } |
| 165 | }, | 150 | }, |
| 166 | "$store.state.treeData":function (val) { | 151 | "$store.state.treeData":function (val) { |
| ... | @@ -226,11 +211,11 @@ export default { | ... | @@ -226,11 +211,11 @@ export default { |
| 226 | this.getDic(); | 211 | this.getDic(); |
| 227 | //刷新页面后根据不同路由获取不同树结构数据 | 212 | //刷新页面后根据不同路由获取不同树结构数据 |
| 228 | if(this.$route.path == '/zrz'){ | 213 | if(this.$route.path == '/zrz'){ |
| 229 | this.getRightTreeByZrzbsm(this.$store.state.zrzbsm) | 214 | this.getTreeByBsm(this.$store.state.zrzbsm,'zrz',this.$route.query.auth) |
| 230 | }else if(this.$route.path == '/zd'){ | 215 | }else if(this.$route.path == '/zd'){ |
| 231 | this.getRightTree(this.$store.state.zdbsm) | 216 | this.getRightTree(this.$store.state.zdbsm) |
| 232 | }else if(this.$route.path == '/dz'){ | 217 | }else if(this.$route.path == '/dz'){ |
| 233 | this.getRightTreeByDzbsm(this.$store.state.dzbsm) | 218 | this.getTreeByBsm(this.$store.state.dzbsm,'dz',this.$route.query.auth) |
| 234 | }else{ | 219 | }else{ |
| 235 | this.getTreeList(); | 220 | this.getTreeList(); |
| 236 | } | 221 | } |
| ... | @@ -256,7 +241,6 @@ export default { | ... | @@ -256,7 +241,6 @@ export default { |
| 256 | } | 241 | } |
| 257 | }) | 242 | }) |
| 258 | }, | 243 | }, |
| 259 | |||
| 260 | //请求字典数据 | 244 | //请求字典数据 |
| 261 | async getDic() { | 245 | async getDic() { |
| 262 | let s = this.$store.state; | 246 | let s = this.$store.state; |
| ... | @@ -290,18 +274,19 @@ export default { | ... | @@ -290,18 +274,19 @@ export default { |
| 290 | return res.result | 274 | return res.result |
| 291 | }); | 275 | }); |
| 292 | }, | 276 | }, |
| 293 | getRightTree(bsm) { | 277 | //根据宗地bsm查询树数据 |
| 294 | getTree(bsm).then((res) => { | 278 | getRightTree(bsm,source) { |
| 279 | getTree(bsm,source).then((res) => { | ||
| 295 | if (res.success) { | 280 | if (res.success) { |
| 296 | this.pd = res.result; | 281 | this.pd = res.result; |
| 297 | this.$store.state.newZdbsm = ''; | 282 | this.$store.state.newZdbsm = ''; |
| 298 | } | 283 | } |
| 299 | }); | 284 | }); |
| 300 | }, | 285 | }, |
| 301 | 286 | //根据自然幢/多幢/户bsm查询树数据 | |
| 302 | getRightTreeByZrzbsm(bsm) { | 287 | getTreeByBsm(bsm,type,source) { |
| 303 | if (this.$store.state.newZdbsm != this.$store.state.oldZdbsm) { | 288 | if (this.$store.state.oldZdbsm == '' || this.$store.state.newZdbsm != this.$store.state.oldZdbsm) { |
| 304 | getTreeByBsm(bsm,"zrz").then((res) => { | 289 | getTreeByBsm(bsm,type,source).then((res) => { |
| 305 | if (res.success) { | 290 | if (res.success) { |
| 306 | this.pd = res.result; | 291 | this.pd = res.result; |
| 307 | this.$store.state.treeData = res.result; | 292 | this.$store.state.treeData = res.result; |
| ... | @@ -313,29 +298,6 @@ export default { | ... | @@ -313,29 +298,6 @@ export default { |
| 313 | } | 298 | } |
| 314 | }, | 299 | }, |
| 315 | 300 | ||
| 316 | getRightTreeByDzbsm(bsm) { | ||
| 317 | if (this.$store.state.newZdbsm != this.$store.state.oldZdbsm) { | ||
| 318 | getTreeByBsm(bsm,"dz").then((res) => { | ||
| 319 | if (res.success) { | ||
| 320 | this.pd = res.result; | ||
| 321 | this.$store.state.treeData = res.result; | ||
| 322 | this.$store.state.newZdbsm = ''; | ||
| 323 | } | ||
| 324 | }); | ||
| 325 | }else{ | ||
| 326 | |||
| 327 | } | ||
| 328 | }, | ||
| 329 | |||
| 330 | getRightTreeByHbsm(bsm) { | ||
| 331 | getTreeByBsm(bsm,"h").then((res) => { | ||
| 332 | if (res.success) { | ||
| 333 | this.pd = res.result; | ||
| 334 | this.$store.state.newZdbsm = ''; | ||
| 335 | } | ||
| 336 | }); | ||
| 337 | }, | ||
| 338 | |||
| 339 | sortNavigation(data, selectId) { | 301 | sortNavigation(data, selectId) { |
| 340 | let headTop = this.headTop; | 302 | let headTop = this.headTop; |
| 341 | data.forEach((item, index) => { | 303 | data.forEach((item, index) => { | ... | ... |
| ... | @@ -208,7 +208,7 @@ | ... | @@ -208,7 +208,7 @@ |
| 208 | Qlr, | 208 | Qlr, |
| 209 | Qlxz, | 209 | Qlxz, |
| 210 | }, | 210 | }, |
| 211 | inject:['getRightTree'], | 211 | inject:['getTreeByBsm'], |
| 212 | data () { | 212 | data () { |
| 213 | return { | 213 | return { |
| 214 | 214 | ||
| ... | @@ -290,7 +290,7 @@ | ... | @@ -290,7 +290,7 @@ |
| 290 | registerCall(data).then(res=>{ | 290 | registerCall(data).then(res=>{ |
| 291 | if (res.success) { | 291 | if (res.success) { |
| 292 | this.$message.success("登记成功") | 292 | this.$message.success("登记成功") |
| 293 | this.getRightTree(this.$store.state.zdbsm) | 293 | this.getTreeByBsm(this.$route.query.bsm,'dz','0,1,2') |
| 294 | } | 294 | } |
| 295 | }) | 295 | }) |
| 296 | }, | 296 | }, | ... | ... |
| ... | @@ -57,6 +57,7 @@ | ... | @@ -57,6 +57,7 @@ |
| 57 | export default { | 57 | export default { |
| 58 | name: "", | 58 | name: "", |
| 59 | components: {SearchHead}, | 59 | components: {SearchHead}, |
| 60 | inject:['getRightTree','getTreeByBsm'], | ||
| 60 | props: {}, | 61 | props: {}, |
| 61 | data() { | 62 | data() { |
| 62 | return { | 63 | return { |
| ... | @@ -123,15 +124,19 @@ | ... | @@ -123,15 +124,19 @@ |
| 123 | case "zrz": | 124 | case "zrz": |
| 124 | path = "/zrz"; | 125 | path = "/zrz"; |
| 125 | this.$store.state.zrzbsm = row.glbsm; | 126 | this.$store.state.zrzbsm = row.glbsm; |
| 127 | this.getTreeByBsm(row.glbsm,row.dylx,'0,1,2'); | ||
| 126 | break; | 128 | break; |
| 127 | case "zd": | 129 | case "zd": |
| 128 | path = "/zd"; | 130 | path = "/zd"; |
| 129 | this.$store.state.zdbsm = row.glbsm | 131 | this.$store.state.zdbsm = row.glbsm |
| 132 | this.getRightTree(row.glbsm,'0,1,2'); | ||
| 130 | break; | 133 | break; |
| 131 | case "h": | 134 | case "h": |
| 132 | path = "/h"; | 135 | path = "/h"; |
| 133 | this.$store.state.hbsm = row.glbsm | 136 | this.$store.state.hbsm = row.glbsm |
| 137 | this.getTreeByBsm(row.glbsm,'h','0,1,2'); | ||
| 134 | type = "2"; | 138 | type = "2"; |
| 139 | break; | ||
| 135 | default: | 140 | default: |
| 136 | break; | 141 | break; |
| 137 | } | 142 | } |
| ... | @@ -139,7 +144,8 @@ | ... | @@ -139,7 +144,8 @@ |
| 139 | path: path, | 144 | path: path, |
| 140 | query: { | 145 | query: { |
| 141 | bsm: row.glbsm, | 146 | bsm: row.glbsm, |
| 142 | source: 2 | 147 | source: 2, |
| 148 | auth:'1,2' | ||
| 143 | } | 149 | } |
| 144 | }); | 150 | }); |
| 145 | }, | 151 | }, | ... | ... |
| ... | @@ -72,6 +72,7 @@ import { fwsxbgbl } from "../../../../api/common"; | ... | @@ -72,6 +72,7 @@ import { fwsxbgbl } from "../../../../api/common"; |
| 72 | export default { | 72 | export default { |
| 73 | name: "", | 73 | name: "", |
| 74 | components: { SearchHead }, | 74 | components: { SearchHead }, |
| 75 | inject:['getRightTree','getTreeByBsm'], | ||
| 75 | props: {}, | 76 | props: {}, |
| 76 | data() { | 77 | data() { |
| 77 | return { | 78 | return { |
| ... | @@ -146,16 +147,24 @@ export default { | ... | @@ -146,16 +147,24 @@ export default { |
| 146 | switch (row.dylx) { | 147 | switch (row.dylx) { |
| 147 | case "zrz": | 148 | case "zrz": |
| 148 | this.$store.state.zrzbsm = res.result; | 149 | this.$store.state.zrzbsm = res.result; |
| 150 | this.getTreeByBsm(row.glbsm,row.dylx,'2'); | ||
| 149 | path = "/zrz"; | 151 | path = "/zrz"; |
| 150 | break; | 152 | break; |
| 151 | case "zd": | 153 | case "zd": |
| 152 | this.$store.state.zdbsm = res.result; | 154 | this.$store.state.zdbsm = res.result; |
| 155 | this.getRightTree(row.glbsm,'2'); | ||
| 153 | path = "/zd"; | 156 | path = "/zd"; |
| 154 | break; | 157 | break; |
| 155 | case "dz": | 158 | case "dz": |
| 156 | this.$store.state.dzbsm = res.result; | 159 | this.$store.state.dzbsm = res.result; |
| 160 | this.getTreeByBsm(row.glbsm,row.dylx,'2'); | ||
| 157 | path = "/dz"; | 161 | path = "/dz"; |
| 158 | break; | 162 | break; |
| 163 | case "h": | ||
| 164 | this.$store.state.dzbsm = res.result; | ||
| 165 | this.getTreeByBsm(row.glbsm,row.dylx,'2'); | ||
| 166 | path = "/h"; | ||
| 167 | break; | ||
| 159 | default: | 168 | default: |
| 160 | break; | 169 | break; |
| 161 | } | 170 | } |
| ... | @@ -163,7 +172,8 @@ export default { | ... | @@ -163,7 +172,8 @@ export default { |
| 163 | path: path, | 172 | path: path, |
| 164 | query: { | 173 | query: { |
| 165 | bsm: res.result, | 174 | bsm: res.result, |
| 166 | source: 2 | 175 | source: 2, |
| 176 | auth:'2' | ||
| 167 | } | 177 | } |
| 168 | }); | 178 | }); |
| 169 | } else { | 179 | } else { | ... | ... |
| ... | @@ -283,7 +283,7 @@ | ... | @@ -283,7 +283,7 @@ |
| 283 | if (res.success) { | 283 | if (res.success) { |
| 284 | this.$message.success("合并成功"); | 284 | this.$message.success("合并成功"); |
| 285 | //更新目录树 | 285 | //更新目录树 |
| 286 | this.getRightTree(res.result); | 286 | this.getRightTree(res.result,'2'); |
| 287 | this.$router.push({ | 287 | this.$router.push({ |
| 288 | path: '/zd', | 288 | path: '/zd', |
| 289 | query: { | 289 | query: { | ... | ... |
| ... | @@ -156,7 +156,7 @@ import { insertDzjbxx } from "../../../api/dz"; | ... | @@ -156,7 +156,7 @@ import { insertDzjbxx } from "../../../api/dz"; |
| 156 | export default { | 156 | export default { |
| 157 | name: "", | 157 | name: "", |
| 158 | components: {}, | 158 | components: {}, |
| 159 | inject:['getRightTree','getRightTreeByZrzbsm','getRightTreeByDzbsm'], | 159 | inject:['getRightTree','getTreeByBsm'], |
| 160 | props: { | 160 | props: { |
| 161 | auth: { | 161 | auth: { |
| 162 | type: Boolean, | 162 | type: Boolean, |
| ... | @@ -276,7 +276,7 @@ export default { | ... | @@ -276,7 +276,7 @@ export default { |
| 276 | .then((res) => { | 276 | .then((res) => { |
| 277 | console.log(res.result); | 277 | console.log(res.result); |
| 278 | if (res.code == "200") { | 278 | if (res.code == "200") { |
| 279 | this.getRightTree(this.$store.state.zdbsm); | 279 | this.getRightTree(res.result,'0,1,2'); |
| 280 | this.$message({ | 280 | this.$message({ |
| 281 | message: "创建成功!", | 281 | message: "创建成功!", |
| 282 | type: "success", | 282 | type: "success", |
| ... | @@ -311,7 +311,7 @@ export default { | ... | @@ -311,7 +311,7 @@ export default { |
| 311 | .then((res) => { | 311 | .then((res) => { |
| 312 | if (res.code == "200") { | 312 | if (res.code == "200") { |
| 313 | //获取左侧树数据 | 313 | //获取左侧树数据 |
| 314 | this.getRightTreeByZrzbsm(res.result.bsm); | 314 | this.getTreeByBsm(res.result.bsm,'zrz','0,1,2'); |
| 315 | this.$message({ | 315 | this.$message({ |
| 316 | message: "创建成功!", | 316 | message: "创建成功!", |
| 317 | type: "success", | 317 | type: "success", |
| ... | @@ -325,7 +325,8 @@ export default { | ... | @@ -325,7 +325,8 @@ export default { |
| 325 | this.$router.push({ | 325 | this.$router.push({ |
| 326 | path: '/zrz', query:{ | 326 | path: '/zrz', query:{ |
| 327 | source: 1, | 327 | source: 1, |
| 328 | bsm:res.result.bsm | 328 | bsm:res.result.bsm, |
| 329 | auth: '0,1,2' | ||
| 329 | } | 330 | } |
| 330 | }); | 331 | }); |
| 331 | } else { | 332 | } else { |
| ... | @@ -348,7 +349,7 @@ export default { | ... | @@ -348,7 +349,7 @@ export default { |
| 348 | insertDzjbxx(this.ruleForm2) | 349 | insertDzjbxx(this.ruleForm2) |
| 349 | .then((res) => { | 350 | .then((res) => { |
| 350 | if (res.code == "200") { | 351 | if (res.code == "200") { |
| 351 | this.getRightTreeByDzbsm(res.result.bsm); | 352 | this.getTreeByBsm(res.result.bsm,'dz','0,1,2'); |
| 352 | this.$message({ | 353 | this.$message({ |
| 353 | message: "创建成功!", | 354 | message: "创建成功!", |
| 354 | type: "success", | 355 | type: "success", |
| ... | @@ -361,7 +362,8 @@ export default { | ... | @@ -361,7 +362,8 @@ export default { |
| 361 | this.$router.push({ | 362 | this.$router.push({ |
| 362 | path: '/dz', query:{ | 363 | path: '/dz', query:{ |
| 363 | source: 1, | 364 | source: 1, |
| 364 | bsm:res.result.bsm | 365 | bsm:res.result.bsm, |
| 366 | auth: '0,1,2' | ||
| 365 | } | 367 | } |
| 366 | }); | 368 | }); |
| 367 | } else { | 369 | } else { | ... | ... |
| ... | @@ -65,6 +65,7 @@ | ... | @@ -65,6 +65,7 @@ |
| 65 | export default { | 65 | export default { |
| 66 | name: "", | 66 | name: "", |
| 67 | components: {SearchHead}, | 67 | components: {SearchHead}, |
| 68 | inject:['getRightTree','getTreeByBsm'], | ||
| 68 | props: {}, | 69 | props: {}, |
| 69 | data() { | 70 | data() { |
| 70 | return { | 71 | return { |
| ... | @@ -128,19 +129,16 @@ | ... | @@ -128,19 +129,16 @@ |
| 128 | //点击办理 | 129 | //点击办理 |
| 129 | handleClick(row) { | 130 | handleClick(row) { |
| 130 | let type;name; | 131 | let type;name; |
| 131 | let path = ""; | 132 | let path = ""; |
| 132 | |||
| 133 | switch (row.dylx) { | 133 | switch (row.dylx) { |
| 134 | case "zd": | 134 | case "zd": |
| 135 | type = "0"; | 135 | type = "0"; |
| 136 | name = '宗地'; | 136 | name = '宗地'; |
| 137 | this.$store.state.zdbsm = row.glbsm | ||
| 138 | path = "/zd"; | 137 | path = "/zd"; |
| 139 | break; | 138 | break; |
| 140 | case "zrz": | 139 | case "zrz": |
| 141 | type = "1"; | 140 | type = "1"; |
| 142 | name = '自然幢'; | 141 | name = '自然幢'; |
| 143 | this.$store.state.zrzbsm = row.glbsm; | ||
| 144 | path = "/zrz"; | 142 | path = "/zrz"; |
| 145 | break; | 143 | break; |
| 146 | case "h": | 144 | case "h": |
| ... | @@ -148,51 +146,77 @@ | ... | @@ -148,51 +146,77 @@ |
| 148 | case "h1": | 146 | case "h1": |
| 149 | type = "2"; | 147 | type = "2"; |
| 150 | name = "户" | 148 | name = "户" |
| 151 | this.$store.state.hbsm = row.glbsm; | 149 | path = "/h"; |
| 150 | break; | ||
| 152 | case "dz": | 151 | case "dz": |
| 153 | type = "3"; | 152 | type = "3"; |
| 154 | name = "多幢"; | 153 | name = "多幢"; |
| 155 | this.$store.state.dzbsm = row.glbsm; | ||
| 156 | path = "/dz"; | 154 | path = "/dz"; |
| 155 | break; | ||
| 157 | default: | 156 | default: |
| 158 | break; | 157 | break; |
| 159 | } | 158 | } |
| 160 | let data = {"id": row.bsm, "type": type}; | 159 | let data = {"id": row.bsm, "type": type}; |
| 161 | this.$confirm('是否确定更正该'+name+'?', '提示', { | 160 | this.$nextTick(()=>{ |
| 162 | confirmButtonText: '确定', | 161 | this.$confirm('确定更正该'+name+'吗?', '提示', { |
| 163 | cancelButtonText: '取消', | 162 | confirmButtonText: '确定', |
| 164 | type: 'warning' | 163 | cancelButtonText: '取消', |
| 165 | }).then(() => { | 164 | type: 'warning' |
| 166 | updateQsztByBsm(data) | 165 | }).then(() => { |
| 167 | .then((res => { | 166 | updateQsztByBsm(data) |
| 168 | if (res.code == 200) { | 167 | .then((res => { |
| 169 | this.$message({ | 168 | if (res.code == 200) { |
| 170 | type: 'success', | 169 | switch (row.dylx) { |
| 171 | message: '更正成功!' | 170 | case "zd": |
| 172 | }); | 171 | this.$store.state.zdbsm = row.glbsm; |
| 173 | this.$router.push({ | 172 | this.getRightTree(row.glbsm,'1'); |
| 174 | path: path, | 173 | break; |
| 175 | query: { | 174 | case "zrz": |
| 176 | bsm: row.glbsm, | 175 | this.$store.state.zrzbsm = row.glbsm; |
| 177 | source: 2 | 176 | this.getTreeByBsm(row.glbsm,row.dylx,'1'); |
| 177 | break; | ||
| 178 | case "h": | ||
| 179 | case "h0": | ||
| 180 | case "h1": | ||
| 181 | this.$store.state.hbsm = row.glbsm; | ||
| 182 | this.getTreeByBsm(row.glbsm,'h','1'); | ||
| 183 | break; | ||
| 184 | case "dz": | ||
| 185 | this.$store.state.dzbsm = row.glbsm; | ||
| 186 | this.getTreeByBsm(row.glbsm,row.dylx,'1'); | ||
| 187 | break; | ||
| 188 | default: | ||
| 189 | break; | ||
| 178 | } | 190 | } |
| 179 | }); | 191 | this.$message({ |
| 180 | } else { | 192 | type: 'success', |
| 193 | message: '更正成功!' | ||
| 194 | }); | ||
| 195 | this.$router.push({ | ||
| 196 | path: path, | ||
| 197 | query: { | ||
| 198 | bsm: row.glbsm, | ||
| 199 | source: 2, | ||
| 200 | auth:'1' | ||
| 201 | } | ||
| 202 | }); | ||
| 203 | } else { | ||
| 204 | this.$message({ | ||
| 205 | message: res.message, | ||
| 206 | type: "warning", | ||
| 207 | }); | ||
| 208 | } | ||
| 209 | })).catch(() => { | ||
| 181 | this.$message({ | 210 | this.$message({ |
| 182 | message: res.message, | 211 | message: res.message, |
| 183 | type: "warning", | 212 | type: "error", |
| 184 | }); | 213 | }); |
| 185 | } | ||
| 186 | })).catch(() => { | ||
| 187 | this.$message({ | ||
| 188 | message: res.message, | ||
| 189 | type: "error", | ||
| 190 | }); | 214 | }); |
| 191 | }); | ||
| 192 | 215 | ||
| 193 | }).catch(() => { | 216 | }).catch(() => { |
| 194 | 217 | ||
| 195 | }); | 218 | }); |
| 219 | }) | ||
| 196 | }, | 220 | }, |
| 197 | }, | 221 | }, |
| 198 | computed: {}, | 222 | computed: {}, | ... | ... |
| ... | @@ -60,7 +60,7 @@ | ... | @@ -60,7 +60,7 @@ |
| 60 | 60 | ||
| 61 | export default { | 61 | export default { |
| 62 | name: "", | 62 | name: "", |
| 63 | inject:['getRightTree','getRightTreeByZrzbsm','getRightTreeByDzbsm','getRightTreeByHbsm'], | 63 | inject:['getRightTree','getTreeByBsm'], |
| 64 | components: {SearchHead}, | 64 | components: {SearchHead}, |
| 65 | props: {}, | 65 | props: {}, |
| 66 | data() { | 66 | data() { |
| ... | @@ -118,22 +118,23 @@ | ... | @@ -118,22 +118,23 @@ |
| 118 | this.getData(this.queryData) | 118 | this.getData(this.queryData) |
| 119 | }, | 119 | }, |
| 120 | //点击办理 | 120 | //点击办理 |
| 121 | handleClick(row) { | 121 | handleClick(row) { |
| 122 | let path = ""; | 122 | let path = ""; |
| 123 | this.$store.state.oldZdbsm = ''; | ||
| 123 | switch (row.dylx) { | 124 | switch (row.dylx) { |
| 124 | case "zrz": | 125 | case "zrz": |
| 125 | this.$store.state.zrzbsm = row.glbsm; | 126 | this.$store.state.zrzbsm = row.glbsm; |
| 126 | this.getRightTreeByZrzbsm(row.glbsm); | 127 | this.getTreeByBsm(row.glbsm,row.dylx,'0,1,2'); |
| 127 | path = "/zrz"; | 128 | path = "/zrz"; |
| 128 | break; | 129 | break; |
| 129 | case "zd": | 130 | case "zd": |
| 130 | this.$store.state.zdbsm = row.glbsm; | 131 | this.$store.state.zdbsm = row.glbsm; |
| 131 | this.getRightTree(row.glbsm); | 132 | this.getRightTree(row.glbsm,'0,1,2'); |
| 132 | path = "/zd"; | 133 | path = "/zd"; |
| 133 | break; | 134 | break; |
| 134 | case "dz": | 135 | case "dz": |
| 135 | this.$store.state.dzbsm = row.glbsm; | 136 | this.$store.state.dzbsm = row.glbsm; |
| 136 | this.getRightTreeByDzbsm(row.glbsm); | 137 | this.getTreeByBsm(row.glbsm,row.dylx,'0,1,2'); |
| 137 | path = "/dz"; | 138 | path = "/dz"; |
| 138 | break; | 139 | break; |
| 139 | case "h": | 140 | case "h": |
| ... | @@ -141,7 +142,7 @@ | ... | @@ -141,7 +142,7 @@ |
| 141 | case "h1": | 142 | case "h1": |
| 142 | path="/h"; | 143 | path="/h"; |
| 143 | this.$store.state.hbsm=row.glbsm | 144 | this.$store.state.hbsm=row.glbsm |
| 144 | this.getRightTreeByHbsm(row.glbsm); | 145 | this.getTreeByBsm(row.glbsm,'h','0,1,2'); |
| 145 | break; | 146 | break; |
| 146 | default: | 147 | default: |
| 147 | break; | 148 | break; |
| ... | @@ -150,7 +151,8 @@ | ... | @@ -150,7 +151,8 @@ |
| 150 | path: path, | 151 | path: path, |
| 151 | query: { | 152 | query: { |
| 152 | bsm: row.glbsm, | 153 | bsm: row.glbsm, |
| 153 | source: 2 | 154 | source: 2, |
| 155 | auth: '0,1,2' | ||
| 154 | } | 156 | } |
| 155 | }); | 157 | }); |
| 156 | }, | 158 | }, | ... | ... |
| ... | @@ -56,7 +56,7 @@ import layers from '@/assets/json/layers.json' | ... | @@ -56,7 +56,7 @@ import layers from '@/assets/json/layers.json' |
| 56 | import findTask from '@/libs/map/findTask' | 56 | import findTask from '@/libs/map/findTask' |
| 57 | 57 | ||
| 58 | export default { | 58 | export default { |
| 59 | inject:['getRightTree','getRightTreeByZrzbsm'], | 59 | inject:['getRightTree','getTreeByBsm'], |
| 60 | components:{ | 60 | components:{ |
| 61 | EsriMap, | 61 | EsriMap, |
| 62 | MapTools | 62 | MapTools |
| ... | @@ -83,9 +83,9 @@ export default { | ... | @@ -83,9 +83,9 @@ export default { |
| 83 | if(query && JSON.stringify(query) != "{}"){ | 83 | if(query && JSON.stringify(query) != "{}"){ |
| 84 | //self.addGeoByBsm(query.bsm,query.type,self.viewId); | 84 | //self.addGeoByBsm(query.bsm,query.type,self.viewId); |
| 85 | if(query.type == 'zd'){ | 85 | if(query.type == 'zd'){ |
| 86 | self.getRightTree(query.bsm) | 86 | self.getRightTree(query.bsm,'0,1,2') |
| 87 | }else if(query.type == 'zrz'){ | 87 | }else if(query.type == 'zrz'){ |
| 88 | self.getRightTreeByZrzbsm(query.bsm); | 88 | self.getTreeByBsm(query.bsm,'zrz','0,1,2'); |
| 89 | } | 89 | } |
| 90 | } | 90 | } |
| 91 | },500); | 91 | },500); | ... | ... |
| ... | @@ -509,7 +509,7 @@ | ... | @@ -509,7 +509,7 @@ |
| 509 | registerCall(data).then(res => { | 509 | registerCall(data).then(res => { |
| 510 | if (res.success) { | 510 | if (res.success) { |
| 511 | this.$message.success("登记成功") | 511 | this.$message.success("登记成功") |
| 512 | this.getRightTree(this.$store.state.zdbsm) | 512 | this.getRightTree(this.$store.state.zdbsm,'0,1,2') |
| 513 | } | 513 | } |
| 514 | }) | 514 | }) |
| 515 | }, | 515 | }, | ... | ... |
| ... | @@ -414,6 +414,7 @@ | ... | @@ -414,6 +414,7 @@ |
| 414 | Qlr, | 414 | Qlr, |
| 415 | Qlxz, | 415 | Qlxz, |
| 416 | }, | 416 | }, |
| 417 | inject:['getTreeByBsm'], | ||
| 417 | props:{ | 418 | props:{ |
| 418 | bsm:String, //户标识码 | 419 | bsm:String, //户标识码 |
| 419 | scyclx:{ | 420 | scyclx:{ |
| ... | @@ -543,7 +544,7 @@ | ... | @@ -543,7 +544,7 @@ |
| 543 | registerCall(data).then(res=>{ | 544 | registerCall(data).then(res=>{ |
| 544 | if (res.success) { | 545 | if (res.success) { |
| 545 | this.$message.success("登记成功") | 546 | this.$message.success("登记成功") |
| 546 | this.getRightTree(this.$store.state.zdbsm) | 547 | this.getTreeByBsm(this.$store.state.zdbsm,'h','0,1,2') |
| 547 | } | 548 | } |
| 548 | }) | 549 | }) |
| 549 | }, | 550 | }, | ... | ... |
| ... | @@ -290,7 +290,7 @@ | ... | @@ -290,7 +290,7 @@ |
| 290 | Qlr, | 290 | Qlr, |
| 291 | Qlxz, | 291 | Qlxz, |
| 292 | }, | 292 | }, |
| 293 | inject:['reload','getRightTree'], | 293 | inject:['reload','getTreeByBsm'], |
| 294 | data () { | 294 | data () { |
| 295 | return { | 295 | return { |
| 296 | 296 | ||
| ... | @@ -418,7 +418,7 @@ | ... | @@ -418,7 +418,7 @@ |
| 418 | registerCall(data).then(res=>{ | 418 | registerCall(data).then(res=>{ |
| 419 | if (res.success) { | 419 | if (res.success) { |
| 420 | this.$message.success("登记成功") | 420 | this.$message.success("登记成功") |
| 421 | this.getRightTree(this.$store.state.zdbsm) | 421 | this.getTreeByBsm(this.$route.query.bsm,'zrz','0,1,2') |
| 422 | } | 422 | } |
| 423 | }) | 423 | }) |
| 424 | }, | 424 | }, | ... | ... |
-
Please register or sign in to post a comment