添加宗地删除
Showing
5 changed files
with
45 additions
and
5 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 | ... | ... |
... | @@ -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> | ... | ... |
... | @@ -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