style:楼盘表
Showing
21 changed files
with
690 additions
and
650 deletions
... | @@ -13,10 +13,9 @@ export function getLpZrz (data) { | ... | @@ -13,10 +13,9 @@ export function getLpZrz (data) { |
13 | } | 13 | } |
14 | 14 | ||
15 | // 获取楼盘表 | 15 | // 获取楼盘表 |
16 | export function getLpb (params) { | 16 | export function getLpb (zrzbsm) { |
17 | return request({ | 17 | return request({ |
18 | url: SERVER.SERVERAPI + '/rest/zhcx/lpcx/getLpb/', | 18 | url: SERVER.SERVERAPI + '/rest/zhcx/lpcx/getLpb?zrzbsm=' + zrzbsm, |
19 | method: 'get', | 19 | method: 'get' |
20 | params | ||
21 | }) | 20 | }) |
22 | } | 21 | } | ... | ... |
... | @@ -65,8 +65,8 @@ | ... | @@ -65,8 +65,8 @@ |
65 | <el-table-column prop="dh" label="联系电话" align="center"> | 65 | <el-table-column prop="dh" label="联系电话" align="center"> |
66 | </el-table-column> | 66 | </el-table-column> |
67 | </el-table> | 67 | </el-table> |
68 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="权利人信息" :visible.sync="dialogVisible" | 68 | <el-dialog :close-on-click-modal="false" title="权利人信息" :visible.sync="dialogVisible" custom-class="insetDialog" |
69 | custom-class="insetDialog" append-to-body width="50%"> | 69 | append-to-body width="50%"> |
70 | <el-form :model="formData" class="qlrForm"> | 70 | <el-form :model="formData" class="qlrForm"> |
71 | <table class="zdjbxxTable" cellspacing="0" cellpadding="0" border="1"> | 71 | <table class="zdjbxxTable" cellspacing="0" cellpadding="0" border="1"> |
72 | <tr> | 72 | <tr> | ... | ... |
1 | <template> | 1 | <template> |
2 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="户重新落宗" :visible.sync="isVisible" width="50%" | 2 | <el-dialog :close-on-click-modal="false" title="户重新落宗" :visible.sync="isVisible" width="50%" @close="close" |
3 | @close="close" :modal-append-to-body="false"> | 3 | :modal-append-to-body="false"> |
4 | <div class="content"> | 4 | <div class="content"> |
5 | <table> | 5 | <table> |
6 | <tr> | 6 | <tr> |
... | @@ -59,7 +59,7 @@ | ... | @@ -59,7 +59,7 @@ |
59 | import { Message } from 'element-ui' | 59 | import { Message } from 'element-ui' |
60 | export default { | 60 | export default { |
61 | name: "hCxlz", | 61 | name: "hCxlz", |
62 | components: { zdQueryData }, | 62 | // components: { zdQueryData }, |
63 | data () { | 63 | data () { |
64 | return { | 64 | return { |
65 | zd: {}, | 65 | zd: {}, | ... | ... |
... | @@ -13,12 +13,12 @@ | ... | @@ -13,12 +13,12 @@ |
13 | height: 10 + 'px', | 13 | height: 10 + 'px', |
14 | width: 10 + 'px', | 14 | width: 10 + 'px', |
15 | }" :class="{ | 15 | }" :class="{ |
16 | reTree_default_icon: item.children.length === 0, | 16 | reTree_default_icon: item.children.length === 0, |
17 | reTree_collapse_icon: !islpb && item.expand && item.children.length > 0, | 17 | reTree_collapse_icon: !islpb && item.expand && item.children.length > 0, |
18 | reTree_expand_icon: !islpb && !item.expand && item.children.length > 0, | 18 | reTree_expand_icon: !islpb && !item.expand && item.children.length > 0, |
19 | lpbTree_collapse_icon: islpb && item.expand && item.children.length > 0, | 19 | lpbTree_collapse_icon: islpb && item.expand && item.children.length > 0, |
20 | lpbTree_expand_icon: islpb && !item.expand && item.children.length > 0, | 20 | lpbTree_expand_icon: islpb && !item.expand && item.children.length > 0, |
21 | }"></div> | 21 | }"></div> |
22 | </div> | 22 | </div> |
23 | 23 | ||
24 | <lineItem v-if="item.expand && item.children.length > 0" v-on="$listeners" @ownerMethod="ownerMethod(arguments)" | 24 | <lineItem v-if="item.expand && item.children.length > 0" v-on="$listeners" @ownerMethod="ownerMethod(arguments)" |
... | @@ -70,14 +70,13 @@ | ... | @@ -70,14 +70,13 @@ |
70 | </ul> | 70 | </ul> |
71 | 71 | ||
72 | <!--@close="closeImportDialog"--> | 72 | <!--@close="closeImportDialog"--> |
73 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="导入图形" :modal="false" custom-class="importDialog" | 73 | <el-dialog :close-on-click-modal="false" title="导入图形" :modal="false" custom-class="importDialog" |
74 | :visible.sync="improtDialog" width="30%" @close="closeImportDialog"> | 74 | :visible.sync="improtDialog" width="30%" @close="closeImportDialog"> |
75 | <import-geo :property-info="zdData" :timeLine="new Date().getTime()" :geo-info="currentClickZdGeo" | 75 | <import-geo :property-info="zdData" :timeLine="new Date().getTime()" :geo-info="currentClickZdGeo" |
76 | @closeImportDialog="closeImportDialog"></import-geo> | 76 | @closeImportDialog="closeImportDialog"></import-geo> |
77 | </el-dialog> | 77 | </el-dialog> |
78 | <!-- 添加定着物弹框 --> | 78 | <!-- 添加定着物弹框 --> |
79 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="新建" :modal="false" :visible.sync="dialogVisible" | 79 | <el-dialog :close-on-click-modal="false" title="新建" :modal="false" :visible.sync="dialogVisible" width="48%"> |
80 | width="48%"> | ||
81 | <!-- <Create @closeDialog="closeDialog" :auth="true" :createZrz="createZrz" ></Create> --> | 80 | <!-- <Create @closeDialog="closeDialog" :auth="true" :createZrz="createZrz" ></Create> --> |
82 | </el-dialog> | 81 | </el-dialog> |
83 | <!-- <sxdr :sxdr-visible="sxdrVisible" @close="sxdrClose" :dylx="zdData.type" :bsm="zdData.bsm"></sxdr> --> | 82 | <!-- <sxdr :sxdr-visible="sxdrVisible" @close="sxdrClose" :dylx="zdData.type" :bsm="zdData.bsm"></sxdr> --> |
... | @@ -96,566 +95,566 @@ import ImportGeo from './tx/importGeo' | ... | @@ -96,566 +95,566 @@ import ImportGeo from './tx/importGeo' |
96 | port default { | 95 | port default { |
97 | nheritAttrs: false, | 96 | nheritAttrs: false, |
98 | ps: { | 97 | ps: { |
99 | { | 98 | { |
100 | e: Array, | 99 | e: Array, |
101 | ault: () => { | 100 | ault: () => { |
102 | turn []; | 101 | turn[]; |
103 | 102 | ||
104 | : { | 103 | : { |
105 | e: Number, | 104 | e: Number, |
106 | ault: 16, | 105 | ault: 16, |
107 | b: { | 106 | b: { |
108 | e: Boolean, | 107 | e: Boolean, |
109 | ault: false, | 108 | ault: false, |
110 | 109 | ||
111 | omponents: { lineItem, Create, ImportGeo, sxdr }, | 110 | omponents: { lineItem, Create, ImportGeo, sxdr }, |
112 | ixins: [geoUtils, featureUpdate], | 111 | ixins: [geoUtils, featureUpdate], |
113 | a () { | 112 | a() { |
114 | rn { | 113 | rn { |
115 | rVisible: false, | 114 | rVisible: false, |
116 | electedDetail: {}, | 115 | electedDetail: { }, |
117 | timer: {}, | 116 | timer: { }, |
118 | formatData: this.$store.state.treeData, | 117 | formatData: this.$store.state.treeData, |
119 | isible: false, | 118 | isible: false, |
120 | top: 0, | 119 | top: 0, |
121 | left: 0, | 120 | left: 0, |
122 | sZD: true, | 121 | sZD: true, |
123 | ata: {}, | 122 | ata: { }, |
124 | rentClickZdGeo: "", | 123 | rentClickZdGeo: "", |
125 | mprotDialog: false, | 124 | mprotDialog: false, |
126 | ialogVisible: false, | 125 | ialogVisible: false, |
127 | 制自然幢右键菜单 | 126 | 制自然幢右键菜单 |
128 | Visible: false, | 127 | Visible: false, |
129 | 盘表 | 128 | 盘表 |
130 | visible: false, | 129 | visible: false, |
131 | top: 0, | 130 | top: 0, |
132 | left: 0, | 131 | left: 0, |
133 | /控制新建宗地菜单 | 132 | /控制新建宗地菜单 |
134 | reateVisible: false, | 133 | reateVisible: false, |
135 | 幢 | 134 | 幢 |
136 | isible: false, | 135 | isible: false, |
137 | 属状态 | 136 | 属状态 |
138 | szt: null, | 137 | szt: null, |
139 | : "PROJCS[\"XADFZBX\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]", | 138 | : "PROJCS[\"XADFZBX\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0.0],PARAMETER[\"Scale_Factor\",1.0],PARAMETER[\"Latitude_Of_Origin\",0.0],UNIT[\"Meter\",1.0]]", |
140 | ateZrz: false, | 139 | ateZrz: false, |
141 | /构筑物 | 140 | /构筑物 |
142 | zwVisible: false | 141 | zwVisible: false |
143 | 142 | ||
144 | ch: { | 143 | ch: { |
145 | (n, o) { | 144 | (n, o) { |
146 | s.formatData = this.preDealData(n); | 145 | s.formatData = this.preDealData(n); |
147 | isible (value) { | 146 | isible(value) { |
148 | (value) { | 147 | (value) { |
149 | ment.body.addEventListener("click", this.closeMenu); | 148 | ment.body.addEventListener("click", this.closeMenu); |
150 | lse { | 149 | lse { |
151 | cument.body.removeEventListener("click", this.closeMenu); | 150 | cument.body.removeEventListener("click", this.closeMenu); |
152 | 151 | ||
153 | 152 | ||
154 | Visible (value) { | 153 | Visible(value) { |
155 | (value) { | 154 | (value) { |
156 | cument.body.addEventListener("click", this.closeMenu); | 155 | cument.body.addEventListener("click", this.closeMenu); |
157 | lse { | 156 | lse { |
158 | cument.body.removeEventListener("click", this.closeMenu); | 157 | cument.body.removeEventListener("click", this.closeMenu); |
159 | wVisible (value) { | 158 | wVisible(value) { |
160 | f (value) { | 159 | f(value) { |
161 | document.body.addEventListener("click", this.closeMenu); | 160 | document.body.addEventListener("click", this.closeMenu); |
162 | lse { | 161 | lse { |
163 | cument.body.removeEventListener("click", this.closeMenu); | 162 | cument.body.removeEventListener("click", this.closeMenu); |
164 | } | 163 | } |
165 | zrzVisible (value) { | 164 | zrzVisible(value) { |
166 | (value) { | 165 | (value) { |
167 | ment.body.addEventListener("click", this.closeMenu); | 166 | ment.body.addEventListener("click", this.closeMenu); |
168 | lse { | 167 | lse { |
169 | document.body.removeEventListener("click", this.closeMenu); | 168 | document.body.removeEventListener("click", this.closeMenu); |
170 | reateVisible(value) { | 169 | reateVisible(value) { |
171 | (value) { | 170 | (value) { |
172 | document.body.addEventListener("click", this.closeMenu); | 171 | document.body.addEventListener("click", this.closeMenu); |
173 | } else { | 172 | } else { |
174 | document.body.removeEventListener("click", this.closeMenu); | 173 | document.body.removeEventListener("click", this.closeMenu); |
175 | } | 174 | } |
176 | } | 175 | } |
177 | ed () { | 176 | ed() { |
178 | nextTick(() => { | 177 | nextTick(() => { |
179 | eDealData(this.pd); | 178 | eDealData(this.pd); |
180 | ndTreeItemById(["6b5af49d803f97baf06afb897de257f5"]); | 179 | ndTreeItemById(["6b5af49d803f97baf06afb897de257f5"]); |
181 | 180 | ||
182 | { | 181 | { |
183 | .log(this.zdData, 'zdData') | 182 | .log(this.zdData, 'zdData') |
184 | ow.open(`api/tx/excelGeo/export?bsm=${this.zdData.bsm}&type=${this.zdData.type}`) | 183 | ow.open(`api/tx/excelGeo/export?bsm=${this.zdData.bsm}&type=${this.zdData.type}`) |
185 | `api/tx/excelGeo/export?bsm=${this.zdData.bsm}&type=${this.zdData.type}` | 184 | `api/tx/excelGeo/export?bsm=${this.zdData.bsm}&type=${this.zdData.type}` |
186 | mIF = document.createElement("iframe"); | 185 | mIF = document.createElement("iframe"); |
187 | src = url; | 186 | src = url; |
188 | style.display = "none"; | 187 | style.display = "none"; |
189 | t.body.appendChild(elemIF) | 188 | t.body.appendChild(elemIF) |
190 | { | 189 | { |
191 | his.zdQszt != '0') { | 190 | his.zdQszt != '0') { |
192 | 191 | ||
193 | drVisible = true; | 192 | drVisible = true; |
194 | e () { | 193 | e() { |
195 | sxdrVisible = false; | 194 | sxdrVisible = false; |
196 | ading () { | 195 | ading() { |
197 | his.$emit("loading") | 196 | his.$emit("loading") |
198 | 197 | ||
199 | eleteLjz () { | 198 | eleteLjz() { |
200 | console.log("删除逻辑幢") | 199 | console.log("删除逻辑幢") |
201 | console.log(this.zdData, "zdData") | 200 | console.log(this.zdData, "zdData") |
202 | deleteLjz(this.zdData.bsm).then(res => { | 201 | deleteLjz(this.zdData.bsm).then(res => { |
203 | if (res.success) { | 202 | if (res.success) { |
204 | this.loading() | 203 | this.loading() |
205 | else { | 204 | else { |
206 | dy () { | 205 | dy() { |
207 | log("删除幢单元") | 206 | log("删除幢单元") |
208 | e.log(this.zdData, "zdData") | 207 | e.log(this.zdData, "zdData") |
209 | teZdy(this.zdData.bsm).then(res => { | 208 | teZdy(this.zdData.bsm).then(res => { |
210 | f (res.success) { | 209 | f(res.success) { |
211 | this.loading() | 210 | this.loading() |
212 | } | 211 | } |
213 | 212 | ||
214 | , | 213 | , |
215 | 变菜单数据 | 214 | 变菜单数据 |
216 | Visible (data) { | 215 | Visible(data) { |
217 | s.zrzVisible = data; | 216 | s.zrzVisible = data; |
218 | s.lpbvisible = false; | 217 | s.lpbvisible = false; |
219 | dzVisible = false; | 218 | dzVisible = false; |
220 | wVisible = false; | 219 | wVisible = false; |
221 | ta (data) { | 220 | ta(data) { |
222 | = data; | 221 | = data; |
223 | zt = data.qszt; | 222 | zt = data.qszt; |
224 | (data) { | 223 | (data) { |
225 | p = data; | 224 | p = data; |
226 | lpbtop = data; | 225 | lpbtop = data; |
227 | angeLeft (data) { | 226 | angeLeft(data) { |
228 | this.left = data; | 227 | this.left = data; |
229 | this.lpbleft = data; | 228 | this.lpbleft = data; |
230 | }, | 229 | }, |
231 | changeIsZD (data) { | 230 | changeIsZD(data) { |
232 | this.isZD = data; | 231 | this.isZD = data; |
233 | }, | 232 | }, |
234 | changeLpbVisible (data) { | 233 | changeLpbVisible(data) { |
235 | this.lpbvisible = data; | 234 | this.lpbvisible = data; |
236 | this.zrzVisible = false; | 235 | this.zrzVisible = false; |
237 | this.dzVisible = false; | 236 | this.dzVisible = false; |
238 | this.gzwVisible = false; | 237 | this.gzwVisible = false; |
239 | }, | 238 | }, |
240 | changeCreateVisible (data) { | 239 | changeCreateVisible(data) { |
241 | this.createVisible = true; | 240 | this.createVisible = true; |
242 | }, | 241 | }, |
243 | //多幢 | 242 | //多幢 |
244 | changeDzVisible (data) { | 243 | changeDzVisible(data) { |
245 | this.dzVisible = data; | 244 | this.dzVisible = data; |
246 | this.zrzVisible = false; | 245 | this.zrzVisible = false; |
247 | this.lpbvisible = false; | 246 | this.lpbvisible = false; |
248 | this.gzwVisible = false; | 247 | this.gzwVisible = false; |
249 | }, | 248 | }, |
250 | //构筑物 | 249 | //构筑物 |
251 | changeGzwVisible (data) { | 250 | changeGzwVisible(data) { |
252 | this.gzwVisible = data; | 251 | this.gzwVisible = data; |
253 | this.zrzVisible = false; | 252 | this.zrzVisible = false; |
254 | this.lpbvisible = false; | 253 | this.lpbvisible = false; |
255 | this.dzVisible = false; | 254 | this.dzVisible = false; |
256 | }, | 255 | }, |
257 | //添加定着物 | 256 | //添加定着物 |
258 | openCreateDialog (type) { | 257 | openCreateDialog(type) { |
259 | if (type == 'zrz') { | 258 | if (type == 'zrz') { |
260 | this.createZrz = true; | 259 | this.createZrz = true; |
261 | } | 260 | } |
262 | console.log(this.zdData, 'this.zdData'); | 261 | console.log(this.zdData, 'this.zdData'); |
263 | this.dialogVisible = true; | 262 | this.dialogVisible = true; |
264 | this.$store.state.zdbsm = this.zdData.zdbsm; | 263 | this.$store.state.zdbsm = this.zdData.zdbsm; |
265 | if (this.zdData.type == 'dz') { | 264 | if (this.zdData.type == 'dz') { |
266 | this.$store.state.dzbsm = this.zdData.bsm; | 265 | this.$store.state.dzbsm = this.zdData.bsm; |
267 | } else { | 266 | } else { |
268 | this.$store.state.dzbsm = ''; | 267 | this.$store.state.dzbsm = ''; |
269 | } | 268 | } |
270 | }, | 269 | }, |
271 | //关闭添加定着物弹框 | 270 | //关闭添加定着物弹框 |
272 | closeDialog () { | 271 | closeDialog() { |
273 | this.dialogVisible = false; | 272 | this.dialogVisible = false; |
274 | this.createZrz = false; | 273 | this.createZrz = false; |
275 | }, | 274 | }, |
276 | preDealData (list) { | 275 | preDealData(list) { |
277 | //楼盘表目录树没有expand属性 | 276 | //楼盘表目录树没有expand属性 |
278 | // if(list == null){ | 277 | // if(list == null){ |
279 | // return list | 278 | // return list |
280 | // }else{ | 279 | // }else{ |
281 | list.forEach((x) => { | 280 | list.forEach((x) => { |
282 | if (x.expand == undefined) this.$set(x, "expand", true); | 281 | if (x.expand == undefined) this.$set(x, "expand", true); |
283 | if (x.children && x.children.length > 0) { | 282 | if (x.children && x.children.length > 0) { |
284 | this.preDealData(x.children); | 283 | this.preDealData(x.children); |
285 | } | 284 | } |
286 | }); | 285 | }); |
287 | return list; | 286 | return list; |
288 | // } | 287 | // } |
289 | }, | 288 | }, |
290 | // 根据id展开树的具体项 | 289 | // 根据id展开树的具体项 |
291 | expandTreeItemById (idList) { | 290 | expandTreeItemById(idList) { |
292 | let _this = this; | 291 | let _this = this; |
293 | function loopTree (list) { | 292 | function loopTree (list) { |
294 | list.forEach((x) => { | 293 | list.forEach((x) => { |
295 | if (idList.includes(x.zdbsm)) { | 294 | if (idList.includes(x.zdbsm)) { |
296 | _this.$set(x, "expand", true); | 295 | _this.$set(x, "expand", true); |
297 | } else { | 296 | } else { |
298 | _this.$set(x, "expand", false); | 297 | _this.$set(x, "expand", false); |
299 | } | 298 | } |
300 | if (x.children && x.children.length > 0) loopTree(x.children); | 299 | if (x.children && x.children.length > 0) loopTree(x.children); |
301 | }); | 300 | }); |
302 | return list; | 301 | return list; |
303 | } | 302 | } |
304 | this.formatData = loopTree(this.pd); | 303 | this.formatData = loopTree(this.pd); |
305 | console.log(this.formatData, "this.formatData"); | 304 | console.log(this.formatData, "this.formatData"); |
306 | }, | 305 | }, |
307 | itemClick (item) { | 306 | itemClick(item) { |
308 | // item.expand = item.expand == undefined? true:!item.expand; | 307 | // item.expand = item.expand == undefined? true:!item.expand; |
309 | this.formatData.forEach(i => { | 308 | this.formatData.forEach(i => { |
310 | if (i.bsm != item.bsm) { | 309 | if (i.bsm != item.bsm) { |
311 | i.expand = false | 310 | i.expand = false |
312 | } else { | 311 | } else { |
313 | // i.expand = !item.expand | 312 | // i.expand = !item.expand |
314 | } | 313 | } |
315 | }) | 314 | }) |
316 | item.expand = !item.expand; | 315 | item.expand = !item.expand; |
317 | // this.$emit("itemClick", item); | 316 | // this.$emit("itemClick", item); |
318 | }, | 317 | }, |
319 | //给所有权类型添加子节点 | 318 | //给所有权类型添加子节点 |
320 | ownerMethod (arr) { | 319 | ownerMethod(arr) { |
321 | let item = arr[0]; | 320 | let item = arr[0]; |
322 | let list = arr[1] | 321 | let list = arr[1] |
323 | this.formatData.forEach(i => { | 322 | this.formatData.forEach(i => { |
324 | if (i.bsm == item.xzq) { | 323 | if (i.bsm == item.xzq) { |
325 | i.children.forEach(j => { | 324 | i.children.forEach(j => { |
326 | if (j.bsm == item.djq) { | 325 | if (j.bsm == item.djq) { |
327 | j.children.forEach(k => { | 326 | j.children.forEach(k => { |
328 | if (k.bsm == item.djzq) { | 327 | if (k.bsm == item.djzq) { |
329 | k.children.forEach(n => { | 328 | k.children.forEach(n => { |
330 | if (n.dm == item.dm) { | 329 | if (n.dm == item.dm) { |
331 | this.$nextTick(() => { | 330 | this.$nextTick(() => { |
332 | n.children = list; | 331 | n.children = list; |
333 | }) | 332 | }) |
334 | } | 333 | } |
335 | }) | 334 | }) |
336 | } | 335 | } |
337 | }) | 336 | }) |
338 | } | 337 | } |
339 | }) | 338 | }) |
340 | } | 339 | } |
341 | }); | 340 | }); |
342 | this.$store.state.treeData = this.formatData; | 341 | this.$store.state.treeData = this.formatData; |
343 | }, | 342 | }, |
344 | //自然幢右键点击事件 | 343 | //自然幢右键点击事件 |
345 | openMenu (e, item) { | 344 | openMenu(e, item) { |
346 | this.lpbleft = e.pageX; | 345 | this.lpbleft = e.pageX; |
347 | this.lpbtop = e.pageY; | 346 | this.lpbtop = e.pageY; |
348 | this.zdData = item; | 347 | this.zdData = item; |
349 | this.changeLpbVisible(true); | 348 | this.changeLpbVisible(true); |
350 | }, | 349 | }, |
351 | //关闭右键菜单 | 350 | //关闭右键菜单 |
352 | closeMenu () { | 351 | closeMenu() { |
353 | this.zrzVisible = false; | 352 | this.zrzVisible = false; |
354 | this.lpbvisible = false; | 353 | this.lpbvisible = false; |
355 | this.dzVisible = false; | 354 | this.dzVisible = false; |
356 | this.gzwVisible = false; | 355 | this.gzwVisible = false; |
357 | }, | 356 | }, |
358 | //楼盘表右键菜单项打开父组件弹框 | 357 | //楼盘表右键菜单项打开父组件弹框 |
359 | openLpbDialog (type) { | 358 | openLpbDialog(type) { |
360 | this.$parent.openLpbDialog(this.zdData, type); | 359 | this.$parent.openLpbDialog(this.zdData, type); |
361 | }, | 360 | }, |
362 | detailDoubleClick (data) { | 361 | detailDoubleClick(data) { |
363 | clearTimeout(this.timer); | 362 | clearTimeout(this.timer); |
364 | this.selectedDetail = data; | 363 | this.selectedDetail = data; |
365 | this.$emit("detailDoubleClick", data); | 364 | this.$emit("detailDoubleClick", data); |
366 | }, | 365 | }, |
367 | //右键菜单的删除 | 366 | //右键菜单的删除 |
368 | deleteByBsm () { | 367 | deleteByBsm() { |
369 | let name = ''; | 368 | let name = ''; |
370 | switch (this.zdData.type) { | 369 | switch (this.zdData.type) { |
371 | case 'zd': | 370 | case 'zd': |
372 | name = '宗地' | 371 | name = '宗地' |
373 | break; | 372 | break; |
374 | case 'dz': | 373 | case 'dz': |
375 | name = '多幢' | 374 | name = '多幢' |
376 | break; | 375 | break; |
377 | case 'zrz': | 376 | case 'zrz': |
378 | name = '自然幢' | 377 | name = '自然幢' |
379 | break; | 378 | break; |
380 | case 'gzw': | 379 | case 'gzw': |
381 | name = '构筑物' | 380 | name = '构筑物' |
382 | break; | 381 | break; |
383 | 382 | ||
384 | default: | 383 | default: |
385 | break; | 384 | break; |
386 | } | 385 | } |
387 | this.$confirm('是否确定删除该' + name + '?', '提示', { | 386 | this.$confirm('是否确定删除该' + name + '?', '提示', { |
388 | confirmButtonText: '确定', | 387 | confirmButtonText: '确定', |
389 | cancelButtonText: '取消', | 388 | cancelButtonText: '取消', |
390 | type: 'warning' | 389 | type: 'warning' |
391 | }).then(() => { | 390 | }).then(() => { |
392 | let params = { "bsm": this.zdData.bsm, "type": this.zdData.type }; | 391 | let params = { "bsm": this.zdData.bsm, "type": this.zdData.type }; |
393 | deleteZdInfoByBsm(params) | 392 | deleteZdInfoByBsm(params) |
394 | .then((res) => { | 393 | .then((res) => { |
395 | console.log(res); | 394 | console.log(res); |
396 | if (res.success) { | 395 | if (res.success) { |
397 | this.$message({ | 396 | this.$message({ |
398 | type: 'success', | 397 | type: 'success', |
399 | message: '删除成功!' | 398 | message: '删除成功!' |
400 | }); | 399 | }); |
401 | this.$router.push("/panel"); | 400 | this.$router.push("/panel"); |
402 | } else { | 401 | } else { |
403 | this.$message({ | 402 | this.$message({ |
404 | message: res.message, | 403 | message: res.message, |
405 | type: "warning", | 404 | type: "warning", |
406 | }); | 405 | }); |
407 | } | 406 | } |
408 | }) | 407 | }) |
409 | .catch((error) => { }); | 408 | .catch((error) => { }); |
410 | }).catch(() => { | 409 | }).catch(() => { |
411 | 410 | ||
412 | }); | 411 | }); |
413 | var self = this; | 412 | var self = this; |
414 | var BSM = ""; | 413 | var BSM = ""; |
415 | var type = this.zdData.type; | 414 | var type = this.zdData.type; |
416 | if (type == "zd") { | 415 | if (type == "zd") { |
417 | BSM = this.zdData.zdbsm; | 416 | BSM = this.zdData.zdbsm; |
418 | } else { | 417 | } else { |
419 | BSM = this.zdData.bsm; | 418 | BSM = this.zdData.bsm; |
420 | } | 419 | } |
421 | //删除图形相关信息 | 420 | //删除图形相关信息 |
422 | var type = this.zdData.type; | 421 | var type = this.zdData.type; |
423 | this.queryGeoByBsm(BSM, type, function (features) { | 422 | this.queryGeoByBsm(BSM, type, function (features) { |
424 | if (features && features.length > 0) { | 423 | if (features && features.length > 0) { |
425 | var layer = null; | 424 | var layer = null; |
426 | if (type == 'zd') { | 425 | if (type == 'zd') { |
427 | layer = self.getLayerByName("ZDJBXX"); | 426 | layer = self.getLayerByName("ZDJBXX"); |
428 | } else { | 427 | } else { |
429 | layer = self.getLayerByName("ZRZ"); | 428 | layer = self.getLayerByName("ZRZ"); |
430 | 429 | ||
431 | } | 430 | } |
432 | var featureUrl = layer.layerUrl.replace("MapServer", "FeatureServer"); | 431 | var featureUrl = layer.layerUrl.replace("MapServer", "FeatureServer"); |
433 | featureUrl += "/" + layer.id; | 432 | featureUrl += "/" + layer.id; |
434 | self.delGraphic(featureUrl, features[0], null); | 433 | self.delGraphic(featureUrl, features[0], null); |
435 | } | 434 | } |
436 | }); | 435 | }); |
437 | }, | 436 | }, |
438 | //删除图形 | 437 | //删除图形 |
439 | deleteGeoByBsm () { | 438 | deleteGeoByBsm() { |
440 | var self = this; | 439 | var self = this; |
441 | var BSM = ""; | 440 | var BSM = ""; |
442 | var type = this.zdData.type; | 441 | var type = this.zdData.type; |
443 | if (type == "zd") { | 442 | if (type == "zd") { |
444 | BSM = this.zdData.zdbsm; | 443 | BSM = this.zdData.zdbsm; |
445 | } else { | 444 | } else { |
446 | BSM = this.zdData.bsm; | 445 | BSM = this.zdData.bsm; |
447 | } | 446 | } |
448 | //删除图形相关信息 | 447 | //删除图形相关信息 |
449 | var type = this.zdData.type; | 448 | var type = this.zdData.type; |
450 | this.queryGeoByBsm(BSM, type, function (features) { | 449 | this.queryGeoByBsm(BSM, type, function (features) { |
451 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { | 450 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { |
452 | var layer = null; | 451 | var layer = null; |
453 | if (type == 'zd') { | 452 | if (type == 'zd') { |
454 | layer = self.getLayerByName("ZDJBXX"); | 453 | layer = self.getLayerByName("ZDJBXX"); |
455 | } else { | 454 | } else { |
456 | layer = self.getLayerByName("ZRZ"); | 455 | layer = self.getLayerByName("ZRZ"); |
457 | } | 456 | } |
458 | var featureUrl = layer.layerUrl.replace("MapServer", "FeatureServer"); | 457 | var featureUrl = layer.layerUrl.replace("MapServer", "FeatureServer"); |
459 | featureUrl += "/" + layer.id; | 458 | featureUrl += "/" + layer.id; |
460 | features[0].geometry = null; | 459 | features[0].geometry = null; |
461 | self.updateGraphic(featureUrl, features, function (res) { | 460 | self.updateGraphic(featureUrl, features, function (res) { |
462 | if (!res.updateFeatureResults[0].error) { | 461 | if (!res.updateFeatureResults[0].error) { |
463 | self.$message.warning("删除成功!!!") | 462 | self.$message.warning("删除成功!!!") |
464 | //清除图层 | 463 | //清除图层 |
465 | self.clearHighlightLayer("testMap"); | 464 | self.clearHighlightLayer("testMap"); |
466 | //self.addGeoByBsm(BSM,type,"testMap"); | 465 | //self.addGeoByBsm(BSM,type,"testMap"); |
467 | //删除界址点 界址线 | 466 | //删除界址点 界址线 |
468 | if (type == 'zd') { | 467 | if (type == 'zd') { |
469 | self.delJzdAndJzx(BSM); | 468 | self.delJzdAndJzx(BSM); |
470 | } | 469 | } |
471 | } | 470 | } |
472 | 471 | ||
473 | }); | 472 | }); |
474 | } else { | 473 | } else { |
475 | self.$message.warning("暂无图形信息!!!") | 474 | self.$message.warning("暂无图形信息!!!") |
476 | } | 475 | } |
477 | }); | 476 | }); |
478 | }, | 477 | }, |
479 | //删除宗地界址点 界址线 | 478 | //删除宗地界址点 界址线 |
480 | delJzdAndJzx (bsm) { | 479 | delJzdAndJzx(bsm) { |
481 | delJzdByBsm({ zdbsm: bsm }).then(res => { | 480 | delJzdByBsm({ zdbsm: bsm }).then(res => { |
482 | if (res.success) { | 481 | if (res.success) { |
483 | console.log("删除界址点成功!!!"); | 482 | console.log("删除界址点成功!!!"); |
484 | } | 483 | } |
485 | }); | 484 | }); |
486 | delJzxByBsm({ zdbsm: bsm }).then(res => { | 485 | delJzxByBsm({ zdbsm: bsm }).then(res => { |
487 | if (res.success) { | 486 | if (res.success) { |
488 | console.log("删除界址线成功!!!"); | 487 | console.log("删除界址线成功!!!"); |
489 | } | 488 | } |
490 | }) | 489 | }) |
491 | }, | 490 | }, |
492 | /* | 491 | /* |
493 | * 导入图形 | 492 | * 导入图形 |
494 | * */ | 493 | * */ |
495 | importGeo () { | 494 | importGeo() { |
496 | var self = this; | 495 | var self = this; |
497 | var BSM = ""; | 496 | var BSM = ""; |
498 | if (this.zdData.qszt != '0') { | 497 | if (this.zdData.qszt != '0') { |
499 | this.$message.warning("不是临时数据,不能导入图形!!!"); | 498 | this.$message.warning("不是临时数据,不能导入图形!!!"); |
500 | return; | 499 | return; |
501 | } | 500 | } |
502 | var type = this.zdData.type; | 501 | var type = this.zdData.type; |
503 | if (type == "zd") { | 502 | if (type == "zd") { |
504 | BSM = this.zdData.zdbsm; | 503 | BSM = this.zdData.zdbsm; |
505 | } else { | 504 | } else { |
506 | BSM = this.zdData.bsm; | 505 | BSM = this.zdData.bsm; |
507 | } | 506 | } |
508 | //当确定导入图形是 跳转到图形界面 | 507 | //当确定导入图形是 跳转到图形界面 |
509 | this.queryGeoByBsm(BSM, type, function (features) { | 508 | this.queryGeoByBsm(BSM, type, function (features) { |
510 | if (features && features.length > 0) { | 509 | if (features && features.length > 0) { |
511 | if (features[0].geometry && features[0].geometry.rings.length > 0) { | 510 | if (features[0].geometry && features[0].geometry.rings.length > 0) { |
512 | self.$confirm('该条数据有地块信息,是否继续导入?', '提示', { | 511 | self.$confirm('该条数据有地块信息,是否继续导入?', '提示', { |
513 | confirmButtonText: '继续', | 512 | confirmButtonText: '继续', |
514 | cancelButtonText: '取消', | 513 | cancelButtonText: '取消', |
515 | type: 'warning' | 514 | type: 'warning' |
516 | }).then(() => { | 515 | }).then(() => { |
517 | self.postionToMap(); | 516 | self.postionToMap(); |
518 | self.improtDialog = true; | 517 | self.improtDialog = true; |
519 | self.currentClickZdGeo = features[0]; | 518 | self.currentClickZdGeo = features[0]; |
520 | }).catch(() => { | 519 | }).catch(() => { |
521 | self.$message({ | 520 | self.$message({ |
522 | type: 'info', | 521 | type: 'info', |
523 | message: '已取消' | 522 | message: '已取消' |
524 | }); | 523 | }); |
525 | }); | 524 | }); |
526 | } else { | 525 | } else { |
527 | self.postionToMap(); | 526 | self.postionToMap(); |
528 | self.currentClickZdGeo = features[0]; | 527 | self.currentClickZdGeo = features[0]; |
529 | self.improtDialog = true; | 528 | self.improtDialog = true; |
530 | } | 529 | } |
531 | 530 | ||
532 | } else { | 531 | } else { |
533 | self.postionToMap(); | 532 | self.postionToMap(); |
534 | self.currentClickZdGeo = null; | 533 | self.currentClickZdGeo = null; |
535 | self.improtDialog = true; | 534 | self.improtDialog = true; |
536 | } | 535 | } |
537 | }); | 536 | }); |
538 | }, | 537 | }, |
539 | //导出文本文件 | 538 | //导出文本文件 |
540 | exportText () { | 539 | exportText() { |
541 | var self = this; | 540 | var self = this; |
542 | var type = this.zdData.type; | 541 | var type = this.zdData.type; |
543 | var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; | 542 | var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; |
544 | this.queryGeoByBsm(BSM, type, function (features) { | 543 | this.queryGeoByBsm(BSM, type, function (features) { |
545 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { | 544 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { |
546 | var data = features[0]; | 545 | var data = features[0]; |
547 | var jzdInfo = self.craetJZPoint(data); | 546 | var jzdInfo = self.craetJZPoint(data); |
548 | var textCotent = ""; | 547 | var textCotent = ""; |
549 | textCotent += exportTemJson.exprotTextAttr; | 548 | textCotent += exportTemJson.exprotTextAttr; |
550 | textCotent += "[地块坐标]\n"; | 549 | textCotent += "[地块坐标]\n"; |
551 | var dkMc = "", dkYt = ""; | 550 | var dkMc = "", dkYt = ""; |
552 | if (type == 'zd') { | 551 | if (type == 'zd') { |
553 | dkMc = data.attributes.ZL; | 552 | dkMc = data.attributes.ZL; |
554 | dkYt = data.attributes.YT; | 553 | dkYt = data.attributes.YT; |
555 | } else { | 554 | } else { |
556 | dkMc = data.attributes.XMMC + data.attributes.JZWMC; | 555 | dkMc = data.attributes.XMMC + data.attributes.JZWMC; |
557 | dkYt = "建设用地"; | 556 | dkYt = "建设用地"; |
558 | } | 557 | } |
559 | textCotent += ",,," + dkMc + ",面,," + dkYt + ",,@\n"; | 558 | textCotent += ",,," + dkMc + ",面,," + dkYt + ",,@\n"; |
560 | for (var i = 0; i < jzdInfo.length; i++) { | 559 | for (var i = 0; i < jzdInfo.length; i++) { |
561 | textCotent += jzdInfo[i].jzdh + "," + jzdInfo[i].sxh + "," + | 560 | textCotent += jzdInfo[i].jzdh + "," + jzdInfo[i].sxh + "," + |
562 | jzdInfo[i].x + "," + jzdInfo[i].y + "\n" | 561 | jzdInfo[i].x + "," + jzdInfo[i].y + "\n" |
563 | } | 562 | } |
564 | self.downloadTxt(textCotent, "outPut.txt"); | 563 | self.downloadTxt(textCotent, "outPut.txt"); |
565 | } | 564 | } |
566 | }, { wkt: this.wkt }); | 565 | }, { wkt: this.wkt }); |
567 | }, | 566 | }, |
568 | //导出shp文件 | 567 | //导出shp文件 |
569 | exportToShp () { | 568 | exportToShp() { |
570 | var self = this; | 569 | var self = this; |
571 | var type = this.zdData.type; | 570 | var type = this.zdData.type; |
572 | var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; | 571 | var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; |
573 | this.queryGeoByBsm(BSM, type, function (features) { | 572 | this.queryGeoByBsm(BSM, type, function (features) { |
574 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { | 573 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { |
575 | var data = JSON.stringify(features[0]); | 574 | var data = JSON.stringify(features[0]); |
576 | window.location.href = "/api/tx/shpUtils/writeShp?strObj=" + encodeURI(data) | 575 | window.location.href = "/api/tx/shpUtils/writeShp?strObj=" + encodeURI(data) |
577 | /* exportShp({ | 576 | /* exportShp({ |
578 | "strObj":encodeURI(data) | 577 | "strObj":encodeURI(data) |
579 | }).then(res => { | 578 | }).then(res => { |
580 | debugger | 579 | debugger |
581 | });*/ | 580 | });*/ |
582 | } else { | 581 | } else { |
583 | self.$message.warning("暂无空间信息!!!!"); | 582 | self.$message.warning("暂无空间信息!!!!"); |
584 | } | 583 | } |
585 | }, { wkt: this.wkt }); | 584 | }, { wkt: this.wkt }); |
586 | }, | 585 | }, |
587 | //导出excel | 586 | //导出excel |
588 | exportExcel () { | 587 | exportExcel() { |
589 | var self = this; | 588 | var self = this; |
590 | var type = this.zdData.type; | 589 | var type = this.zdData.type; |
591 | var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; | 590 | var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; |
592 | this.queryGeoByBsm(BSM, type, function (features) { | 591 | this.queryGeoByBsm(BSM, type, function (features) { |
593 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { | 592 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { |
594 | var data = features[0]; | 593 | var data = features[0]; |
595 | var jzdInfo = self.craetJZPoint(data); | 594 | var jzdInfo = self.craetJZPoint(data); |
596 | var submitData = []; | 595 | var submitData = []; |
597 | for (var i = 0; i < jzdInfo.length; i++) { | 596 | for (var i = 0; i < jzdInfo.length; i++) { |
598 | var obj = { | 597 | var obj = { |
599 | jzdHao: jzdInfo[i].jzdh, | 598 | jzdHao: jzdInfo[i].jzdh, |
600 | x: jzdInfo[i].x, | 599 | x: jzdInfo[i].x, |
601 | y: jzdInfo[i].y, | 600 | y: jzdInfo[i].y, |
602 | diKuaiQuanHao: jzdInfo.sxh | 601 | diKuaiQuanHao: jzdInfo.sxh |
603 | } | 602 | } |
604 | submitData.push(obj); | 603 | submitData.push(obj); |
605 | } | 604 | } |
606 | exportExcel(submitData).then((res) => { | 605 | exportExcel(submitData).then((res) => { |
607 | if (res.code == 200) { | 606 | if (res.code == 200) { |
608 | var path = res.result; | 607 | var path = res.result; |
609 | window.location.href = "/api/tx/excelGeo/download?filePath=" + encodeURI(path); | 608 | window.location.href = "/api/tx/excelGeo/download?filePath=" + encodeURI(path); |
610 | } | 609 | } |
611 | }); | 610 | }); |
612 | } else { | 611 | } else { |
613 | self.$message.warning("还没有空间信息!!!!") | 612 | self.$message.warning("还没有空间信息!!!!") |
614 | } | 613 | } |
615 | }, { wkt: this.wkt }) | 614 | }, { wkt: this.wkt }) |
616 | }, | 615 | }, |
617 | //导出CAD | 616 | //导出CAD |
618 | exportCad () { | 617 | exportCad() { |
619 | //TODO | 618 | //TODO |
620 | }, | 619 | }, |
621 | downloadTxt (text, fileName) { | 620 | downloadTxt(text, fileName) { |
622 | let element = document.createElement('a') | 621 | let element = document.createElement('a') |
623 | element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)) | 622 | element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)) |
624 | element.setAttribute('download', fileName) | 623 | element.setAttribute('download', fileName) |
625 | element.style.display = 'none' | 624 | element.style.display = 'none' |
626 | element.click() | 625 | element.click() |
627 | }, | 626 | }, |
628 | //图形定位 | 627 | //图形定位 |
629 | postionToMap () { | 628 | postionToMap() { |
630 | var type = this.zdData.type; | 629 | var type = this.zdData.type; |
631 | var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; | 630 | var BSM = type == 'zd' ? this.zdData.zdbsm : this.zdData.bsm; |
632 | if (this.$route.path == "/viewMap") { | 631 | if (this.$route.path == "/viewMap") { |
633 | //定位到当前空间位置 | 632 | //定位到当前空间位置 |
634 | // TODO 这个方法只是为了支撑功能 | 633 | // TODO 这个方法只是为了支撑功能 |
635 | this.postionToThisGeo(BSM, type); | 634 | this.postionToThisGeo(BSM, type); |
636 | return; | 635 | return; |
637 | } | 636 | } |
638 | var curretRouterInfo = { | 637 | var curretRouterInfo = { |
639 | path: this.$route.path, | 638 | path: this.$route.path, |
640 | query: this.$route.query | 639 | query: this.$route.query |
641 | } | 640 | } |
642 | sessionStorage.setItem("curretRouterInfo", JSON.stringify(curretRouterInfo)); | 641 | sessionStorage.setItem("curretRouterInfo", JSON.stringify(curretRouterInfo)); |
643 | this.$router.push({ | 642 | this.$router.push({ |
644 | path: "/viewMap", | 643 | path: "/viewMap", |
645 | query: { | 644 | query: { |
646 | bsm: BSM, | 645 | bsm: BSM, |
647 | type: type | 646 | type: type |
648 | } | 647 | } |
649 | }); | 648 | }); |
650 | }, | 649 | }, |
651 | 650 | ||
652 | //关闭图形弹框 | 651 | //关闭图形弹框 |
653 | closeImportDialog () { | 652 | closeImportDialog() { |
654 | this.improtDialog = false; | 653 | this.improtDialog = false; |
655 | this.clearOverLayer(); | 654 | this.clearOverLayer(); |
656 | } | 655 | } |
657 | 656 | ||
658 | }, | 657 | }, |
659 | }; | 658 | }; |
660 | </script> | 659 | </script> |
661 | <style lang="scss" scoped> | 660 | <style lang="scss" scoped> | ... | ... |
1 | <template> | 1 | <template> |
2 | <div> | 2 | <div> |
3 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="移动户" :visible.sync="isVisible" width="50%" | 3 | <el-dialog :close-on-click-modal="false" title="移动户" :visible.sync="isVisible" width="50%" @close="close" |
4 | @close="close" :modal-append-to-body="false"> | 4 | :modal-append-to-body="false"> |
5 | <div> | 5 | <div> |
6 | <div class="bottom-radio"> | 6 | <div class="bottom-radio"> |
7 | <el-radio-group v-model="moveHdata.sxzylx"> | 7 | <el-radio-group v-model="moveHdata.sxzylx"> | ... | ... |
1 | <template> | 1 | <template> |
2 | <div> | 2 | <div> |
3 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量层" :visible.sync="isVisible" width="50%" | 3 | <el-dialog :close-on-click-modal="false" title="批量层" :visible.sync="isVisible" width="50%" @close="close" |
4 | @close="close" :modal-append-to-body="false"> | 4 | :modal-append-to-body="false"> |
5 | <div> | 5 | <div> |
6 | <table border="1"> | 6 | <table border="1"> |
7 | <tr> | 7 | <tr> | ... | ... |
1 | <template> | 1 | <template> |
2 | <div> | 2 | <div> |
3 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量户" :visible.sync="isVisible" width="72%" | 3 | <el-dialog :close-on-click-modal="false" title="批量户" :visible.sync="isVisible" width="72%" @close="close" |
4 | @close="close" :modal-append-to-body="false"> | 4 | :modal-append-to-body="false"> |
5 | <div> | 5 | <div> |
6 | <table border="1"> | 6 | <table border="1"> |
7 | <tr> | 7 | <tr> | ... | ... |
1 | <template> | 1 | <template> |
2 | <div class=""> | 2 | <div class=""> |
3 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量室号" :visible.sync="isVisible" width="50%" | 3 | <el-dialog :close-on-click-modal="false" title="批量室号" :visible.sync="isVisible" width="50%" @close="close" |
4 | @close="close" :modal-append-to-body="false"> | 4 | :modal-append-to-body="false"> |
5 | <div> | 5 | <div> |
6 | <table border="1"> | 6 | <table border="1"> |
7 | <tr> | 7 | <tr> | ... | ... |
1 | <template> | 1 | <template> |
2 | <div> | 2 | <div> |
3 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量坐落" :visible.sync="isVisible" width="60%" | 3 | <el-dialog :close-on-click-modal="false" title="批量坐落" :visible.sync="isVisible" width="60%" @close="close" |
4 | @close="close" :modal-append-to-body="false"> | 4 | :modal-append-to-body="false"> |
5 | <div> | 5 | <div> |
6 | <table border="1"> | 6 | <table border="1"> |
7 | <tr> | 7 | <tr> | ... | ... |
... | @@ -18,11 +18,17 @@ router.beforeEach(async (to, from, next) => { | ... | @@ -18,11 +18,17 @@ router.beforeEach(async (to, from, next) => { |
18 | } | 18 | } |
19 | if (hasAddRoute) { | 19 | if (hasAddRoute) { |
20 | next() | 20 | next() |
21 | // next({ ...to, replace: true }) | ||
21 | } else { | 22 | } else { |
22 | const { result: getMenuData } = await getMenuInfo() | 23 | const { result: getMenuData } = await getMenuInfo() |
23 | const accessRoutes = await store.dispatch('permission/generateRoutes', getMenuData) | 24 | const accessRoutes = await store.dispatch('permission/generateRoutes', getMenuData) |
24 | router.addRoutes([...accessRoutes, { path: '*', redirect: '/404', hidden: true }]) | 25 | router.addRoutes([...accessRoutes, { path: '*', redirect: '/404', hidden: true }]) |
25 | next({ ...to, replace: true }) | 26 | const routeTo = Cookies.get('routerTo') |
27 | if (routeTo) { | ||
28 | next(routeTo) | ||
29 | } else { | ||
30 | next('/home') | ||
31 | } | ||
26 | } | 32 | } |
27 | NProgress.done() | 33 | NProgress.done() |
28 | 34 | ... | ... |
... | @@ -21,13 +21,13 @@ export const constantRoutes = [ | ... | @@ -21,13 +21,13 @@ export const constantRoutes = [ |
21 | ] | 21 | ] |
22 | }, | 22 | }, |
23 | { | 23 | { |
24 | path: '/', | 24 | path: '/404', |
25 | component: Layout, | 25 | component: Layout, |
26 | hidden: true, | 26 | hidden: true, |
27 | redirect: '/404', | 27 | redirect: '/404/index', |
28 | children: [ | 28 | children: [ |
29 | { | 29 | { |
30 | path: '404', | 30 | path: '/index', |
31 | component: () => import('@/views/error-page/404'), | 31 | component: () => import('@/views/error-page/404'), |
32 | name: '404', | 32 | name: '404', |
33 | meta: { title: '404' } | 33 | meta: { title: '404' } | ... | ... |
src/store/modules/lpb.js
0 → 100644
1 | import store from '../index' | 1 | import store from '../index' |
2 | import router, { resetRouter } from '@/router' | 2 | import router, { resetRouter } from '@/router' |
3 | import { Message } from "element-ui"; | ||
4 | import Cookies from 'js-cookie'; | 3 | import Cookies from 'js-cookie'; |
5 | const state = { | 4 | const state = { |
6 | name: Cookies.get('username'), | 5 | name: Cookies.get('username'), | ... | ... |
... | @@ -21,7 +21,9 @@ import hbj from "../index" | ... | @@ -21,7 +21,9 @@ import hbj from "../index" |
21 | export default { | 21 | export default { |
22 | name: "index", | 22 | name: "index", |
23 | components: { | 23 | components: { |
24 | hbj, djb, fjcl | 24 | hbj, |
25 | // djb, | ||
26 | // fjcl | ||
25 | }, | 27 | }, |
26 | props: { | 28 | props: { |
27 | bsm: String, //户标识码 | 29 | bsm: String, //户标识码 | ... | ... |
... | @@ -47,8 +47,7 @@ | ... | @@ -47,8 +47,7 @@ |
47 | <i class="iconfont iconloupanbiaobianji" v-show="!bjztFlag" @click="bjztChange" title="编辑楼盘"></i> | 47 | <i class="iconfont iconloupanbiaobianji" v-show="!bjztFlag" @click="bjztChange" title="编辑楼盘"></i> |
48 | </div> | 48 | </div> |
49 | </div> --> | 49 | </div> --> |
50 | <div class="tab-content" ref="tabContent" :style="{ height: lpbContentHight + 'px' }" v-loading="lpbloading" | 50 | <div class="tab-content" ref="tabContent" :style="{ height: lpbContentHight + 'px' }" v-show="bjztFlag"> |
51 | v-show="bjztFlag"> | ||
52 | <!-- 左侧树结构 --> | 51 | <!-- 左侧树结构 --> |
53 | <!-- <div class="lp-tree" :class="createFlag ? 'w260' : 'w0'"> | 52 | <!-- <div class="lp-tree" :class="createFlag ? 'w260' : 'w0'"> |
54 | <LineTree :pd="pd" class="treeData" :islpb="islpb" @loading="loading"></LineTree> | 53 | <LineTree :pd="pd" class="treeData" :islpb="islpb" @loading="loading"></LineTree> |
... | @@ -58,7 +57,7 @@ | ... | @@ -58,7 +57,7 @@ |
58 | </div> --> | 57 | </div> --> |
59 | <!-- 楼盘表主体 --> | 58 | <!-- 楼盘表主体 --> |
60 | <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> | 59 | <div class="lp-overview" :style="{ width: lpbContentwidth + 'px' }"> |
61 | <lpbContent ref="lpbContent" :zrzbsm="$route.query.bsm" :key="time"></lpbContent> | 60 | <lpbContent ref="lpbContent" :zrzbsm="formData.bsm" :key="time"></lpbContent> |
62 | </div> | 61 | </div> |
63 | <!-- 右侧图例 --> | 62 | <!-- 右侧图例 --> |
64 | <div class="lp-legend"> | 63 | <div class="lp-legend"> |
... | @@ -158,7 +157,7 @@ | ... | @@ -158,7 +157,7 @@ |
158 | <!-- 详细信息 --> | 157 | <!-- 详细信息 --> |
159 | <!-- <xxxx v-show="!bjztFlag"></xxxx> --> | 158 | <!-- <xxxx v-show="!bjztFlag"></xxxx> --> |
160 | <!-- 右键菜单弹出框 根据菜单类型(menuType)和右键点击的楼盘类型(treeData.type)来区分弹框内容 --> | 159 | <!-- 右键菜单弹出框 根据菜单类型(menuType)和右键点击的楼盘类型(treeData.type)来区分弹框内容 --> |
161 | <!-- <el-dialog v-dialogDrag :close-on-click-modal="false" :title="taskTitle" :visible.sync="dialogVisible" width="50%"> | 160 | <!-- <el-dialog :close-on-click-modal="false" :title="taskTitle" :visible.sync="dialogVisible" width="50%"> |
162 | <div class="addCh" v-if="menuType == 'ljz'"> | 161 | <div class="addCh" v-if="menuType == 'ljz'"> |
163 | <addLjz ref="ljz" :ljzbsm="curBsm"></addLjz> | 162 | <addLjz ref="ljz" :ljzbsm="curBsm"></addLjz> |
164 | </div> | 163 | </div> |
... | @@ -182,7 +181,7 @@ | ... | @@ -182,7 +181,7 @@ |
182 | <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose" @lodding="lodding"></pl-zl> | 181 | <pl-zl :pl-zl-visible="plzlVisible" :bsms="bsms" @close="plZlClose" @lodding="lodding"></pl-zl> |
183 | <pl-c :plc-visible="plcVisible" :bsms="cbsmList" @close="plcClose" @lodding="lodding"></pl-c> | 182 | <pl-c :plc-visible="plcVisible" :bsms="cbsmList" @close="plcClose" @lodding="lodding"></pl-c> |
184 | <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose" @lodding="lodding"></pl-sh> | 183 | <pl-sh :plShVisible="plShVisible" :bsms="bsms" @close="plshClose" @lodding="lodding"></pl-sh> |
185 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="批量上传" :visible.sync="uploadVisible" width="30%"> | 184 | <el-dialog :close-on-click-modal="false" title="批量上传" :visible.sync="uploadVisible" width="30%"> |
186 | <div class="wrap"> | 185 | <div class="wrap"> |
187 | <div class="main-button"> | 186 | <div class="main-button"> |
188 | <el-upload class="upload-demo" action="/api/file/uploadListByGlbsm" :data="fileData" | 187 | <el-upload class="upload-demo" action="/api/file/uploadListByGlbsm" :data="fileData" |
... | @@ -217,7 +216,13 @@ import lpbContent from "./lpbContent/index"; | ... | @@ -217,7 +216,13 @@ import lpbContent from "./lpbContent/index"; |
217 | // import xxxx from '../xxxx/index' | 216 | // import xxxx from '../xxxx/index' |
218 | 217 | ||
219 | export default { | 218 | export default { |
220 | name: "", | 219 | name: "bjlp", |
220 | props: { | ||
221 | formData: { | ||
222 | type: Object, | ||
223 | default: {} | ||
224 | } | ||
225 | }, | ||
221 | components: { | 226 | components: { |
222 | // LineTree, | 227 | // LineTree, |
223 | addLjz, | 228 | addLjz, |
... | @@ -315,7 +320,6 @@ export default { | ... | @@ -315,7 +320,6 @@ export default { |
315 | time: "", | 320 | time: "", |
316 | dyztBsmList: {}, //单元状态bsmList | 321 | dyztBsmList: {}, //单元状态bsmList |
317 | cbsmList: [], // 层bsmlist | 322 | cbsmList: [], // 层bsmlist |
318 | lpbloading: true, | ||
319 | bjztFlag: true, | 323 | bjztFlag: true, |
320 | taskTitle: '添加', | 324 | taskTitle: '添加', |
321 | curBsm: '', | 325 | curBsm: '', |
... | @@ -329,18 +333,18 @@ export default { | ... | @@ -329,18 +333,18 @@ export default { |
329 | }, | 333 | }, |
330 | created () { | 334 | created () { |
331 | window.addEventListener("resize", this.getHeight); | 335 | window.addEventListener("resize", this.getHeight); |
332 | // this.getHeight(); | 336 | this.getHeight(); |
333 | }, | 337 | }, |
334 | mounted () { | 338 | mounted () { |
335 | //获取楼盘表树结构 | 339 | //获取楼盘表树结构 |
336 | // this.getLpbMenuTree(this.$store.state.zrzbsm); | 340 | // this.getLpbMenuTree(formData.zrzbsm); |
337 | //获取各项单元状态的户bsm | 341 | //获取各项单元状态的户bsm |
338 | // this.getDyztBsmList(); | 342 | // this.getDyztBsmList(); |
339 | //获取房屋用途统计数据 | 343 | //获取房屋用途统计数据 |
340 | // this.getLpbFwytAndQlxz(); | 344 | // this.getLpbFwytAndQlxz(); |
341 | // 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6 | 345 | // 楼盘表绘制区域宽度计算:楼盘表区域宽度-图例宽度34-滚动条宽度6 |
342 | setTimeout(() => { | 346 | setTimeout(() => { |
343 | this.lpbContentwidth = this.$store.state.contentWidth - 34 - 6; | 347 | this.lpbContentwidth = ((document.documentElement.clientWidth || document.body.clientWidth) - 340) - 34 - 6; |
344 | }, 100); | 348 | }, 100); |
345 | }, | 349 | }, |
346 | methods: { | 350 | methods: { |
... | @@ -429,7 +433,6 @@ export default { | ... | @@ -429,7 +433,6 @@ export default { |
429 | console.log(file); | 433 | console.log(file); |
430 | }, | 434 | }, |
431 | handleExceed (files, fileList) { | 435 | handleExceed (files, fileList) { |
432 | console.log(fileList) | ||
433 | // this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); | 436 | // this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); |
434 | this.$message.warning("上传失败") | 437 | this.$message.warning("上传失败") |
435 | }, | 438 | }, |
... | @@ -524,7 +527,7 @@ export default { | ... | @@ -524,7 +527,7 @@ export default { |
524 | }, | 527 | }, |
525 | //获取高度计算lpb内容区高度 | 528 | //获取高度计算lpb内容区高度 |
526 | getHeight () { | 529 | getHeight () { |
527 | this.lpbContentHight = window.innerHeight - 285; | 530 | this.lpbContentHight = window.innerHeight - 190; |
528 | }, | 531 | }, |
529 | //创建楼盘 | 532 | //创建楼盘 |
530 | create () { | 533 | create () { | ... | ... |
... | @@ -7,18 +7,18 @@ | ... | @@ -7,18 +7,18 @@ |
7 | : 'ljz-wrap' | 7 | : 'ljz-wrap' |
8 | " :style="{ 'width': ljzWidth + 'px' }" v-show="lpbData.ljzs.length > 0"> | 8 | " :style="{ 'width': ljzWidth + 'px' }" v-show="lpbData.ljzs.length > 0"> |
9 | <!-- 循环逻辑幢数据 --> | 9 | <!-- 循环逻辑幢数据 --> |
10 | <div class="ljz" ref="ljz" v-for="(ljzs, ljzIndex) in lpbData.ljzs" :key="ljzIndex" | 10 | <div class="ljz" ref="ljz" v-for="(ljzs, ljzIndex) in lpbData.ljzs" :key="ljzIndex"> |
11 | :class="[{ 'mt30': ljzIndex == 0 }, { 'mt60': ljzIndex == 1 || lpbData.ljzs.length == 1 }]"> | 11 | <!-- :class="[{ 'mt30': ljzIndex == 0 }, { 'mt60': ljzIndex == 1 || lpbData.ljzs.length == 1 }]" --> |
12 | |||
12 | <!-- :style="{'marginTop':ljzs.zdys.length>0?'0':'30px'}" --> | 13 | <!-- :style="{'marginTop':ljzs.zdys.length>0?'0':'30px'}" --> |
13 | <!-- 循环逻辑幢下的幢单元 --> | 14 | <!-- 循环逻辑幢下的幢单元 --> |
14 | <div class="ljz-zdy-wrap"> | 15 | <div class="ljz-zdy-wrap" :style="{ 'marginTop': ljzs.zdys.length > 0 ? '0' : '30px' }"> |
15 | <div class="ljz-zdy column-reverse" | 16 | <div class="ljz-zdy column-reverse" |
16 | :style="{ 'min-height': ljzzdyHeight + 'px', 'marginRight': zdyIndex < (ljzs.zdys.length - 1) || ljzs.cs.length > 1 ? '20px' : '0' }" | 17 | :style="{ 'min-height': ljzzdyHeight + 'px', 'marginRight': zdyIndex < (ljzs.zdys.length - 1) || ljzs.cs.length > 1 ? '20px' : '0' }" |
17 | ref="ljzzdy" v-show="ljzs.zdys.length > 0" v-for="(zdys, zdyIndex) in ljzs.zdys" :key="zdyIndex"> | 18 | ref="ljzzdy" v-show="ljzs.zdys.length > 0" v-for="(zdys, zdyIndex) in ljzs.zdys" :key="zdyIndex"> |
18 | <!-- 幢单元名称 --> | 19 | <!-- 幢单元名称 --> |
19 | <div class="zdy-name name"> | 20 | <div class="zdy-name name"> |
20 | <p class="cp" @dblclick="openZxx(zdys.bsm, 'zdy')"> | 21 | <p class="cp" @dblclick="openZxx(zdys.bsm, 'zdy')"> |
21 | <!-- {{ zdys.zdymc }} --> | ||
22 | <el-checkbox @change='zdySelectAll($event, zdys.cs)'>{{ zdys.zdymc }}</el-checkbox> | 22 | <el-checkbox @change='zdySelectAll($event, zdys.cs)'>{{ zdys.zdymc }}</el-checkbox> |
23 | </p> | 23 | </p> |
24 | </div> | 24 | </div> |
... | @@ -94,8 +94,6 @@ | ... | @@ -94,8 +94,6 @@ |
94 | </tr> | 94 | </tr> |
95 | </table> | 95 | </table> |
96 | </div> | 96 | </div> |
97 | <!-- </div> --> | ||
98 | |||
99 | <!-- 逻辑幢名称 --> | 97 | <!-- 逻辑幢名称 --> |
100 | <div class="ljz-name name"> | 98 | <div class="ljz-name name"> |
101 | <p class="cp" @dblclick="openZxx(ljzs.bsm, 'ljz')"> | 99 | <p class="cp" @dblclick="openZxx(ljzs.bsm, 'ljz')"> |
... | @@ -178,9 +176,8 @@ | ... | @@ -178,9 +176,8 @@ |
178 | </tr> | 176 | </tr> |
179 | </table> | 177 | </table> |
180 | </div> | 178 | </div> |
181 | <!-- </template> --> | ||
182 | </div> | 179 | </div> |
183 | <!-- <div class="ch-wrap">层户</div> --> | 180 | <!-- 层户 --> |
184 | <div class="zrz" :style="{ width: lpbContentWidth + 'px' }"> | 181 | <div class="zrz" :style="{ width: lpbContentWidth + 'px' }"> |
185 | <el-checkbox v-model="zrzChecked" @change='lpbSelectAll'>{{ lpbData.xmmc }}</el-checkbox> | 182 | <el-checkbox v-model="zrzChecked" @change='lpbSelectAll'>{{ lpbData.xmmc }}</el-checkbox> |
186 | </div> | 183 | </div> |
... | @@ -188,7 +185,6 @@ | ... | @@ -188,7 +185,6 @@ |
188 | <ul v-show="lpbChVisible" :style="{ left: lpbChLeft + 'px', top: lpbChTop + 'px' }" class="contextmenu"> | 185 | <ul v-show="lpbChVisible" :style="{ left: lpbChLeft + 'px', top: lpbChTop + 'px' }" class="contextmenu"> |
189 | <li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li> | 186 | <li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li> |
190 | <li v-show="rightClickFlag == 'h'" @click="handleMoveH">移动</li> | 187 | <li v-show="rightClickFlag == 'h'" @click="handleMoveH">移动</li> |
191 | <!-- <li v-show="rightClickFlag == 'h'" @click="handleDeleteH">删除</li> --> | ||
192 | <li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li> | 188 | <li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li> |
193 | <li v-show="rightClickFlag == 'c'" @click="handleAddC('up')"> | 189 | <li v-show="rightClickFlag == 'c'" @click="handleAddC('up')"> |
194 | 向上添加层 | 190 | 向上添加层 |
... | @@ -210,8 +206,7 @@ | ... | @@ -210,8 +206,7 @@ |
210 | 206 | ||
211 | </ul> | 207 | </ul> |
212 | <!-- 层操作弹框 --> | 208 | <!-- 层操作弹框 --> |
213 | <el-dialog v-dialogDrag :close-on-click-modal="false" :title="addCData.title" :visible.sync="addCVisible" | 209 | <el-dialog :close-on-click-modal="false" :title="addCData.title" :visible.sync="addCVisible" width="50%"> |
214 | width="50%"> | ||
215 | <el-form :model="addCData"> | 210 | <el-form :model="addCData"> |
216 | <el-form-item label="层号" :label-width="formLabelWidth"> | 211 | <el-form-item label="层号" :label-width="formLabelWidth"> |
217 | <el-input disabled v-model="addCData.sjc" autocomplete="off"></el-input> | 212 | <el-input disabled v-model="addCData.sjc" autocomplete="off"></el-input> |
... | @@ -229,7 +224,7 @@ | ... | @@ -229,7 +224,7 @@ |
229 | </div> | 224 | </div> |
230 | </el-dialog> | 225 | </el-dialog> |
231 | <!-- 户分割弹框 --> | 226 | <!-- 户分割弹框 --> |
232 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="户分割" :visible.sync="hfgDialogVisible" width="800px"> | 227 | <el-dialog :close-on-click-modal="false" title="户分割" :visible.sync="hfgDialogVisible" width="800px"> |
233 | <el-form :model="fgData"> | 228 | <el-form :model="fgData"> |
234 | <el-form-item label="分割户数" required="" :label-width="formLabelWidth"> | 229 | <el-form-item label="分割户数" required="" :label-width="formLabelWidth"> |
235 | <el-input :disabled="fgData.fgfx != 0" v-model="fgData.fghs" autocomplete="off"></el-input> | 230 | <el-input :disabled="fgData.fgfx != 0" v-model="fgData.fghs" autocomplete="off"></el-input> |
... | @@ -243,8 +238,7 @@ | ... | @@ -243,8 +238,7 @@ |
243 | <move-h :hbsm="chData.bsm" @close="moveHClose" :move-hvisible="moveHvisible" :type="scyclx" | 238 | <move-h :hbsm="chData.bsm" @close="moveHClose" :move-hvisible="moveHvisible" :type="scyclx" |
244 | @loading="loadingData($store.state.zrzbsm, $parent.scyclx)"></move-h> | 239 | @loading="loadingData($store.state.zrzbsm, $parent.scyclx)"></move-h> |
245 | <!-- 双击户的弹出框 --> | 240 | <!-- 双击户的弹出框 --> |
246 | <el-dialog v-dialogDrag :close-on-click-modal="false" title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" | 241 | <el-dialog :close-on-click-modal="false" title="户编辑" class="hbjDialog" :visible.sync="hbjVisible" width="80%"> |
247 | width="80%"> | ||
248 | <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx" :lpbParent="lpbParent"></hbj> | 242 | <hbj ref="hbj" :bsm="hbsm" :scyclx="scyclx" :lpbParent="lpbParent"></hbj> |
249 | </el-dialog> | 243 | </el-dialog> |
250 | <!-- 户重新落宗 --> | 244 | <!-- 户重新落宗 --> |
... | @@ -254,6 +248,7 @@ | ... | @@ -254,6 +248,7 @@ |
254 | <script> | 248 | <script> |
255 | import moveH from "@/components/moveH/moveH"; | 249 | import moveH from "@/components/moveH/moveH"; |
256 | import HCxlz from "@/components/hCxlz/hCxlz"; | 250 | import HCxlz from "@/components/hCxlz/hCxlz"; |
251 | import { getLpb } from '@/api/lpb' | ||
257 | // import { getLpb, insertUpDownC, deleteCByBsm } from "@api/lpb"; | 252 | // import { getLpb, insertUpDownC, deleteCByBsm } from "@api/lpb"; |
258 | // import { hhb, hfg } from "@api/h"; | 253 | // import { hhb, hfg } from "@api/h"; |
259 | import { Message } from 'element-ui'; | 254 | import { Message } from 'element-ui'; |
... | @@ -332,10 +327,9 @@ export default { | ... | @@ -332,10 +327,9 @@ export default { |
332 | zrzChecked: false, //自然幢全选 | 327 | zrzChecked: false, //自然幢全选 |
333 | }; | 328 | }; |
334 | }, | 329 | }, |
335 | created () { }, | ||
336 | mounted () { | 330 | mounted () { |
337 | // this.getLpb(this.zrzbsm, "0"); | 331 | this.getLpb('9434bdb243ba342cc6c043065fc9e480'); |
338 | // this.getLpb(this.zrzbsm, "1"); | 332 | // this.getLpb(this.zrzbsm); |
339 | setTimeout(() => { | 333 | setTimeout(() => { |
340 | //让滚动条滚动至最下面 -6是横向滚动条的高度 | 334 | //让滚动条滚动至最下面 -6是横向滚动条的高度 |
341 | this.$refs.lpbContent.scrollTop = | 335 | this.$refs.lpbContent.scrollTop = |
... | @@ -353,24 +347,23 @@ export default { | ... | @@ -353,24 +347,23 @@ export default { |
353 | getLpb (zrzbsm, scyclx, actual) { | 347 | getLpb (zrzbsm, scyclx, actual) { |
354 | getLpb(zrzbsm, scyclx).then((res) => { | 348 | getLpb(zrzbsm, scyclx).then((res) => { |
355 | if (res.code == 200) { | 349 | if (res.code == 200) { |
356 | this.$parent.lpbloading = false; | ||
357 | res.result.ljzs = res.result.ljzs | 350 | res.result.ljzs = res.result.ljzs |
358 | .sort(this.compare("place")) | 351 | .sort(this.compare("place")) |
359 | .reverse(); | 352 | .reverse(); |
360 | // this.lpbData = res.result == null ? this.lpbData : res.result; | 353 | this.lpbData = res.result == null ? this.lpbData : res.result; |
361 | //给实预测楼盘表对象赋值,默认加载预测楼盘表数据 | 354 | //给实预测楼盘表对象赋值,默认加载预测楼盘表数据 |
362 | if (scyclx == 0) { | 355 | // if (scyclx == 0) { |
363 | this.yclpbData = res.result == null ? this.yclpbData : res.result; | 356 | // this.yclpbData = res.result == null ? this.yclpbData : res.result; |
364 | this.lpbData = this.yclpbData; | 357 | // this.lpbData = this.yclpbData; |
365 | } else { | 358 | // } else { |
366 | this.sclpbData = res.result == null ? this.sclpbData : res.result; | 359 | // this.sclpbData = res.result == null ? this.sclpbData : res.result; |
367 | } | 360 | // } |
368 | if (actual) { | 361 | // if (actual) { |
369 | this.lpbData = res.result == null ? this.yclpbData : res.result; | 362 | // this.lpbData = res.result == null ? this.yclpbData : res.result; |
370 | } | 363 | // } |
371 | if (this.lpbParent == 'isFwsxbg') { | 364 | // if (this.lpbParent == 'isFwsxbg') { |
372 | this.lpbData = this.$parent.scyclx == '0' ? this.yclpbData : this.sclpbData; | 365 | // this.lpbData = this.$parent.scyclx == '0' ? this.yclpbData : this.sclpbData; |
373 | } | 366 | // } |
374 | this.$nextTick(() => { | 367 | this.$nextTick(() => { |
375 | //渲染楼盘表 | 368 | //渲染楼盘表 |
376 | this.dataChange(); | 369 | this.dataChange(); |
... | @@ -1028,11 +1021,9 @@ export default { | ... | @@ -1028,11 +1021,9 @@ export default { |
1028 | overflow: hidden; | 1021 | overflow: hidden; |
1029 | 1022 | ||
1030 | .ljz { | 1023 | .ljz { |
1031 | // margin-bottom: 20px; | ||
1032 | display: table; | 1024 | display: table; |
1033 | margin-top: 30px; | ||
1034 | 1025 | ||
1035 | // position: relative; | 1026 | // margin-top: 30px; |
1036 | .ljz-zdy-wrap { | 1027 | .ljz-zdy-wrap { |
1037 | width: auto; | 1028 | width: auto; |
1038 | display: table; | 1029 | display: table; | ... | ... |
... | @@ -113,7 +113,6 @@ export default { | ... | @@ -113,7 +113,6 @@ export default { |
113 | } | 113 | } |
114 | }, | 114 | }, |
115 | handleTabClick () { | 115 | handleTabClick () { |
116 | |||
117 | this.pageData.currentPage = 1; | 116 | this.pageData.currentPage = 1; |
118 | this.fetchData(); | 117 | this.fetchData(); |
119 | }, | 118 | }, |
... | @@ -161,6 +160,17 @@ export default { | ... | @@ -161,6 +160,17 @@ export default { |
161 | }, | 160 | }, |
162 | handleSelectionChange (val) { | 161 | handleSelectionChange (val) { |
163 | this.bdcdysz = val | 162 | this.bdcdysz = val |
163 | }, | ||
164 | handleLpbClick (item) { | ||
165 | console.log(item, 'eeeeeeeeeeeeee'); | ||
166 | this.$popup('楼盘表', 'components/bjlp/index', { | ||
167 | width: '85%', | ||
168 | formData: { | ||
169 | bsm: item.bsm | ||
170 | }, | ||
171 | cancel: function () { }, //取消事件的回调 | ||
172 | confirm: function () { }, //确认事件的回调 | ||
173 | }) | ||
164 | } | 174 | } |
165 | } | 175 | } |
166 | } | 176 | } | ... | ... |
... | @@ -31,7 +31,7 @@ class data extends filter { | ... | @@ -31,7 +31,7 @@ class data extends filter { |
31 | label: "状态", | 31 | label: "状态", |
32 | render: (h, scope) => { | 32 | render: (h, scope) => { |
33 | return ( | 33 | return ( |
34 | <div> | 34 | <div> |
35 | {/* <a v-on:click="doSomething"></a> */} | 35 | {/* <a v-on:click="doSomething"></a> */} |
36 | <a style='color:#3498db;' v-show={scope.row.djblzt == 1} >正在办理</a> | 36 | <a style='color:#3498db;' v-show={scope.row.djblzt == 1} >正在办理</a> |
37 | <span v-show={scope.row.zjgcdyzt == 1}>,在建工程抵押</span> | 37 | <span v-show={scope.row.zjgcdyzt == 1}>,在建工程抵押</span> |
... | @@ -51,7 +51,7 @@ class data extends filter { | ... | @@ -51,7 +51,7 @@ class data extends filter { |
51 | { | 51 | { |
52 | prop: "bdcqzsh", | 52 | prop: "bdcqzsh", |
53 | label: "土地证号", | 53 | label: "土地证号", |
54 | }, | 54 | }, |
55 | { | 55 | { |
56 | prop: "qllxmc", | 56 | prop: "qllxmc", |
57 | label: "权利类型", | 57 | label: "权利类型", |
... | @@ -59,35 +59,35 @@ class data extends filter { | ... | @@ -59,35 +59,35 @@ class data extends filter { |
59 | { | 59 | { |
60 | prop: "xmmc", | 60 | prop: "xmmc", |
61 | label: "项目名称", | 61 | label: "项目名称", |
62 | }, | 62 | }, |
63 | { | 63 | { |
64 | prop: "zrzh", | 64 | prop: "zrzh", |
65 | label: "自然幢号", | 65 | label: "自然幢号", |
66 | }, | 66 | }, |
67 | { | 67 | { |
68 | prop: "jzwmc", | 68 | prop: "jzwmc", |
69 | label: "建筑物名称", | 69 | label: "建筑物名称", |
70 | }, | 70 | }, |
71 | { | 71 | { |
72 | label: "权利性质", | 72 | label: "权利性质", |
73 | render: (h, scope) => { | 73 | render: (h, scope) => { |
74 | return ( | 74 | return ( |
75 | <div> | 75 | <div> |
76 | {(scope.row.tdxzmc)+(' / ')+(scope.row.tdxzmc)} | 76 | {(scope.row.tdxzmc) + (' / ') + (scope.row.tdxzmc)} |
77 | </div> | 77 | </div> |
78 | ) | 78 | ) |
79 | } | 79 | } |
80 | }, | 80 | }, |
81 | { | 81 | { |
82 | label: "面积", | 82 | label: "面积", |
83 | render: (h, scope) => { | 83 | render: (h, scope) => { |
84 | return ( | 84 | return ( |
85 | <div> | 85 | <div> |
86 | {(scope.row.zdmj)+(' / ')+(scope.row.scjzmj)} | 86 | {(scope.row.zdmj) + (' / ') + (scope.row.scjzmj)} |
87 | </div> | 87 | </div> |
88 | ) | 88 | ) |
89 | } | 89 | } |
90 | }, | 90 | }, |
91 | { | 91 | { |
92 | prop: "jzwjbyt", | 92 | prop: "jzwjbyt", |
93 | label: "用途", | 93 | label: "用途", |
... | @@ -106,6 +106,15 @@ class data extends filter { | ... | @@ -106,6 +106,15 @@ class data extends filter { |
106 | prop: "zl", | 106 | prop: "zl", |
107 | label: "自然幢坐落", | 107 | label: "自然幢坐落", |
108 | }, | 108 | }, |
109 | { | ||
110 | label: '操作', | ||
111 | width: '80', | ||
112 | align: 'center', | ||
113 | fixed: 'right', | ||
114 | render: (h, scope) => { | ||
115 | return <el-button type="text" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button> | ||
116 | } | ||
117 | } | ||
109 | ] | 118 | ] |
110 | } | 119 | } |
111 | 120 | ... | ... |
... | @@ -130,6 +130,7 @@ export default { | ... | @@ -130,6 +130,7 @@ export default { |
130 | this.btnDisabled = false | 130 | this.btnDisabled = false |
131 | Cookies.set("bsmSqyw", item.bsmSqyw) | 131 | Cookies.set("bsmSqyw", item.bsmSqyw) |
132 | this.djywbm = item.djywbm | 132 | this.djywbm = item.djywbm |
133 | console.log(this.djywbm, 'this.djywbm'); | ||
133 | } | 134 | } |
134 | }, | 135 | }, |
135 | handleList (list, obj) { | 136 | handleList (list, obj) { | ... | ... |
... | @@ -110,15 +110,10 @@ export default { | ... | @@ -110,15 +110,10 @@ export default { |
110 | // 高级查询 | 110 | // 高级查询 |
111 | moreQueryClick () { }, | 111 | moreQueryClick () { }, |
112 | openDialog (scroll) { | 112 | openDialog (scroll) { |
113 | this.$popup({ | 113 | this.$popup('登记簿详情', 'registerBook/djbFrame', { |
114 | titleStyle: "left", | ||
115 | title: "登记簿详情", // 弹窗标题 | ||
116 | editItem: "registerBook/djbFrame", // 弹窗内容 | ||
117 | formData: scroll, | 114 | formData: scroll, |
118 | width: "1220px", | 115 | width: "1220px", |
119 | height: "790px", | 116 | height: "790px", |
120 | // cancelText: '取消摆烂', // 右边按钮文本 | ||
121 | // confirmText: '确定点击', //左边按钮文本 | ||
122 | cancel: () => { | 117 | cancel: () => { |
123 | console.log("取消回调"); | 118 | console.log("取消回调"); |
124 | }, | 119 | }, |
... | @@ -127,8 +122,17 @@ export default { | ... | @@ -127,8 +122,17 @@ export default { |
127 | }, | 122 | }, |
128 | }); | 123 | }); |
129 | }, | 124 | }, |
130 | }, | 125 | handleLpbClick (item) { |
131 | }; | 126 | this.$popup('楼盘表', 'components/bjlp/index', { |
127 | width: '90%', | ||
128 | height: "90%", | ||
129 | formData: { | ||
130 | bsm: '' | ||
131 | } | ||
132 | }) | ||
133 | } | ||
134 | } | ||
135 | } | ||
132 | </script> | 136 | </script> |
133 | <style scoped lang="scss"> | 137 | <style scoped lang="scss"> |
134 | @import "~@/styles/public.scss"; | 138 | @import "~@/styles/public.scss"; | ... | ... |
... | @@ -102,7 +102,7 @@ class data extends filter { | ... | @@ -102,7 +102,7 @@ class data extends filter { |
102 | return ( | 102 | return ( |
103 | <div> | 103 | <div> |
104 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button> | 104 | <el-button type="text" icon="el-icon-edit-outline" onClick={() => { vm.openDialog(scope.row) }}>登记薄</el-button> |
105 | <el-button type="text" icon="el-icon-film" onClick={() => { vm.openDialog(scope.row) }}>楼盘表</el-button> | 105 | <el-button type="text" icon="el-icon-film" onClick={() => { vm.handleLpbClick(scope.row) }}>楼盘表</el-button> |
106 | </div> | 106 | </div> |
107 | ) | 107 | ) |
108 | } | 108 | } | ... | ... |
-
Please register or sign in to post a comment