Merge remote-tracking branch 'origin/master'
Showing
14 changed files
with
166 additions
and
70 deletions
| ... | @@ -42,7 +42,7 @@ export default { | ... | @@ -42,7 +42,7 @@ export default { |
| 42 | this.isShow = true; | 42 | this.isShow = true; |
| 43 | this.tips = tips+'...'; | 43 | this.tips = tips+'...'; |
| 44 | }, | 44 | }, |
| 45 | loadingHide(tips){ | 45 | loadingHide(){ |
| 46 | this.isShow = false; | 46 | this.isShow = false; |
| 47 | } | 47 | } |
| 48 | }, | 48 | }, | ... | ... |
| ... | @@ -126,3 +126,13 @@ export function cxlzZrzList(data) { | ... | @@ -126,3 +126,13 @@ export function cxlzZrzList(data) { |
| 126 | }) | 126 | }) |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | /** | ||
| 130 | * 查询权籍_建筑物区分所有权业主共有部分调查表 | ||
| 131 | */ | ||
| 132 | export function getHCountByZrzbsm(id) { | ||
| 133 | return request({ | ||
| 134 | url: '/fw/qjZrz/getHCountByZrzbsm', | ||
| 135 | method: 'get', | ||
| 136 | params: {id} | ||
| 137 | }) | ||
| 138 | } | ... | ... |
| ... | @@ -98,6 +98,9 @@ ol, ul { list-style:none; } | ... | @@ -98,6 +98,9 @@ ol, ul { list-style:none; } |
| 98 | ::-webkit-scrollbar-track { | 98 | ::-webkit-scrollbar-track { |
| 99 | border-radius: 0; | 99 | border-radius: 0; |
| 100 | } | 100 | } |
| 101 | /deep/ .el-tabs--border-card{ | ||
| 102 | border: 0; | ||
| 103 | } | ||
| 101 | //二级菜单样式 | 104 | //二级菜单样式 |
| 102 | .tabs{ | 105 | .tabs{ |
| 103 | >.el-tabs__content{ | 106 | >.el-tabs__content{ |
| ... | @@ -153,7 +156,7 @@ ol, ul { list-style:none; } | ... | @@ -153,7 +156,7 @@ ol, ul { list-style:none; } |
| 153 | } | 156 | } |
| 154 | .el-dialog__header{ | 157 | .el-dialog__header{ |
| 155 | border-bottom: 1px solid #F1F1F1; | 158 | border-bottom: 1px solid #F1F1F1; |
| 156 | background: #3FA2E1; | 159 | background: #0091FF; |
| 157 | } | 160 | } |
| 158 | .el-dialog__headerbtn:focus .el-dialog__close, .el-dialog__headerbtn:hover .el-dialog__close{ | 161 | .el-dialog__headerbtn:focus .el-dialog__close, .el-dialog__headerbtn:hover .el-dialog__close{ |
| 159 | color: #fff; | 162 | color: #fff; |
| ... | @@ -305,16 +308,16 @@ ol, ul { list-style:none; } | ... | @@ -305,16 +308,16 @@ ol, ul { list-style:none; } |
| 305 | } | 308 | } |
| 306 | //实预测转换按钮样式 | 309 | //实预测转换按钮样式 |
| 307 | /deep/.el-radio-button__inner { | 310 | /deep/.el-radio-button__inner { |
| 308 | border: 1px solid #3fa2e1!important; | 311 | border: 1px solid #00cacd!important; |
| 309 | color: #3fa2e1; | 312 | color: #00cacd; |
| 310 | } | 313 | } |
| 311 | /deep/.el-radio-button__inner:hover { | 314 | /deep/.el-radio-button__inner:hover { |
| 312 | color: #3fa2e1; | 315 | color: #00cacd; |
| 313 | } | 316 | } |
| 314 | /deep/.is-active .el-radio-button__inner { | 317 | /deep/.is-active .el-radio-button__inner { |
| 315 | color: #fff; | 318 | color: #fff; |
| 316 | } | 319 | } |
| 317 | /deep/.el-radio-button__orig-radio:checked + .el-radio-button__inner { | 320 | /deep/.el-radio-button__orig-radio:checked + .el-radio-button__inner { |
| 318 | background-color: #3fa2e1; | 321 | background-color: #00cacd; |
| 319 | border-color: #3fa2e1; | 322 | border-color: #00cacd; |
| 320 | } | 323 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -608,7 +608,7 @@ export default { | ... | @@ -608,7 +608,7 @@ export default { |
| 608 | exportText(){ | 608 | exportText(){ |
| 609 | var self = this; | 609 | var self = this; |
| 610 | var type = this.zdData.type; | 610 | var type = this.zdData.type; |
| 611 | var BSM = type == 'zdt'? this.zdData.zdbsm : this.zdData.bsm; | 611 | var BSM = type == 'zd'? this.zdData.zdbsm : this.zdData.bsm; |
| 612 | this.queryGeoByBsm(BSM,type,function (features){ | 612 | this.queryGeoByBsm(BSM,type,function (features){ |
| 613 | if(features && features.length > 0 && features[0].geometry.rings.length > 0){ | 613 | if(features && features.length > 0 && features[0].geometry.rings.length > 0){ |
| 614 | var data = features[0]; | 614 | var data = features[0]; |
| ... | @@ -637,7 +637,7 @@ export default { | ... | @@ -637,7 +637,7 @@ export default { |
| 637 | exportToShp(){ | 637 | exportToShp(){ |
| 638 | var self = this; | 638 | var self = this; |
| 639 | var type = this.zdData.type; | 639 | var type = this.zdData.type; |
| 640 | var BSM = type == 'zdt'? this.zdData.zdbsm : this.zdData.bsm; | 640 | var BSM = type == 'zd'? this.zdData.zdbsm : this.zdData.bsm; |
| 641 | this.queryGeoByBsm(BSM,type,function (features){ | 641 | this.queryGeoByBsm(BSM,type,function (features){ |
| 642 | if(features && features.length > 0 && features[0].geometry.rings.length > 0) { | 642 | if(features && features.length > 0 && features[0].geometry.rings.length > 0) { |
| 643 | var data = JSON.stringify(features[0]); | 643 | var data = JSON.stringify(features[0]); |
| ... | @@ -656,7 +656,7 @@ export default { | ... | @@ -656,7 +656,7 @@ export default { |
| 656 | exportExcel(){ | 656 | exportExcel(){ |
| 657 | var self = this; | 657 | var self = this; |
| 658 | var type = this.zdData.type; | 658 | var type = this.zdData.type; |
| 659 | var BSM = type == 'zdt'? this.zdData.zdbsm : this.zdData.bsm; | 659 | var BSM = type == 'zd'? this.zdData.zdbsm : this.zdData.bsm; |
| 660 | this.queryGeoByBsm(BSM,type,function (features) { | 660 | this.queryGeoByBsm(BSM,type,function (features) { |
| 661 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { | 661 | if (features && features.length > 0 && features[0].geometry.rings.length > 0) { |
| 662 | var data = features[0]; | 662 | var data = features[0]; |
| ... | @@ -696,7 +696,7 @@ export default { | ... | @@ -696,7 +696,7 @@ export default { |
| 696 | //图形定位 | 696 | //图形定位 |
| 697 | postionToMap(){ | 697 | postionToMap(){ |
| 698 | var type = this.zdData.type; | 698 | var type = this.zdData.type; |
| 699 | var BSM = type == 'zdt'? this.zdData.zdbsm : this.zdData.bsm; | 699 | var BSM = type == 'zd'? this.zdData.zdbsm : this.zdData.bsm; |
| 700 | if(this.$route.path == "/viewMap"){ | 700 | if(this.$route.path == "/viewMap"){ |
| 701 | //定位到当前空间位置 | 701 | //定位到当前空间位置 |
| 702 | // TODO 这个方法只是为了支撑功能 | 702 | // TODO 这个方法只是为了支撑功能 | ... | ... |
| ... | @@ -223,7 +223,7 @@ export default { | ... | @@ -223,7 +223,7 @@ export default { |
| 223 | }) | 223 | }) |
| 224 | }, | 224 | }, |
| 225 | //保存或者编辑属性信息 | 225 | //保存或者编辑属性信息 |
| 226 | updAttributes(bsm,type,attributes,callBackFunction){ | 226 | updAttributes(bsm,type,attributes,callBackFunction,ydybsm){ |
| 227 | var layer = null; | 227 | var layer = null; |
| 228 | if(type == 'zd'){ | 228 | if(type == 'zd'){ |
| 229 | layer = this.getLayerByName("ZDJBXX"); | 229 | layer = this.getLayerByName("ZDJBXX"); |
| ... | @@ -232,7 +232,7 @@ export default { | ... | @@ -232,7 +232,7 @@ export default { |
| 232 | } | 232 | } |
| 233 | var featureUrl = layer.layerUrl.replace("MapServer","FeatureServer"); | 233 | var featureUrl = layer.layerUrl.replace("MapServer","FeatureServer"); |
| 234 | featureUrl += "/"+layer.id; | 234 | featureUrl += "/"+layer.id; |
| 235 | this.queryGeoByBsm(bsm,type,function (features) { | 235 | this.queryGeoByBsm(ydybsm ? ydybsm:bsm,type,function (features) { |
| 236 | if(features && features.length > 0){ | 236 | if(features && features.length > 0){ |
| 237 | attributes.OBJECTID = features[0].attributes.OBJECTID; | 237 | attributes.OBJECTID = features[0].attributes.OBJECTID; |
| 238 | features[0].attributes = attributes; | 238 | features[0].attributes = attributes; |
| ... | @@ -240,6 +240,9 @@ export default { | ... | @@ -240,6 +240,9 @@ export default { |
| 240 | features[0].geometry.spatialReference = { | 240 | features[0].geometry.spatialReference = { |
| 241 | wkt:wkt | 241 | wkt:wkt |
| 242 | }*/ | 242 | }*/ |
| 243 | if(ydybsm){ | ||
| 244 | features[0].attributes.BSM = ydybsm; | ||
| 245 | } | ||
| 243 | featureUpdate.methods.updateGraphic(featureUrl,features[0],callBackFunction); | 246 | featureUpdate.methods.updateGraphic(featureUrl,features[0],callBackFunction); |
| 244 | }else{ | 247 | }else{ |
| 245 | var graphic = { | 248 | var graphic = { | ... | ... |
| ... | @@ -21,9 +21,8 @@ function errorLog() { | ... | @@ -21,9 +21,8 @@ function errorLog() { |
| 21 | // this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 | 21 | // this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 |
| 22 | // loadingInstance.close(); | 22 | // loadingInstance.close(); |
| 23 | // }); | 23 | // }); |
| 24 | MessageBox.alert('报错了请联系管理员', '消息提示', { | 24 | Message.error({ |
| 25 | confirmButtonText: '确定', | 25 | message: "出现错误,请稍后再试" |
| 26 | type: 'warning' | ||
| 27 | }) | 26 | }) |
| 28 | } | 27 | } |
| 29 | //定义loading | 28 | //定义loading | ... | ... |
| ... | @@ -12,6 +12,7 @@ | ... | @@ -12,6 +12,7 @@ |
| 12 | <span class="logo-text" v-show="!textLogo">不动产权籍调查系统</span> | 12 | <span class="logo-text" v-show="!textLogo">不动产权籍调查系统</span> |
| 13 | </div> | 13 | </div> |
| 14 | 14 | ||
| 15 | <div class="wrap"> | ||
| 15 | <div class="search-box"> | 16 | <div class="search-box"> |
| 16 | <el-input | 17 | <el-input |
| 17 | maxlength="28" | 18 | maxlength="28" |
| ... | @@ -28,20 +29,20 @@ | ... | @@ -28,20 +29,20 @@ |
| 28 | <div class="treeModule" :style="{height:treeHeight+'px'}"> | 29 | <div class="treeModule" :style="{height:treeHeight+'px'}"> |
| 29 | <LineTree :pd="pd" v-if="lineTreeVisible" @itemClick="itemClick"></LineTree> | 30 | <LineTree :pd="pd" v-if="lineTreeVisible" @itemClick="itemClick"></LineTree> |
| 30 | </div> | 31 | </div> |
| 32 | </div> | ||
| 31 | </el-aside> | 33 | </el-aside> |
| 32 | <el-container class="calcWidth"> | 34 | <el-container class="calcWidth"> |
| 33 | <el-header> | 35 | <el-header> |
| 34 | <div class="header-top"> | 36 | <div class="header-top"> |
| 35 | <!-- <div class="top-items" @click="toggleClick"> | 37 | <div class="top-items" @click="toggleClick"> |
| 36 | <i class="iconfont iconsuojin" v-show="!isActive"></i> | 38 | <i class="iconfont iconsuojin" v-show="!isActive"></i> |
| 37 | <i class="iconfont iconzhankai" v-show="isActive"></i> | 39 | <i class="iconfont iconzhankai" v-show="isActive"></i> |
| 38 | </div> --> | 40 | </div> |
| 39 | <div | 41 | <div |
| 40 | class="top-items" | 42 | class="top-items" |
| 41 | v-for="(item, index) in headTop" | 43 | v-for="(item, index) in headTop" |
| 42 | :key="index + '1'" | 44 | :key="index + '1'" |
| 43 | :class="{ 'is-active': item.select }" | 45 | :class="{ 'is-active': item.select }" |
| 44 | :style="{'height':item.name == '首页' && item.select ? '64'+'px' : '65'+'px'}" | ||
| 45 | @click="selectTopItems(index)" | 46 | @click="selectTopItems(index)" |
| 46 | > | 47 | > |
| 47 | <i :class="item.icon"></i> | 48 | <i :class="item.icon"></i> |
| ... | @@ -475,11 +476,13 @@ export default { | ... | @@ -475,11 +476,13 @@ export default { |
| 475 | height: 66px; | 476 | height: 66px; |
| 476 | // border-bottom: 1px solid#EAEAEA; | 477 | // border-bottom: 1px solid#EAEAEA; |
| 477 | box-sizing: border-box; | 478 | box-sizing: border-box; |
| 478 | background-image: url('../assets/images/banner.png'); | 479 | // background-image: url('../assets/images/banner.png'); |
| 480 | background-color: #006CFF; | ||
| 479 | display: flex; | 481 | display: flex; |
| 480 | flex-grow: 1; | 482 | flex-grow: 1; |
| 481 | justify-content: center; | 483 | border-left: 1px solid #3E9FFF; |
| 482 | align-items: center; | 484 | // justify-content: center; |
| 485 | // align-items: center; | ||
| 483 | .top-items { | 486 | .top-items { |
| 484 | cursor: pointer; | 487 | cursor: pointer; |
| 485 | height: 66px; | 488 | height: 66px; |
| ... | @@ -504,10 +507,10 @@ export default { | ... | @@ -504,10 +507,10 @@ export default { |
| 504 | } | 507 | } |
| 505 | } | 508 | } |
| 506 | .top-items:hover{ | 509 | .top-items:hover{ |
| 507 | background: hsla(0,0%,100%,.2); | 510 | background: #0091FF; |
| 508 | } | 511 | } |
| 509 | .top-items.is-active { | 512 | .top-items.is-active { |
| 510 | background: hsla(0,0%,100%,.2); | 513 | background: #0091FF; |
| 511 | } | 514 | } |
| 512 | } | 515 | } |
| 513 | .header-bottom { | 516 | .header-bottom { |
| ... | @@ -536,8 +539,11 @@ export default { | ... | @@ -536,8 +539,11 @@ export default { |
| 536 | background-color: #ffffff; | 539 | background-color: #ffffff; |
| 537 | color: #333; | 540 | color: #333; |
| 538 | // text-align: center; | 541 | // text-align: center; |
| 539 | overflow: hidden; | 542 | overflow: overlay; |
| 540 | transition: width 0.3s; | 543 | transition: width 0.3s; |
| 544 | box-shadow: 1px 0px 2px 1px rgba(49, 132, 245, 0.1); | ||
| 545 | position: relative; | ||
| 546 | z-index: 1000; | ||
| 541 | .logo-box { | 547 | .logo-box { |
| 542 | width: 100%; | 548 | width: 100%; |
| 543 | height: 66px; | 549 | height: 66px; |
| ... | @@ -545,7 +551,7 @@ export default { | ... | @@ -545,7 +551,7 @@ export default { |
| 545 | box-sizing: border-box; | 551 | box-sizing: border-box; |
| 546 | padding: 10px 20px; | 552 | padding: 10px 20px; |
| 547 | transition: width 0.3s; | 553 | transition: width 0.3s; |
| 548 | background-color: #287CC5; | 554 | background-color: #006CFF; |
| 549 | .logo-img { | 555 | .logo-img { |
| 550 | width: 44px; | 556 | width: 44px; |
| 551 | float: left; | 557 | float: left; |
| ... | @@ -557,11 +563,13 @@ export default { | ... | @@ -557,11 +563,13 @@ export default { |
| 557 | font-size: 20px; | 563 | font-size: 20px; |
| 558 | } | 564 | } |
| 559 | } | 565 | } |
| 566 | .wrap{ | ||
| 567 | height: calc(100% - 66px); | ||
| 568 | overflow-x: hidden; | ||
| 560 | .search-box{ | 569 | .search-box{ |
| 561 | height: 65px; | 570 | height: 65px; |
| 562 | box-sizing: border-box; | 571 | box-sizing: border-box; |
| 563 | padding: 18px 20px; | 572 | padding: 18px 20px; |
| 564 | border-right: 1px solid #dedede; | ||
| 565 | .searchInput{ | 573 | .searchInput{ |
| 566 | /deep/ .el-input__inner{ | 574 | /deep/ .el-input__inner{ |
| 567 | width: 240px; | 575 | width: 240px; |
| ... | @@ -577,7 +585,7 @@ export default { | ... | @@ -577,7 +585,7 @@ export default { |
| 577 | } | 585 | } |
| 578 | .treeModule { | 586 | .treeModule { |
| 579 | box-sizing: border-box; | 587 | box-sizing: border-box; |
| 580 | border-right: 1px solid #dedede; | 588 | } |
| 581 | } | 589 | } |
| 582 | .logo-box-show { | 590 | .logo-box-show { |
| 583 | width: 64px; | 591 | width: 64px; | ... | ... |
| ... | @@ -625,9 +625,9 @@ | ... | @@ -625,9 +625,9 @@ |
| 625 | } else { | 625 | } else { |
| 626 | Message.error("保存失败") | 626 | Message.error("保存失败") |
| 627 | } | 627 | } |
| 628 | }).catch((err)=>{ | 628 | }).catch((error)=>{ |
| 629 | vm.loadingHide() | 629 | vm.loadingHide(); |
| 630 | Message.error(err) | 630 | console.log(error); |
| 631 | }) | 631 | }) |
| 632 | }else{ | 632 | }else{ |
| 633 | Message.warning("请完善分割后的宗地项目名称后重试") | 633 | Message.warning("请完善分割后的宗地项目名称后重试") | ... | ... |
| ... | @@ -347,14 +347,12 @@ export default { | ... | @@ -347,14 +347,12 @@ export default { |
| 347 | float: left; | 347 | float: left; |
| 348 | margin-right: 20px; | 348 | margin-right: 20px; |
| 349 | flex: 1; | 349 | flex: 1; |
| 350 | border: 1px solid #E6E6E6; | ||
| 351 | /deep/ .el-card__body{ | 350 | /deep/ .el-card__body{ |
| 352 | padding: 0; | 351 | padding: 0; |
| 353 | } | 352 | } |
| 354 | } | 353 | } |
| 355 | .download { | 354 | .download { |
| 356 | width: 50%; | 355 | width: 50%; |
| 357 | border: 1px solid #E6E6E6; | ||
| 358 | /deep/ .el-card__body{ | 356 | /deep/ .el-card__body{ |
| 359 | padding: 0; | 357 | padding: 0; |
| 360 | } | 358 | } |
| ... | @@ -379,7 +377,6 @@ export default { | ... | @@ -379,7 +377,6 @@ export default { |
| 379 | height: 100%; | 377 | height: 100%; |
| 380 | margin-right: 20px; | 378 | margin-right: 20px; |
| 381 | background: #fff; | 379 | background: #fff; |
| 382 | border: 1px solid #E6E6E6; | ||
| 383 | box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6), 0 2px 4px 0 rgba(232, 237, 250, 0.5); | 380 | box-shadow: 0 0 8px 0 rgba(232, 237, 250, 0.6), 0 2px 4px 0 rgba(232, 237, 250, 0.5); |
| 384 | /deep/ .el-card__body{ | 381 | /deep/ .el-card__body{ |
| 385 | height: calc(100% - 93px); | 382 | height: calc(100% - 93px); | ... | ... |
| ... | @@ -183,25 +183,25 @@ | ... | @@ -183,25 +183,25 @@ |
| 183 | switch (row.dylx) { | 183 | switch (row.dylx) { |
| 184 | case "zd": | 184 | case "zd": |
| 185 | this.$store.state.zdbsm = row.glbsm; | 185 | this.$store.state.zdbsm = row.glbsm; |
| 186 | this.getRightTree(row.glbsm,'1'); | 186 | this.getRightTree(row.glbsm,'0,1,2'); |
| 187 | break; | 187 | break; |
| 188 | case "zrz": | 188 | case "zrz": |
| 189 | this.$store.state.zrzbsm = row.glbsm; | 189 | this.$store.state.zrzbsm = row.glbsm; |
| 190 | this.getTreeByBsm(row.glbsm,row.dylx,'1'); | 190 | this.getTreeByBsm(row.glbsm,row.dylx,'0,1,2'); |
| 191 | break; | 191 | break; |
| 192 | case "h": | 192 | case "h": |
| 193 | case "h0": | 193 | case "h0": |
| 194 | case "h1": | 194 | case "h1": |
| 195 | this.$store.state.hbsm = row.glbsm; | 195 | this.$store.state.hbsm = row.glbsm; |
| 196 | this.getTreeByBsm(row.glbsm,'h','1'); | 196 | this.getTreeByBsm(row.glbsm,'h','0,1,2'); |
| 197 | break; | 197 | break; |
| 198 | case "dz": | 198 | case "dz": |
| 199 | this.$store.state.dzbsm = row.glbsm; | 199 | this.$store.state.dzbsm = row.glbsm; |
| 200 | this.getTreeByBsm(row.glbsm,row.dylx,'1'); | 200 | this.getTreeByBsm(row.glbsm,row.dylx,'0,1,2'); |
| 201 | break; | 201 | break; |
| 202 | case "gzw": | 202 | case "gzw": |
| 203 | this.$store.state.dzbsm = row.glbsm; | 203 | this.$store.state.dzbsm = row.glbsm; |
| 204 | this.getTreeByBsm(row.glbsm,row.dylx,'1'); | 204 | this.getTreeByBsm(row.glbsm,row.dylx,'0,1,2'); |
| 205 | break; | 205 | break; |
| 206 | 206 | ||
| 207 | default: | 207 | default: | ... | ... |
| ... | @@ -556,6 +556,9 @@ | ... | @@ -556,6 +556,9 @@ |
| 556 | //权利性质数据传给子组件 | 556 | //权利性质数据传给子组件 |
| 557 | this.$refs.qlxzModule.countList = res.result.list; | 557 | this.$refs.qlxzModule.countList = res.result.list; |
| 558 | }) | 558 | }) |
| 559 | if(res.result.ydybsm){ | ||
| 560 | this.saveZdGraphicAtrributes(res.result.ydybsm); | ||
| 561 | } | ||
| 559 | } else { | 562 | } else { |
| 560 | this.$nextTick(() => { | 563 | this.$nextTick(() => { |
| 561 | //权利性质数据传给子组件 | 564 | //权利性质数据传给子组件 |
| ... | @@ -788,13 +791,29 @@ | ... | @@ -788,13 +791,29 @@ |
| 788 | }) | 791 | }) |
| 789 | .catch((error) => { | 792 | .catch((error) => { |
| 790 | vm.loadingHide(); | 793 | vm.loadingHide(); |
| 791 | this.$message({ | 794 | console.log(error); |
| 792 | message: error.message+",查看日志,联系管理员", | ||
| 793 | type: "error", | ||
| 794 | }); | 795 | }); |
| 796 | this.saveZdGraphicAtrributes(); | ||
| 797 | } | ||
| 798 | } | ||
| 799 | } else { | ||
| 800 | this.$message({ | ||
| 801 | // message: item.name+'不能为空', | ||
| 802 | message: '请完善表单后再继续操作', | ||
| 803 | type: "warning", | ||
| 795 | }); | 804 | }); |
| 805 | } | ||
| 806 | }) | ||
| 807 | |||
| 808 | }, | ||
| 809 | //保存空间图形 | ||
| 810 | saveZdGraphicAtrributes(ybsm){ | ||
| 796 | //保存到空间库里面 | 811 | //保存到空间库里面 |
| 797 | var self = this; | 812 | var self = this; |
| 813 | /* var ybsm = null; | ||
| 814 | if(this.ydybsm){ | ||
| 815 | ybsm = this.ydybsm; | ||
| 816 | } */ | ||
| 798 | for (var key in this.geoAttributes) { | 817 | for (var key in this.geoAttributes) { |
| 799 | if (key == "BSM") { | 818 | if (key == "BSM") { |
| 800 | self.geoAttributes[key] = this.$store.state.zdbsm | 819 | self.geoAttributes[key] = this.$store.state.zdbsm |
| ... | @@ -822,18 +841,7 @@ | ... | @@ -822,18 +841,7 @@ |
| 822 | } | 841 | } |
| 823 | self.updAttributes(this.$store.state.zdbsm, 'zd', this.geoAttributes, function (res) { | 842 | self.updAttributes(this.$store.state.zdbsm, 'zd', this.geoAttributes, function (res) { |
| 824 | 843 | ||
| 825 | }); | 844 | },ybsm); |
| 826 | } | ||
| 827 | } | ||
| 828 | } else { | ||
| 829 | this.$message({ | ||
| 830 | // message: item.name+'不能为空', | ||
| 831 | message: '请完善表单后再继续操作', | ||
| 832 | type: "warning", | ||
| 833 | }); | ||
| 834 | } | ||
| 835 | }) | ||
| 836 | |||
| 837 | }, | 845 | }, |
| 838 | inputBlur(e) { | 846 | inputBlur(e) { |
| 839 | if (e.target.value != '') { | 847 | if (e.target.value != '') { | ... | ... |
This diff is collapsed.
Click to expand it.
| ... | @@ -14,7 +14,7 @@ | ... | @@ -14,7 +14,7 @@ |
| 14 | </td> | 14 | </td> |
| 15 | <td colspan="2" class="tdright"><i class="requisite">*</i>自然幢号</td> | 15 | <td colspan="2" class="tdright"><i class="requisite">*</i>自然幢号</td> |
| 16 | <td colspan="4" class="psr"> | 16 | <td colspan="4" class="psr"> |
| 17 | <input class="formInput percent80" ref="zrzh" @blur="inputBlur($event)" :disabled="disabled" maxlength="24" v-model="form.zrzh"> | 17 | <input class="formInput percent80" ref="zrzh" @blur="inputBlurZrzh($event)" :disabled="disabled" maxlength="24" v-model="form.zrzh"> |
| 18 | <el-button @click.prevent="generatorCode" type="warning" :disabled="disabled" class="createBtn" size="mini">生成</el-button> | 18 | <el-button @click.prevent="generatorCode" type="warning" :disabled="disabled" class="createBtn" size="mini">生成</el-button> |
| 19 | </td> | 19 | </td> |
| 20 | </tr> | 20 | </tr> |
| ... | @@ -25,7 +25,7 @@ | ... | @@ -25,7 +25,7 @@ |
| 25 | </td> | 25 | </td> |
| 26 | <td colspan="2" class="tdright"><i class="requisite">*</i>不动产单元号</td> | 26 | <td colspan="2" class="tdright"><i class="requisite">*</i>不动产单元号</td> |
| 27 | <td colspan="4"> | 27 | <td colspan="4"> |
| 28 | <input class="formInput " ref="bdcdyh" @blur="inputBlur($event)" :disabled="disabled" maxlength="28" v-model="form.bdcdyh"> | 28 | <input class="formInput " ref="bdcdyh" @blur="inputBlur($event)" disabled maxlength="28" v-model="form.bdcdyh"> |
| 29 | </td> | 29 | </td> |
| 30 | </tr> | 30 | </tr> |
| 31 | 31 | ||
| ... | @@ -285,7 +285,7 @@ | ... | @@ -285,7 +285,7 @@ |
| 285 | <script> | 285 | <script> |
| 286 | import Qlr from "@components/formMenu/qlr"; | 286 | import Qlr from "@components/formMenu/qlr"; |
| 287 | import Qlxz from "@components/formMenu/qlxz"; | 287 | import Qlxz from "@components/formMenu/qlxz"; |
| 288 | import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm} from "@api/zrz" | 288 | import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm,getHCountByZrzbsm} from "@api/zrz" |
| 289 | import {getQjZdjbxxDetailById} from "@api/zd" | 289 | import {getQjZdjbxxDetailById} from "@api/zd" |
| 290 | import {submit,registerCall} from "@api/common" | 290 | import {submit,registerCall} from "@api/common" |
| 291 | import geoUtils from "@components/lineTree/tx/js/geoUtils"; | 291 | import geoUtils from "@components/lineTree/tx/js/geoUtils"; |
| ... | @@ -315,6 +315,12 @@ | ... | @@ -315,6 +315,12 @@ |
| 315 | 315 | ||
| 316 | lx:"zrz", | 316 | lx:"zrz", |
| 317 | bsm:'', | 317 | bsm:'', |
| 318 | |||
| 319 | initZrzh:'', | ||
| 320 | finishZrzh:'', | ||
| 321 | hcount:0, | ||
| 322 | booleanUpdateH:false, | ||
| 323 | |||
| 318 | form:{ | 324 | form:{ |
| 319 | zrzbsm:'', //自然幢标识码 | 325 | zrzbsm:'', //自然幢标识码 |
| 320 | zdbsm:'', //宗地标识码 | 326 | zdbsm:'', //宗地标识码 |
| ... | @@ -360,6 +366,7 @@ | ... | @@ -360,6 +366,7 @@ |
| 360 | glbsm:'', //关联标识码 | 366 | glbsm:'', //关联标识码 |
| 361 | sx:'', //顺序 | 367 | sx:'', //顺序 |
| 362 | }], | 368 | }], |
| 369 | booleanUpdateH:false, | ||
| 363 | }, | 370 | }, |
| 364 | value: '', | 371 | value: '', |
| 365 | ytTitleRowspan:1, //用途的单元格垂直合并数量 | 372 | ytTitleRowspan:1, //用途的单元格垂直合并数量 |
| ... | @@ -467,6 +474,10 @@ | ... | @@ -467,6 +474,10 @@ |
| 467 | } | 474 | } |
| 468 | }, | 475 | }, |
| 469 | onSave(){ | 476 | onSave(){ |
| 477 | |||
| 478 | //保存之前的自然幢号,用于判断该自然幢的不动产单元号是否更改,是否更改其下户的不动产单元号 | ||
| 479 | this.finishZrzh = this.form.zrzh; | ||
| 480 | this.form.booleanUpdateH =this.booleanUpdateH; | ||
| 470 | //判断自然幢号和不动产单元号是否手动修改过(自然幢号和不动产单元号的前19位是否和宗地代码一致) | 481 | //判断自然幢号和不动产单元号是否手动修改过(自然幢号和不动产单元号的前19位是否和宗地代码一致) |
| 471 | console.log(this.form,'this.form'); | 482 | console.log(this.form,'this.form'); |
| 472 | //给校验项赋值 | 483 | //给校验项赋值 |
| ... | @@ -567,7 +578,18 @@ | ... | @@ -567,7 +578,18 @@ |
| 567 | this.loading=false; | 578 | this.loading=false; |
| 568 | }) | 579 | }) |
| 569 | this.loading=false; | 580 | this.loading=false; |
| 570 | 581 | this.saveGraphicAttributes(); } | |
| 582 | }else{ | ||
| 583 | this.$message({ | ||
| 584 | // message: item.name+'不能为空', | ||
| 585 | message: '请完善表单后再继续操作', | ||
| 586 | type: "warning", | ||
| 587 | }); | ||
| 588 | } | ||
| 589 | }) | ||
| 590 | }, | ||
| 591 | //保存空间信息 | ||
| 592 | saveGraphicAttributes(ybsm){ | ||
| 571 | //保存到空间库里面 | 593 | //保存到空间库里面 |
| 572 | var self = this; | 594 | var self = this; |
| 573 | for(var key in this.geoAttributes){ | 595 | for(var key in this.geoAttributes){ |
| ... | @@ -583,16 +605,7 @@ | ... | @@ -583,16 +605,7 @@ |
| 583 | } | 605 | } |
| 584 | self.updAttributes(this.bsm,'zrz',this.geoAttributes,function (res) { | 606 | self.updAttributes(this.bsm,'zrz',this.geoAttributes,function (res) { |
| 585 | console.log("属性保存完成!!"); | 607 | console.log("属性保存完成!!"); |
| 586 | }); | 608 | },ybsm); |
| 587 | } | ||
| 588 | }else{ | ||
| 589 | this.$message({ | ||
| 590 | // message: item.name+'不能为空', | ||
| 591 | message: '请完善表单后再继续操作', | ||
| 592 | type: "warning", | ||
| 593 | }); | ||
| 594 | } | ||
| 595 | }) | ||
| 596 | }, | 609 | }, |
| 597 | onSubmit(){ | 610 | onSubmit(){ |
| 598 | let data={ | 611 | let data={ |
| ... | @@ -612,6 +625,7 @@ | ... | @@ -612,6 +625,7 @@ |
| 612 | }) | 625 | }) |
| 613 | }, | 626 | }, |
| 614 | open() { | 627 | open() { |
| 628 | const self = this; | ||
| 615 | this.$confirm('已经存在不动产单元号或者自然幢号, 是否继续?', '提示', { | 629 | this.$confirm('已经存在不动产单元号或者自然幢号, 是否继续?', '提示', { |
| 616 | confirmButtonText: '确定', | 630 | confirmButtonText: '确定', |
| 617 | cancelButtonText: '取消', | 631 | cancelButtonText: '取消', |
| ... | @@ -621,6 +635,16 @@ | ... | @@ -621,6 +635,16 @@ |
| 621 | .then((res)=>{ | 635 | .then((res)=>{ |
| 622 | this.form.zrzh=res.result.substring(0,24); | 636 | this.form.zrzh=res.result.substring(0,24); |
| 623 | this.form.bdcdyh=res.result; | 637 | this.form.bdcdyh=res.result; |
| 638 | console.log(self.initZrzh,self.hcount,"self") | ||
| 639 | if(self.initZrzh != null && self.initZrzh !== '' && self.hcount>0){ | ||
| 640 | self.booleanUpdateH =true; | ||
| 641 | self.$notify({ | ||
| 642 | title: '提示', | ||
| 643 | message: '修改自然幢号,可能会影响该自然幢下户的不动产单元号的重新生成!', | ||
| 644 | duration: 0, | ||
| 645 | type: 'warning' | ||
| 646 | }); | ||
| 647 | } | ||
| 624 | }); | 648 | }); |
| 625 | this.$message({ | 649 | this.$message({ |
| 626 | type: 'success', | 650 | type: 'success', |
| ... | @@ -634,6 +658,7 @@ | ... | @@ -634,6 +658,7 @@ |
| 634 | }); | 658 | }); |
| 635 | }, | 659 | }, |
| 636 | generatorCode(){ | 660 | generatorCode(){ |
| 661 | const self = this; | ||
| 637 | console.log(this.form,'this.form'); | 662 | console.log(this.form,'this.form'); |
| 638 | if((this.form.zrzh!=null&&this.form.zrzh!=='')||(this.form.bdcdyh!=null&&this.form.bdcdyh!=='')){ | 663 | if((this.form.zrzh!=null&&this.form.zrzh!=='')||(this.form.bdcdyh!=null&&this.form.bdcdyh!=='')){ |
| 639 | this.open(); | 664 | this.open(); |
| ... | @@ -641,8 +666,18 @@ | ... | @@ -641,8 +666,18 @@ |
| 641 | } | 666 | } |
| 642 | getBdcdyh(this.form.zddm,"zrz") | 667 | getBdcdyh(this.form.zddm,"zrz") |
| 643 | .then((res)=>{ | 668 | .then((res)=>{ |
| 644 | this.form.zrzh=res.result.substring(0,24); | 669 | self.form.zrzh=res.result.substring(0,24); |
| 645 | this.form.bdcdyh=res.result; | 670 | self.form.bdcdyh=res.result; |
| 671 | console.log(self.initZrzh,self.hcount,"self") | ||
| 672 | if(self.initZrzh != null && self.initZrzh !== '' && self.hcount>0){ | ||
| 673 | self.booleanUpdateH =true; | ||
| 674 | self.$notify({ | ||
| 675 | title: '提示', | ||
| 676 | message: '修改自然幢号,可能会影响该自然幢下户的不动产单元号的重新生成!', | ||
| 677 | duration: 0, | ||
| 678 | type: 'warning' | ||
| 679 | }); | ||
| 680 | } | ||
| 646 | }) | 681 | }) |
| 647 | }, | 682 | }, |
| 648 | 683 | ||
| ... | @@ -664,6 +699,9 @@ | ... | @@ -664,6 +699,9 @@ |
| 664 | getZrzDetailByBsm(data).then((res)=>{ | 699 | getZrzDetailByBsm(data).then((res)=>{ |
| 665 | if(res.code===200){ | 700 | if(res.code===200){ |
| 666 | this.form=res.result; | 701 | this.form=res.result; |
| 702 | if(res.result.ydybsm){ | ||
| 703 | this.saveGraphicAttributes(res.result.ydybsm); | ||
| 704 | } | ||
| 667 | if(res.result.gygyqlrqk!=null){ | 705 | if(res.result.gygyqlrqk!=null){ |
| 668 | this.$refs.qlrxxModule.changeGyfs(res.result.gygyqlrqk); | 706 | this.$refs.qlrxxModule.changeGyfs(res.result.gygyqlrqk); |
| 669 | } | 707 | } |
| ... | @@ -676,6 +714,8 @@ | ... | @@ -676,6 +714,8 @@ |
| 676 | }else { | 714 | }else { |
| 677 | this.disabled = true | 715 | this.disabled = true |
| 678 | } | 716 | } |
| 717 | //初始化的自然幢号,用于判断该自然幢的不动产单元号是否更改,是否更改其下户的不动产单元号 | ||
| 718 | this.initZrzh = res.result.zrzh; | ||
| 679 | this.$store.state.zrzh = res.result.zrzh; | 719 | this.$store.state.zrzh = res.result.zrzh; |
| 680 | if(this.form.fwjgList.length===0){ | 720 | if(this.form.fwjgList.length===0){ |
| 681 | this.form.fwjgList.push({ | 721 | this.form.fwjgList.push({ |
| ... | @@ -729,6 +769,27 @@ | ... | @@ -729,6 +769,27 @@ |
| 729 | e.target.style.boxSizing = 'border-box'; | 769 | e.target.style.boxSizing = 'border-box'; |
| 730 | } | 770 | } |
| 731 | }, | 771 | }, |
| 772 | inputBlurZrzh(e){ | ||
| 773 | if(this.initZrzh != null && this.initZrzh !== ''&& e.target.value !==''&& this.hcount>0){ | ||
| 774 | if(this.initZrzh !== e.target.value){ | ||
| 775 | this.booleanUpdateH =true; | ||
| 776 | this.$notify({ | ||
| 777 | title: '提示', | ||
| 778 | message: '修改自然幢号,可能会影响该自然幢下户的不动产单元号的重新生成!', | ||
| 779 | duration: 0, | ||
| 780 | type: 'warning' | ||
| 781 | }); | ||
| 782 | }else { | ||
| 783 | this.booleanUpdateH =false; | ||
| 784 | } | ||
| 785 | } | ||
| 786 | if(e.target.value!=''){ | ||
| 787 | e.target.style.border="" | ||
| 788 | }else{ | ||
| 789 | e.target.style.border="1px solid red"; | ||
| 790 | e.target.style.boxSizing = 'border-box'; | ||
| 791 | } | ||
| 792 | } | ||
| 732 | }, | 793 | }, |
| 733 | created(){ | 794 | created(){ |
| 734 | //todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来; | 795 | //todo 怎么判断进入到该页面是从新建处进来的,还是从右键宗地进来的!如果是从新建进来的就需要把虚拟宗标识码带过来; |
| ... | @@ -748,6 +809,11 @@ | ... | @@ -748,6 +809,11 @@ |
| 748 | } | 809 | } |
| 749 | }, | 810 | }, |
| 750 | mounted() { | 811 | mounted() { |
| 812 | getHCountByZrzbsm(this.$route.query.bsm).then((res)=>{ | ||
| 813 | if(res.code === 200){ | ||
| 814 | this.hcount = res.result; | ||
| 815 | } | ||
| 816 | }); | ||
| 751 | this.$nextTick(() => { | 817 | this.$nextTick(() => { |
| 752 | this.mainBoxWidth = this.$refs.mainBox.clientWidth; | 818 | this.mainBoxWidth = this.$refs.mainBox.clientWidth; |
| 753 | }) | 819 | }) |
| ... | @@ -770,6 +836,7 @@ | ... | @@ -770,6 +836,7 @@ |
| 770 | "form.zrzh":function (val) { | 836 | "form.zrzh":function (val) { |
| 771 | if (val != '') { | 837 | if (val != '') { |
| 772 | this.$refs.zrzh.style.border = ''; | 838 | this.$refs.zrzh.style.border = ''; |
| 839 | this.form.bdcdyh = val+"0000"; | ||
| 773 | } | 840 | } |
| 774 | }, | 841 | }, |
| 775 | "form.fwxzbsm":{ | 842 | "form.fwxzbsm":{ | ... | ... |
-
Please register or sign in to post a comment