|
@@ -11,6 +11,10 @@
|
|
>
|
|
>
|
|
<el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
|
|
<el-option v-for="(item, index) in communityArr" :key="index" :label="item.communityName" :value="item.id"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
|
|
+ <template slot="pointNo">
|
|
|
|
+ <el-input v-model="formData.pointNo" :disabled="params.todo == 'edit'" @change="initDotTggle" placeholder="请输入巡更点编号"> </el-input>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
<el-select v-model="formData.buildingId" placeholder="请选择楼栋" clearable slot="buildingId" @change="buildingChange">
|
|
<el-select v-model="formData.buildingId" placeholder="请选择楼栋" clearable slot="buildingId" @change="buildingChange">
|
|
<el-option v-for="(item, index) in buildingArr" :key="index" :label="item.label" :value="item.id"></el-option>
|
|
<el-option v-for="(item, index) in buildingArr" :key="index" :label="item.label" :value="item.id"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
@@ -86,7 +90,7 @@ export default {
|
|
{
|
|
{
|
|
label: '巡更点编号',
|
|
label: '巡更点编号',
|
|
prop: 'pointNo',
|
|
prop: 'pointNo',
|
|
- input: true
|
|
|
|
|
|
+ slot: 'pointNo'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '经纬度坐标',
|
|
label: '经纬度坐标',
|
|
@@ -98,7 +102,7 @@ export default {
|
|
communityArr: [],
|
|
communityArr: [],
|
|
buildingArr: [],
|
|
buildingArr: [],
|
|
unitArr: [],
|
|
unitArr: [],
|
|
- communityLoc:[],
|
|
|
|
|
|
+ communityLoc: [],
|
|
backfill: false,
|
|
backfill: false,
|
|
mapPopUpStatus: false //地图弹出框
|
|
mapPopUpStatus: false //地图弹出框
|
|
};
|
|
};
|
|
@@ -116,7 +120,7 @@ export default {
|
|
callback: resolve,
|
|
callback: resolve,
|
|
location: this.initDot,
|
|
location: this.initDot,
|
|
data: this.formData,
|
|
data: this.formData,
|
|
- communityLoc:this.communityLoc
|
|
|
|
|
|
+ communityLoc: this.communityLoc
|
|
},
|
|
},
|
|
title: title
|
|
title: title
|
|
});
|
|
});
|
|
@@ -192,7 +196,7 @@ export default {
|
|
let thisLoc = this.communityArr.find((item) => {
|
|
let thisLoc = this.communityArr.find((item) => {
|
|
return item.id == e;
|
|
return item.id == e;
|
|
});
|
|
});
|
|
- this.communityLoc = [thisLoc.longitude,thisLoc.latitude];
|
|
|
|
|
|
+ this.communityLoc = [thisLoc.longitude, thisLoc.latitude];
|
|
this.formData.buildingId = '';
|
|
this.formData.buildingId = '';
|
|
this.formData.unit = '';
|
|
this.formData.unit = '';
|
|
this.nestedLoop(this.communityTre, 'building', 'buildingArr', e);
|
|
this.nestedLoop(this.communityTre, 'building', 'buildingArr', e);
|
|
@@ -211,7 +215,7 @@ export default {
|
|
this.communityTre = this.params.communityTre;
|
|
this.communityTre = this.params.communityTre;
|
|
this.communityArr = this.params.communityArr;
|
|
this.communityArr = this.params.communityArr;
|
|
if (this.params.todo == 'edit') {
|
|
if (this.params.todo == 'edit') {
|
|
- let newData = this.params.data;
|
|
|
|
|
|
+ let newData = JSON.parse(JSON.stringify(this.params.data));
|
|
this.formData = newData;
|
|
this.formData = newData;
|
|
this.nestedLoop(this.communityTre, 'building', 'buildingArr', newData.communityId);
|
|
this.nestedLoop(this.communityTre, 'building', 'buildingArr', newData.communityId);
|
|
this.nestedLoop(this.buildingArr, 'unit', 'unitArr', newData.buildingId);
|
|
this.nestedLoop(this.buildingArr, 'unit', 'unitArr', newData.buildingId);
|