Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
4 changed files
with
32 additions
and
15 deletions
... | @@ -37,7 +37,7 @@ export function saveZrzInfo(data) { | ... | @@ -37,7 +37,7 @@ export function saveZrzInfo(data) { |
37 | } | 37 | } |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * 保存自然幢信息 | 40 | * 根据bsm查询自然幢基本信息 |
41 | */ | 41 | */ |
42 | export function getZrzDetailByBsm(data) { | 42 | export function getZrzDetailByBsm(data) { |
43 | return request({ | 43 | return request({ |
... | @@ -50,6 +50,20 @@ export function getZrzDetailByBsm(data) { | ... | @@ -50,6 +50,20 @@ export function getZrzDetailByBsm(data) { |
50 | } | 50 | } |
51 | 51 | ||
52 | /** | 52 | /** |
53 | * 根据bsm查询自然幢基本信息-历史回溯 | ||
54 | */ | ||
55 | export function getZrzDetailByBsmBylshs(data) { | ||
56 | return request({ | ||
57 | url: '/fw/qjZrz/getQjZrzDetailByIdBylshs', | ||
58 | method: 'get', | ||
59 | params: { | ||
60 | id: data | ||
61 | } | ||
62 | }) | ||
63 | } | ||
64 | |||
65 | |||
66 | /** | ||
53 | * 新增权籍_建筑物区分所有权业主共有部分调查表 | 67 | * 新增权籍_建筑物区分所有权业主共有部分调查表 |
54 | */ | 68 | */ |
55 | export function saveYzgy(data) { | 69 | export function saveYzgy(data) { | ... | ... |
... | @@ -76,7 +76,7 @@ | ... | @@ -76,7 +76,7 @@ |
76 | import insertCss from 'insert-css'; | 76 | import insertCss from 'insert-css'; |
77 | import { getLshs } from "@api/fwsxbg"; | 77 | import { getLshs } from "@api/fwsxbg"; |
78 | import { getQjZdjbxxDetailByIdBylshs } from "@api/zd"; | 78 | import { getQjZdjbxxDetailByIdBylshs } from "@api/zd"; |
79 | import { getZrzDetailByBsm } from "@api/zrz"; | 79 | import { getZrzDetailByBsmBylshs } from "@api/zrz"; |
80 | import { getDzDetailByBsm } from "@api/dz"; | 80 | import { getDzDetailByBsm } from "@api/dz"; |
81 | 81 | ||
82 | export default { | 82 | export default { |
... | @@ -115,6 +115,7 @@ export default { | ... | @@ -115,6 +115,7 @@ export default { |
115 | }, | 115 | }, |
116 | mounted(){ | 116 | mounted(){ |
117 | this.getLshsData(); | 117 | this.getLshsData(); |
118 | |||
118 | }, | 119 | }, |
119 | methods: { | 120 | methods: { |
120 | initG6() { | 121 | initG6() { |
... | @@ -122,9 +123,8 @@ export default { | ... | @@ -122,9 +123,8 @@ export default { |
122 | const data = this.data; | 123 | const data = this.data; |
123 | const eWidth = this.$refs.containerWidth.clientWidth; | 124 | const eWidth = this.$refs.containerWidth.clientWidth; |
124 | const eHeight = this.$refs.containerWidth.clientHeight; | 125 | const eHeight = this.$refs.containerWidth.clientHeight; |
125 | 126 | const mountNodeRight1=document.getElementById('mountNodeRight'); | |
126 | // console.log(eWidth+":width") | 127 | mountNodeRight1.style.height=eHeight-20+'px'; |
127 | // console.log(eHeight+":height") | ||
128 | 128 | ||
129 | G6.registerNode( | 129 | G6.registerNode( |
130 | 'sql', | 130 | 'sql', |
... | @@ -179,11 +179,14 @@ export default { | ... | @@ -179,11 +179,14 @@ export default { |
179 | 'polyline', | 179 | 'polyline', |
180 | ); | 180 | ); |
181 | 181 | ||
182 | |||
183 | //鼠标移动 弹出界面 | ||
182 | const tooltip = new G6.Tooltip({ | 184 | const tooltip = new G6.Tooltip({ |
183 | offsetX: 10, | 185 | offsetX: 10, |
184 | offsetY: 10, | 186 | offsetY: 10, |
185 | itemTypes: ['node', 'edge'], | 187 | itemTypes: ['node', 'edge'], |
186 | getContent: (e) => { | 188 | getContent: (e) => { |
189 | debugger; | ||
187 | const outDiv = document.createElement('div'); | 190 | const outDiv = document.createElement('div'); |
188 | outDiv.style.width = 'fit-content'; | 191 | outDiv.style.width = 'fit-content'; |
189 | outDiv.innerHTML = ` | 192 | outDiv.innerHTML = ` |
... | @@ -199,8 +202,9 @@ export default { | ... | @@ -199,8 +202,9 @@ export default { |
199 | }, | 202 | }, |
200 | }); | 203 | }); |
201 | 204 | ||
205 | |||
202 | const container = document.getElementById('mountNode'); | 206 | const container = document.getElementById('mountNode'); |
203 | console.log(container) | 207 | // console.log(container) |
204 | const graph = new G6.Graph({ | 208 | const graph = new G6.Graph({ |
205 | container: 'mountNode', | 209 | container: 'mountNode', |
206 | width:eWidth, | 210 | width:eWidth, |
... | @@ -222,13 +226,14 @@ export default { | ... | @@ -222,13 +226,14 @@ export default { |
222 | endArrow: true, | 226 | endArrow: true, |
223 | radius: 10, | 227 | radius: 10, |
224 | offset: 10, | 228 | offset: 10, |
229 | // fontSize:14, | ||
225 | // endArrow: true, | 230 | // endArrow: true, |
226 | lineWidth: 2, | 231 | lineWidth: 2, //箭头宽度 |
227 | stroke: 'rgba(78,142,230,0.45)', | 232 | stroke: 'rgba(78,142,230,0.45)', |
228 | }, | 233 | }, |
229 | }, | 234 | }, |
230 | nodeStateStyles: { | 235 | nodeStateStyles: { |
231 | selected: { | 236 | selected: {//选中之后样式 |
232 | stroke: '#d9d9d9', | 237 | stroke: '#d9d9d9', |
233 | fill: '#5394ef', | 238 | fill: '#5394ef', |
234 | }, | 239 | }, |
... | @@ -253,15 +258,13 @@ export default { | ... | @@ -253,15 +258,13 @@ export default { |
253 | graph.on('node:click', e => { | 258 | graph.on('node:click', e => { |
254 | switch (this.type) { | 259 | switch (this.type) { |
255 | case "zrz": | 260 | case "zrz": |
256 | getZrzDetailByBsm(e.item._cfg.id).then((res)=>{ | 261 | getZrzDetailByBsmBylshs(e.item._cfg.id).then((res)=>{ |
257 | if(res.code === 200){ | 262 | if(res.code === 200){ |
258 | self.result = res.result; | 263 | self.result = res.result; |
259 | } | 264 | } |
260 | }) | 265 | }) |
261 | break; | 266 | break; |
262 | case "zd": | 267 | case "zd": |
263 | debugger; | ||
264 | |||
265 | getQjZdjbxxDetailByIdBylshs(e.item._cfg.id).then((res)=>{ | 268 | getQjZdjbxxDetailByIdBylshs(e.item._cfg.id).then((res)=>{ |
266 | if(res.code === 200){ | 269 | if(res.code === 200){ |
267 | self.result = res.result; | 270 | self.result = res.result; |
... | @@ -325,7 +328,7 @@ export default { | ... | @@ -325,7 +328,7 @@ export default { |
325 | }); | 328 | }); |
326 | switch (this.type) { | 329 | switch (this.type) { |
327 | case "zrz": | 330 | case "zrz": |
328 | getZrzDetailByBsm(this.bsm).then((res)=>{ | 331 | getZrzDetailByBsmBylshs(this.bsm).then((res)=>{ |
329 | if(res.code === 200){ | 332 | if(res.code === 200){ |
330 | this.result = res.result; | 333 | this.result = res.result; |
331 | } | 334 | } |
... | @@ -378,7 +381,7 @@ export default { | ... | @@ -378,7 +381,7 @@ export default { |
378 | margin: 20px 20px 0 0; | 381 | margin: 20px 20px 0 0; |
379 | width: 36%; | 382 | width: 36%; |
380 | float: right; | 383 | float: right; |
381 | height: 100%; | 384 | height: 80%; |
382 | border: 1px solid #E6E6E6; | 385 | border: 1px solid #E6E6E6; |
383 | background: white; | 386 | background: white; |
384 | padding: 20px 20px 0 20px; | 387 | padding: 20px 20px 0 20px; | ... | ... |
... | @@ -332,7 +332,7 @@ export default { | ... | @@ -332,7 +332,7 @@ export default { |
332 | this.close(); | 332 | this.close(); |
333 | // 根据res.processInstance.businessId去查询zdbsm TODO | 333 | // 根据res.processInstance.businessId去查询zdbsm TODO |
334 | 334 | ||
335 | // this.$store.state.zdbsm = res.result; | 335 | this.$store.state.zdbsm = res.processInstance.title; |
336 | // todo 跳转到宗地基本信息内容表页面 (预留) | 336 | // todo 跳转到宗地基本信息内容表页面 (预留) |
337 | this.close(); | 337 | this.close(); |
338 | this.$router.push({ | 338 | this.$router.push({ | ... | ... |
... | @@ -273,7 +273,7 @@ | ... | @@ -273,7 +273,7 @@ |
273 | 273 | ||
274 | </table> | 274 | </table> |
275 | <div class="header-button" :style="{width:mainBoxWidth+'px'}"> | 275 | <div class="header-button" :style="{width:mainBoxWidth+'px'}"> |
276 | <el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled" icon="iconfont el-icon-search">保存</el-button> | 276 | <el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled" icon="iconfont iconbaocun">保存</el-button> |
277 | <el-button type="primary" @click="onSubmit" :disabled="disabled">提交</el-button> | 277 | <el-button type="primary" @click="onSubmit" :disabled="disabled">提交</el-button> |
278 | <el-button type="primary" @click="registerCall">登记调用</el-button> | 278 | <el-button type="primary" @click="registerCall">登记调用</el-button> |
279 | <!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> --> | 279 | <!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> --> | ... | ... |
-
Please register or sign in to post a comment