23538d49 by 焦泽平

自然幢历史回溯涉及不动产单元号逻辑处理

1 parent 8a107f50
...@@ -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',
...@@ -184,6 +184,7 @@ export default { ...@@ -184,6 +184,7 @@ export default {
184 offsetY: 10, 184 offsetY: 10,
185 itemTypes: ['node', 'edge'], 185 itemTypes: ['node', 'edge'],
186 getContent: (e) => { 186 getContent: (e) => {
187 debugger;
187 const outDiv = document.createElement('div'); 188 const outDiv = document.createElement('div');
188 outDiv.style.width = 'fit-content'; 189 outDiv.style.width = 'fit-content';
189 outDiv.innerHTML = ` 190 outDiv.innerHTML = `
...@@ -199,8 +200,9 @@ export default { ...@@ -199,8 +200,9 @@ export default {
199 }, 200 },
200 }); 201 });
201 202
203
202 const container = document.getElementById('mountNode'); 204 const container = document.getElementById('mountNode');
203 console.log(container) 205 // console.log(container)
204 const graph = new G6.Graph({ 206 const graph = new G6.Graph({
205 container: 'mountNode', 207 container: 'mountNode',
206 width:eWidth, 208 width:eWidth,
...@@ -253,15 +255,13 @@ export default { ...@@ -253,15 +255,13 @@ export default {
253 graph.on('node:click', e => { 255 graph.on('node:click', e => {
254 switch (this.type) { 256 switch (this.type) {
255 case "zrz": 257 case "zrz":
256 getZrzDetailByBsm(e.item._cfg.id).then((res)=>{ 258 getZrzDetailByBsmBylshs(e.item._cfg.id).then((res)=>{
257 if(res.code === 200){ 259 if(res.code === 200){
258 self.result = res.result; 260 self.result = res.result;
259 } 261 }
260 }) 262 })
261 break; 263 break;
262 case "zd": 264 case "zd":
263 debugger;
264
265 getQjZdjbxxDetailByIdBylshs(e.item._cfg.id).then((res)=>{ 265 getQjZdjbxxDetailByIdBylshs(e.item._cfg.id).then((res)=>{
266 if(res.code === 200){ 266 if(res.code === 200){
267 self.result = res.result; 267 self.result = res.result;
...@@ -325,7 +325,7 @@ export default { ...@@ -325,7 +325,7 @@ export default {
325 }); 325 });
326 switch (this.type) { 326 switch (this.type) {
327 case "zrz": 327 case "zrz":
328 getZrzDetailByBsm(this.bsm).then((res)=>{ 328 getZrzDetailByBsmBylshs(this.bsm).then((res)=>{
329 if(res.code === 200){ 329 if(res.code === 200){
330 this.result = res.result; 330 this.result = res.result;
331 } 331 }
...@@ -378,7 +378,7 @@ export default { ...@@ -378,7 +378,7 @@ export default {
378 margin: 20px 20px 0 0; 378 margin: 20px 20px 0 0;
379 width: 36%; 379 width: 36%;
380 float: right; 380 float: right;
381 height: 100%; 381 height: 80%;
382 border: 1px solid #E6E6E6; 382 border: 1px solid #E6E6E6;
383 background: white; 383 background: white;
384 padding: 20px 20px 0 20px; 384 padding: 20px 20px 0 20px;
......
...@@ -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> -->
......