2aac5d3d by 杨威
2 parents e8a7d7e8 f142be6b
...@@ -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 = {
......
...@@ -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 //权利性质数据传给子组件
...@@ -790,36 +793,7 @@ ...@@ -790,36 +793,7 @@
790 vm.loadingHide(); 793 vm.loadingHide();
791 console.log(error); 794 console.log(error);
792 }); 795 });
793 //保存到空间库里面 796 this.saveZdGraphicAtrributes();
794 var self = this;
795 for (var key in this.geoAttributes) {
796 if (key == "BSM") {
797 self.geoAttributes[key] = this.$store.state.zdbsm
798 } else if (key == 'QLSDFS') {
799 var qlsdfsList = self.$store.state.qlsdfsList, value = self.formData.qlsdfs;
800 var qlsdfs = qlsdfsList.filter(item => {
801 return item.bsm == value;
802 })
803 self.geoAttributes[key] = qlsdfs[0] ? qlsdfs[0].mc : "";
804 } else if(key == 'QLR'){
805 var qlrTableData = this.$refs.qlrxxModule.tableData;
806 if(qlrTableData.length > 0){
807 for(var i = 0;i < qlrTableData.length;i++){
808 if(i = 0){
809 self.geoAttributes[key] = qlrTableData[i].qlrmc;
810 }else{
811 self.geoAttributes[key] += ','+ qlrTableData[i].qlrmc;
812 }
813 }
814 }
815 } else {
816 var formKay = key.toLowerCase();
817 self.geoAttributes[key] = self.formData[formKay];
818 }
819 }
820 self.updAttributes(this.$store.state.zdbsm, 'zd', this.geoAttributes, function (res) {
821
822 });
823 } 797 }
824 } 798 }
825 } else { 799 } else {
...@@ -832,6 +806,43 @@ ...@@ -832,6 +806,43 @@
832 }) 806 })
833 807
834 }, 808 },
809 //保存空间图形
810 saveZdGraphicAtrributes(ybsm){
811 //保存到空间库里面
812 var self = this;
813 /* var ybsm = null;
814 if(this.ydybsm){
815 ybsm = this.ydybsm;
816 } */
817 for (var key in this.geoAttributes) {
818 if (key == "BSM") {
819 self.geoAttributes[key] = this.$store.state.zdbsm
820 } else if (key == 'QLSDFS') {
821 var qlsdfsList = self.$store.state.qlsdfsList, value = self.formData.qlsdfs;
822 var qlsdfs = qlsdfsList.filter(item => {
823 return item.bsm == value;
824 })
825 self.geoAttributes[key] = qlsdfs[0] ? qlsdfs[0].mc : "";
826 } else if(key == 'QLR'){
827 var qlrTableData = this.$refs.qlrxxModule.tableData;
828 if(qlrTableData.length > 0){
829 for(var i = 0;i < qlrTableData.length;i++){
830 if(i = 0){
831 self.geoAttributes[key] = qlrTableData[i].qlrmc;
832 }else{
833 self.geoAttributes[key] += ','+ qlrTableData[i].qlrmc;
834 }
835 }
836 }
837 } else {
838 var formKay = key.toLowerCase();
839 self.geoAttributes[key] = self.formData[formKay];
840 }
841 }
842 self.updAttributes(this.$store.state.zdbsm, 'zd', this.geoAttributes, function (res) {
843
844 },ybsm);
845 },
835 inputBlur(e) { 846 inputBlur(e) {
836 if (e.target.value != '') { 847 if (e.target.value != '') {
837 e.target.style.border = "" 848 e.target.style.border = ""
......
...@@ -28,45 +28,67 @@ ...@@ -28,45 +28,67 @@
28 <!-- <td colspan="4" >--> 28 <!-- <td colspan="4" >-->
29 <!-- <el-input v-model="form.ydybsm" disabled></el-input>--> 29 <!-- <el-input v-model="form.ydybsm" disabled></el-input>-->
30 <!-- </td>--> 30 <!-- </td>-->
31 <td colspan="2" align="center" > 31 <td colspan="2" align="center" >逻辑幢号</td>
32 <span>坐落<i class="requisite">*</i></span> 32 <td colspan="4" >
33 </td> 33 <el-input v-model="form.ljzh" disabled></el-input>
34 <td colspan="4" >
35 <input class="formInput" v-model="form.zl" ref="zl" @blur="inputBlur($event)" :disabled="disableFlag" />
36 </td> 34 </td>
35
37 </tr> 36 </tr>
38 37
39 <tr height="30"> 38 <tr height="30">
40 <td colspan="2" align="center" >逻辑幢号</td> 39 <td colspan="2" align="center" >房屋性质<i class="requisite">*</i></td>
41 <td colspan="4" > 40 <td colspan="4" >
42 <el-input v-model="form.ljzh" disabled></el-input> 41 <el-select v-model="form.fwxzbsm" placeholder="请选择" :disabled="disableFlag" ref="fwxzbsm">
42 <el-option
43 v-for="item in $store.state.fwxzOptions"
44 :key="item.bsm"
45 :label="item.mc"
46 :value="item.bsm">
47 </el-option>
48 </el-select>
43 </td> 49 </td>
44 <td colspan="2" align="center" >层号</td> 50
51 <td colspan="2" align="center" >所在单元</td>
45 <td colspan="4" > 52 <td colspan="4" >
46 <el-input v-model="form.ch" :disabled="disableFlag"></el-input> 53 <el-input v-model="form.zdymc" disabled></el-input>
47 </td> 54 </td>
55
48 </tr> 56 </tr>
49 57
50 <tr height="30"> 58 <tr height="30">
51 <td colspan="2" align="center" >实际层数</td> 59 <td colspan="2" align="center" >层号</td>
52 <td colspan="4" > 60 <td colspan="4" >
53 <el-input v-model="form.sjcs" :disabled="disableFlag"></el-input> 61 <el-input v-model="form.ch" :disabled="disableFlag"></el-input>
54 </td> 62 </td>
63
55 <td colspan="2" align="center" >实际层</td> 64 <td colspan="2" align="center" >实际层</td>
56 <td colspan="4" > 65 <td colspan="4" >
57 <el-input v-model="form.sjc" :disabled="disableFlag"></el-input> 66 <el-input v-model="form.sjc" disabled></el-input>
58 </td> 67 </td>
68
59 </tr> 69 </tr>
60 70
61 <tr height="30"> 71 <tr height="30">
62 <td colspan="2" align="center" >所在单元</td>
63 <td colspan="4" >
64 <el-input v-model="form.zdymc" :disabled="disableFlag"></el-input>
65 </td>
66 <td colspan="2" align="center" >房屋编号</td> 72 <td colspan="2" align="center" >房屋编号</td>
67 <td colspan="4" > 73 <td colspan="4" >
68 <el-input v-model="form.fwbh" :disabled="disableFlag"></el-input> 74 <el-input v-model="form.fwbh" :disabled="disableFlag"></el-input>
69 </td> 75 </td>
76 <td colspan="2" align="center" >实际层数</td>
77 <td colspan="4" >
78 <el-input v-model="form.sjcs" disabled></el-input>
79 </td>
80
81 </tr>
82 <tr height="30">
83 <td colspan="2" align="center" >室号</td>
84 <td colspan="4" >
85 <el-input v-model="form.shbw" :disabled="disableFlag"></el-input>
86 </td>
87 <td colspan="2" align="center" >户号</td>
88 <td colspan="4" >
89 <el-input v-model="form.hh" disabled></el-input>
90 </td>
91
70 </tr> 92 </tr>
71 93
72 <tr height="30"> 94 <tr height="30">
...@@ -81,30 +103,16 @@ ...@@ -81,30 +103,16 @@
81 </el-option> 103 </el-option>
82 </el-select> 104 </el-select>
83 </td> 105 </td>
84 <td colspan="2" align="center" >房屋性质<i class="requisite">*</i></td>
85 <td colspan="4" >
86 <el-select v-model="form.fwxzbsm" placeholder="请选择" :disabled="disableFlag" ref="fwxzbsm">
87 <el-option
88 v-for="item in $store.state.fwxzOptions"
89 :key="item.bsm"
90 :label="item.mc"
91 :value="item.bsm">
92 </el-option>
93 </el-select>
94 </td>
95 </tr>
96 106
97 <tr height="30"> 107 <td colspan="2" align="center" >名义层</td>
98 <td colspan="2" align="center" >户号</td>
99 <td colspan="4" >
100 <el-input v-model="form.hh" :disabled="disableFlag"></el-input>
101 </td>
102 <td colspan="2" align="center" >室号</td>
103 <td colspan="4" > 108 <td colspan="4" >
104 <el-input v-model="form.shbw" :disabled="disableFlag"></el-input> 109 <el-input v-model="form.myc" disabled></el-input>
105 </td> 110 </td>
111
112
106 </tr> 113 </tr>
107 114
115
108 <tr height="30"> 116 <tr height="30">
109 <td colspan="2" align="center" >户型</td> 117 <td colspan="2" align="center" >户型</td>
110 <td colspan="4" > 118 <td colspan="4" >
...@@ -157,52 +165,52 @@ ...@@ -157,52 +165,52 @@
157 165
158 <tr height="30"> 166 <tr height="30">
159 <td colspan="2" rowspan="6" align="center" >预测</td> 167 <td colspan="2" rowspan="6" align="center" >预测</td>
160 <td colspan="2" align="center" >建筑面积(㎡) </td> 168 <td colspan="2" align="center" >建筑面积(㎡)</td>
161 <td colspan="2" align="center" > 169 <td colspan="2" align="center" >
162 <el-input v-model="form.ycjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input> 170 <el-input v-model="form.ycjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input>
163 </td> 171 </td>
164 <td colspan="2" rowspan="6" align="center" >实测</td> 172 <td colspan="2" rowspan="6" align="center" >实测</td>
165 <td colspan="2" align="center" >建筑面积(㎡)</td> 173 <td colspan="2" align="center" >建筑面积(㎡)</td>
166 <td colspan="2" align="center" > 174 <td colspan="2" align="center" >
167 <el-input v-model="form.scjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input> 175 <el-input v-model="form.scjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input>
168 </td> 176 </td>
169 </tr> 177 </tr>
170 <tr height="30"> 178 <tr height="30">
171 <td colspan="2" align="center" >套内建筑面积(㎡))</td> 179 <td colspan="2" align="center" >套内建筑面积(㎡)</td>
172 <td colspan="2" align="center" > 180 <td colspan="2" align="center" >
173 <el-input v-model="form.yctnjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input> 181 <el-input v-model="form.yctnjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input>
174 </td> 182 </td>
175 <td colspan="2" align="center" >套内建筑面积(㎡)</td> 183 <td colspan="2" align="center" >套内建筑面积(㎡)</td>
176 <td colspan="2" align="center" > 184 <td colspan="2" align="center" >
177 <el-input v-model="form.sctnjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input> 185 <el-input v-model="form.sctnjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input>
178 </td> 186 </td>
179 </tr> 187 </tr>
180 <tr height="30"> 188 <tr height="30">
181 <td colspan="2" align="center" >分摊建筑面积(㎡)</td> 189 <td colspan="2" align="center" >分摊建筑面积(㎡)</td>
182 <td colspan="2" align="center" > 190 <td colspan="2" align="center" >
183 <el-input v-model="form.ycftjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input> 191 <el-input v-model="form.ycftjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input>
184 </td> 192 </td>
185 <td colspan="2" align="center" >分摊建筑面积(㎡)</td> 193 <td colspan="2" align="center" >分摊建筑面积(㎡)</td>
186 <td colspan="2" align="center" > 194 <td colspan="2" align="center" >
187 <el-input v-model="form.scftjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input> 195 <el-input v-model="form.scftjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input>
188 </td> 196 </td>
189 </tr> 197 </tr>
190 <tr height="30"> 198 <tr height="30">
191 <td colspan="2" align="center" >地下部分建筑面积(㎡)</td> 199 <td colspan="2" align="center" >地下部分建筑面积(㎡)</td>
192 <td colspan="2" align="center" > 200 <td colspan="2" align="center" >
193 <el-input v-model="form.ycdxbfjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input> 201 <el-input v-model="form.ycdxbfjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input>
194 </td> 202 </td>
195 <td colspan="2" align="center" >地下部分建筑面积(㎡)</td> 203 <td colspan="2" align="center" >地下部分建筑面积(㎡)</td>
196 <td colspan="2" align="center" > 204 <td colspan="2" align="center" >
197 <el-input v-model="form.scdxbfjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input> 205 <el-input v-model="form.scdxbfjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input>
198 </td> 206 </td>
199 </tr> 207 </tr>
200 <tr height="30"> 208 <tr height="30">
201 <td colspan="2" align="center" >其它建筑面积(㎡)</td> 209 <td colspan="2" align="center" >其它建筑面积(㎡)</td>
202 <td colspan="2" align="center" > 210 <td colspan="2" align="center" >
203 <el-input v-model="form.ycqtjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input> 211 <el-input v-model="form.ycqtjzmj" type="number" :disabled="form.scyclx==='1'||disableFlag"></el-input>
204 </td> 212 </td>
205 <td colspan="2" align="center" >其它建筑面积(㎡)</td> 213 <td colspan="2" align="center" >其它建筑面积(㎡)</td>
206 <td colspan="2" align="center" > 214 <td colspan="2" align="center" >
207 <el-input v-model="form.scqtjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input> 215 <el-input v-model="form.scqtjzmj" type="number" :disabled="form.scyclx==='0'||disableFlag"></el-input>
208 </td> 216 </td>
...@@ -217,7 +225,29 @@ ...@@ -217,7 +225,29 @@
217 <input class="formInput" v-model="form.scftxs" type="number" :disabled="form.scyclx==='0'||disableFlag" @blur="inputFtxsBlur($event)" ref="scftxs" /> 225 <input class="formInput" v-model="form.scftxs" type="number" :disabled="form.scyclx==='0'||disableFlag" @blur="inputFtxsBlur($event)" ref="scftxs" />
218 </td> 226 </td>
219 </tr> 227 </tr>
228 <tr height="30">
229 <td colspan="2" align="center" >共有土地面积(㎡)</td>
230 <td colspan="2" >
231 <el-input v-model="form.gytdmj" type="number" :disabled="disableFlag"></el-input>
232 </td>
233 <td colspan="2" align="center" >分摊土地面积(㎡)</td>
234 <td colspan="2" >
235 <el-input v-model="form.fttdmj" type="number" :disabled="disableFlag"></el-input>
236 </td>
237 <td colspan="2" align="center" >多幢独用土地面积(㎡)</td>
238 <td colspan="2" >
239 <el-input v-model="form.dytdmj" type="number" :disabled="disableFlag"></el-input>
240 </td>
241 </tr>
220 242
243 <tr>
244 <td colspan="2" align="center" >
245 <span>坐落<i class="requisite">*</i></span>
246 </td>
247 <td colspan="10" >
248 <input class="formInput" v-model="form.zl" ref="zl" @blur="inputBlur($event)" :disabled="disableFlag" />
249 </td>
250 </tr>
221 251
222 <tr height="30" v-for="(item1,index) in form.fwytList" :key="index"> 252 <tr height="30" v-for="(item1,index) in form.fwytList" :key="index">
223 <td v-if="index===0" colspan="2" :rowspan="ytTitleRowspan" align="center" id="ytTitle"> 253 <td v-if="index===0" colspan="2" :rowspan="ytTitleRowspan" align="center" id="ytTitle">
...@@ -228,10 +258,10 @@ ...@@ -228,10 +258,10 @@
228 @click="addYtInfo" 258 @click="addYtInfo"
229 >+</el-button 259 >+</el-button
230 > 260 >
231 <span>用途<i class="requisite">*</i></span> 261 <span>房屋用途<i class="requisite">*</i></span>
232 </td> 262 </td>
233 263
234 <td width="30" colspan="1" align="center" > 264 <td width="30" colspan="2" align="center" >
235 <el-button 265 <el-button
236 type="primary" 266 type="primary"
237 class="changeBtn addMinus inMinus" 267 class="changeBtn addMinus inMinus"
...@@ -240,7 +270,7 @@ ...@@ -240,7 +270,7 @@
240 > 270 >
241 规划用途 271 规划用途
242 </td> 272 </td>
243 <td width="30" colspan="4" align="center" > 273 <td width="30" colspan="2" align="center" >
244 <el-select-tree 274 <el-select-tree
245 ref="ghyt" 275 ref="ghyt"
246 v-if="show" 276 v-if="show"
...@@ -256,7 +286,7 @@ ...@@ -256,7 +286,7 @@
256 v-model="item1.fwytzdbsm" 286 v-model="item1.fwytzdbsm"
257 ></el-select-tree> 287 ></el-select-tree>
258 </td> 288 </td>
259 <td width="30" colspan="1" align="center" >用途</td> 289 <td width="30" colspan="2" align="center" >用途</td>
260 <td width="30" colspan="4" align="center" > 290 <td width="30" colspan="4" align="center" >
261 <el-select-tree 291 <el-select-tree
262 ref="yt" 292 ref="yt"
...@@ -286,10 +316,17 @@ ...@@ -286,10 +316,17 @@
286 > 316 >
287 <span>房屋结构<i class="requisite">*</i></span> 317 <span>房屋结构<i class="requisite">*</i></span>
288 </td> 318 </td>
289 <td colspan="1" align="center" > 319 <td colspan="2" align="center" >
290 <span @click="deleteFwjgInfo(index)">删除</span> 320 <el-button
321 type="primary"
322 style="margin-right: 5px"
323 class="changeBtn addMinus inMinus"
324 @click="deleteFwjgInfo(index)"
325 >-</el-button
326 >
327 <span @click="deleteFwjgInfo(index)">房屋结构</span>
291 </td> 328 </td>
292 <td colspan="9" > 329 <td colspan="8" >
293 <el-select v-model="item1.fwjgzdbsm" ref="fwjg" placeholder="请选择" :disabled="disableFlag"> 330 <el-select v-model="item1.fwjgzdbsm" ref="fwjg" placeholder="请选择" :disabled="disableFlag">
294 <el-option 331 <el-option
295 v-for="item in $store.state.jgOptions" 332 v-for="item in $store.state.jgOptions"
...@@ -301,20 +338,6 @@ ...@@ -301,20 +338,6 @@
301 </td> 338 </td>
302 </tr> 339 </tr>
303 340
304 <tr height="30">
305 <td colspan="2" align="center" >共有土地面积(㎡)</td>
306 <td colspan="2" >
307 <el-input v-model="form.gytdmj" type="number" :disabled="disableFlag"></el-input>
308 </td>
309 <td colspan="2" align="center" >分摊土地面积(㎡)</td>
310 <td colspan="2" >
311 <el-input v-model="form.fttdmj" type="number" :disabled="disableFlag"></el-input>
312 </td>
313 <td colspan="2" align="center" >多幢独用土地面积(㎡)</td>
314 <td colspan="2" >
315 <el-input v-model="form.dytdmj" type="number" :disabled="disableFlag"></el-input>
316 </td>
317 </tr>
318 341
319 342
320 <tr> 343 <tr>
......
...@@ -567,24 +567,7 @@ ...@@ -567,24 +567,7 @@
567 this.loading=false; 567 this.loading=false;
568 }) 568 })
569 this.loading=false; 569 this.loading=false;
570 570 this.saveGraphicAttributes(); }
571 //保存到空间库里面
572 var self = this;
573 for(var key in this.geoAttributes){
574 if(key == "BSM"){
575 self.geoAttributes[key] = this.bsm
576 }else if(key == 'JGRQ'){
577 var formKay = key.toLowerCase();
578 self.geoAttributes[key] = new Date(self.form[formKay]).getTime();
579 }else {
580 var formKay = key.toLowerCase();
581 self.geoAttributes[key] = self.form[formKay];
582 }
583 }
584 self.updAttributes(this.bsm,'zrz',this.geoAttributes,function (res) {
585 console.log("属性保存完成!!");
586 });
587 }
588 }else{ 571 }else{
589 this.$message({ 572 this.$message({
590 // message: item.name+'不能为空', 573 // message: item.name+'不能为空',
...@@ -594,6 +577,25 @@ ...@@ -594,6 +577,25 @@
594 } 577 }
595 }) 578 })
596 }, 579 },
580 //保存空间信息
581 saveGraphicAttributes(ybsm){
582 //保存到空间库里面
583 var self = this;
584 for(var key in this.geoAttributes){
585 if(key == "BSM"){
586 self.geoAttributes[key] = this.bsm
587 }else if(key == 'JGRQ'){
588 var formKay = key.toLowerCase();
589 self.geoAttributes[key] = new Date(self.form[formKay]).getTime();
590 }else {
591 var formKay = key.toLowerCase();
592 self.geoAttributes[key] = self.form[formKay];
593 }
594 }
595 self.updAttributes(this.bsm,'zrz',this.geoAttributes,function (res) {
596 console.log("属性保存完成!!");
597 },ybsm);
598 },
597 onSubmit(){ 599 onSubmit(){
598 let data={ 600 let data={
599 glbsm:this.bsm, 601 glbsm:this.bsm,
...@@ -664,6 +666,9 @@ ...@@ -664,6 +666,9 @@
664 getZrzDetailByBsm(data).then((res)=>{ 666 getZrzDetailByBsm(data).then((res)=>{
665 if(res.code===200){ 667 if(res.code===200){
666 this.form=res.result; 668 this.form=res.result;
669 if(res.result.ydybsm){
670 this.saveGraphicAttributes(res.result.ydybsm);
671 }
667 if(res.result.gygyqlrqk!=null){ 672 if(res.result.gygyqlrqk!=null){
668 this.$refs.qlrxxModule.changeGyfs(res.result.gygyqlrqk); 673 this.$refs.qlrxxModule.changeGyfs(res.result.gygyqlrqk);
669 } 674 }
......