Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
9 changed files
with
73 additions
and
11 deletions
1 | VUE_APP_api = 'http://192.168.2.108:8000' | 1 | VUE_APP_api = 'http://192.168.2.48:8006' |
2 | VUE_APP_api1 = 'http://192.168.2.76:8000' | 2 | VUE_APP_api1 = 'http://127.0.0.1:8006' |
3 | VUE_APP_api2 = 'http://192.168.2.108:8006' | 3 | VUE_APP_api2 = 'http://192.168.2.9:8006' |
4 | VUE_APP_name = '开发环境' | 4 | VUE_APP_name = '开发环境' |
5 | NODE_ENV="development" | 5 | NODE_ENV="development" |
6 | VUE_APP_VERSION = 'psh' | 6 | VUE_APP_VERSION = 'psh' |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -71,3 +71,16 @@ export function getTree(zdbsm) { | ... | @@ -71,3 +71,16 @@ export function getTree(zdbsm) { |
71 | } | 71 | } |
72 | }) | 72 | }) |
73 | } | 73 | } |
74 | |||
75 | /** | ||
76 | * 根据自然幢BSM获取左侧目录树 | ||
77 | */ | ||
78 | export function getTreeByZrzbsm(zrzbsm) { | ||
79 | return request({ | ||
80 | url: 'system/xzq/getMenuTreeByZrzbsm', | ||
81 | method: 'get', | ||
82 | params: { | ||
83 | zrzbsm | ||
84 | } | ||
85 | }) | ||
86 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -141,4 +141,15 @@ export function jzxsbatchModify(data) { | ... | @@ -141,4 +141,15 @@ export function jzxsbatchModify(data) { |
141 | }) | 141 | }) |
142 | } | 142 | } |
143 | 143 | ||
144 | /**x | ||
145 | *根据宗地Bsm删除宗地信息 | ||
146 | */ | ||
147 | export function deleteZdInfoByBsm(data){ | ||
148 | return request({ | ||
149 | url: '/zd/qjZdjbxx/deleteZdjbxxByBsm', | ||
150 | method: 'delete', | ||
151 | data: data | ||
152 | }) | ||
153 | } | ||
154 | |||
144 | 155 | ... | ... |
... | @@ -98,6 +98,7 @@ export default { | ... | @@ -98,6 +98,7 @@ export default { |
98 | this.$emit("changeTop", y); | 98 | this.$emit("changeTop", y); |
99 | this.$emit("changeLeft", x); | 99 | this.$emit("changeLeft", x); |
100 | this.$emit("changeVisible", true); | 100 | this.$emit("changeVisible", true); |
101 | this.$emit("changeZdData",item); | ||
101 | } else if (item.zrzbsm) { | 102 | } else if (item.zrzbsm) { |
102 | var x = e.pageX; | 103 | var x = e.pageX; |
103 | var y = e.pageY; | 104 | var y = e.pageY; | ... | ... |
... | @@ -35,6 +35,7 @@ | ... | @@ -35,6 +35,7 @@ |
35 | v-if="item.expand && item.children.length > 0" | 35 | v-if="item.expand && item.children.length > 0" |
36 | v-on="$listeners" | 36 | v-on="$listeners" |
37 | @changeTop="changeTop" | 37 | @changeTop="changeTop" |
38 | @changeZdData="changeZdData" | ||
38 | @changeLeft="changeLeft" | 39 | @changeLeft="changeLeft" |
39 | @changeVisible="changeVisible" | 40 | @changeVisible="changeVisible" |
40 | @changeIsZD="changeIsZD" | 41 | @changeIsZD="changeIsZD" |
... | @@ -56,11 +57,13 @@ | ... | @@ -56,11 +57,13 @@ |
56 | <li v-show="!isZD">导入楼盘</li> | 57 | <li v-show="!isZD">导入楼盘</li> |
57 | <li>重叠分析</li> | 58 | <li>重叠分析</li> |
58 | <li v-show="isZD">添加定着物</li> | 59 | <li v-show="isZD">添加定着物</li> |
60 | <li @click="deleteByBsm()">删除</li> | ||
59 | </ul> | 61 | </ul> |
60 | </div> | 62 | </div> |
61 | </template> | 63 | </template> |
62 | <script> | 64 | <script> |
63 | import lineItem from "./lineItem.vue"; | 65 | import lineItem from "./lineItem.vue"; |
66 | import {deleteZdInfoByBsm} from "../../api/zd"; | ||
64 | export default { | 67 | export default { |
65 | inheritAttrs: false, | 68 | inheritAttrs: false, |
66 | props: { | 69 | props: { |
... | @@ -80,6 +83,7 @@ export default { | ... | @@ -80,6 +83,7 @@ export default { |
80 | top: 0, | 83 | top: 0, |
81 | left: 0, | 84 | left: 0, |
82 | isZD: true, | 85 | isZD: true, |
86 | zdData:{} | ||
83 | }; | 87 | }; |
84 | }, | 88 | }, |
85 | watch: { | 89 | watch: { |
... | @@ -99,6 +103,9 @@ export default { | ... | @@ -99,6 +103,9 @@ export default { |
99 | changeVisible(data) { | 103 | changeVisible(data) { |
100 | this.visible = data; | 104 | this.visible = data; |
101 | }, | 105 | }, |
106 | changeZdData(data) { | ||
107 | this.zdData = data | ||
108 | }, | ||
102 | changeTop(data) { | 109 | changeTop(data) { |
103 | this.top = data; | 110 | this.top = data; |
104 | }, | 111 | }, |
... | @@ -151,6 +158,26 @@ export default { | ... | @@ -151,6 +158,26 @@ export default { |
151 | this.selectedDetail = data; | 158 | this.selectedDetail = data; |
152 | this.$emit("detailDoubleClick", data); | 159 | this.$emit("detailDoubleClick", data); |
153 | }, | 160 | }, |
161 | deleteByBsm(){ | ||
162 | var zdBsm = this.zdData.zdbsm; | ||
163 | console.log(zdBsm); | ||
164 | deleteZdInfoByBsm(zdBsm) | ||
165 | .then((res) => { | ||
166 | if(res.code=200){ | ||
167 | this.$message({ | ||
168 | message: res.message, | ||
169 | type: "success", | ||
170 | }); | ||
171 | } else { | ||
172 | this.$message({ | ||
173 | message: res.message, | ||
174 | type: "warning", | ||
175 | }); | ||
176 | } | ||
177 | }) | ||
178 | .catch((error) => {}); | ||
179 | |||
180 | }, | ||
154 | }, | 181 | }, |
155 | }; | 182 | }; |
156 | </script> | 183 | </script> | ... | ... |
... | @@ -52,7 +52,7 @@ import Navigation from "../components/IvyElement/navigation"; | ... | @@ -52,7 +52,7 @@ import Navigation from "../components/IvyElement/navigation"; |
52 | import Create from "./panel/create/index"; | 52 | import Create from "./panel/create/index"; |
53 | import LineTree from "../components/lineTree/lineTree"; | 53 | import LineTree from "../components/lineTree/lineTree"; |
54 | import { setTimeout } from "timers"; | 54 | import { setTimeout } from "timers"; |
55 | import { getTree,getDdicByMC,getTreeList } from "../api/common"; | 55 | import { getTree,getDdicByMC,getTreeList,getTreeByZrzbsm } from "../api/common"; |
56 | 56 | ||
57 | export default { | 57 | export default { |
58 | components: { | 58 | components: { |
... | @@ -194,14 +194,14 @@ export default { | ... | @@ -194,14 +194,14 @@ export default { |
194 | if (newPath == "/zd") { | 194 | if (newPath == "/zd") { |
195 | this.getRightTree(this.$store.state.zdbsm); | 195 | this.getRightTree(this.$store.state.zdbsm); |
196 | }else if (newPath == "/zrz") { | 196 | }else if (newPath == "/zrz") { |
197 | this.getRightTree(this.$store.state.zdbsm); | 197 | this.getRightTreeByZrzbsm(this.$store.state.zrzbsm); |
198 | }else { | 198 | }else { |
199 | this.getTreeList(); | 199 | this.getTreeList(); |
200 | } | 200 | } |
201 | }, | 201 | }, |
202 | "$store.state.zdbsm": function(bsm) { | 202 | // "$store.state.zdbsm": function(bsm) { |
203 | this.getRightTree(bsm); | 203 | // this.getRightTree(bsm); |
204 | }, | 204 | // }, |
205 | }, | 205 | }, |
206 | created() { | 206 | created() { |
207 | if (this.$route.meta) { | 207 | if (this.$route.meta) { |
... | @@ -282,6 +282,14 @@ export default { | ... | @@ -282,6 +282,14 @@ export default { |
282 | } | 282 | } |
283 | }); | 283 | }); |
284 | }, | 284 | }, |
285 | |||
286 | getRightTreeByZrzbsm(bsm) { | ||
287 | getTreeByZrzbsm(bsm).then((res) => { | ||
288 | if (res.success) { | ||
289 | this.pd = res.result; | ||
290 | } | ||
291 | }); | ||
292 | }, | ||
285 | sortNavigation(data, selectId) { | 293 | sortNavigation(data, selectId) { |
286 | let headTop = this.headTop; | 294 | let headTop = this.headTop; |
287 | data.forEach((item, index) => { | 295 | data.forEach((item, index) => { | ... | ... |
... | @@ -247,7 +247,7 @@ export default { | ... | @@ -247,7 +247,7 @@ export default { |
247 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm | 247 | //todo 在新增时,如果是点击顶部新建里面的自然幢则不传zdbsm 如果是点击右键里面的添加定着物则传zdbsm |
248 | this.$refs['ruleForm1'].validate((valid) => { | 248 | this.$refs['ruleForm1'].validate((valid) => { |
249 | if (valid) { | 249 | if (valid) { |
250 | insertDzjbxx(this.ruleForm1) | 250 | insertZrzjbxx(this.ruleForm1) |
251 | .then((res) => { | 251 | .then((res) => { |
252 | if (res.code == "200") { | 252 | if (res.code == "200") { |
253 | this.$message({ | 253 | this.$message({ | ... | ... |
... | @@ -109,6 +109,7 @@ | ... | @@ -109,6 +109,7 @@ |
109 | let path = ""; | 109 | let path = ""; |
110 | switch (row.dylx) { | 110 | switch (row.dylx) { |
111 | case "zrz": | 111 | case "zrz": |
112 | this.$store.state.zrzbsm = row.glbsm; | ||
112 | path = "/zrz"; | 113 | path = "/zrz"; |
113 | break; | 114 | break; |
114 | case "zd": | 115 | case "zd": | ... | ... |
... | @@ -44,12 +44,13 @@ module.exports = { | ... | @@ -44,12 +44,13 @@ module.exports = { |
44 | }, | 44 | }, |
45 | devServer: { | 45 | devServer: { |
46 | host: "127.0.0.1", | 46 | host: "127.0.0.1", |
47 | port: 8006, | 47 | port: 8008, |
48 | https: false, | 48 | https: false, |
49 | hotOnly: false, | 49 | hotOnly: false, |
50 | proxy: { | 50 | proxy: { |
51 | "/api": { | 51 | "/api": { |
52 | target: process.env.VUE_APP_api2, | 52 | //target: process.env.VUE_APP_api, //巍巍 |
53 | target: process.env.VUE_APP_api1, //本地 | ||
53 | changeOrigin: true, | 54 | changeOrigin: true, |
54 | pathRewrite: { | 55 | pathRewrite: { |
55 | "^/api": "/", | 56 | "^/api": "/", | ... | ... |
-
Please register or sign in to post a comment