|
|
@ -58,7 +58,7 @@ |
|
|
|
label-width="150px"> |
|
|
|
<el-input-number class="item_width_1" |
|
|
|
v-model="dataForm.totalFloorNum" |
|
|
|
:min="1" |
|
|
|
:min="0" |
|
|
|
label="层数"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="户数" |
|
|
@ -67,7 +67,7 @@ |
|
|
|
label-width="150px"> |
|
|
|
<el-input-number class="item_width_1" |
|
|
|
v-model="dataForm.totalHouseNum" |
|
|
|
:min="1" |
|
|
|
:min="0" |
|
|
|
label="户数"></el-input-number> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
@ -75,31 +75,35 @@ |
|
|
|
prop="longitude" |
|
|
|
label-width="150px" |
|
|
|
style="display: block"> |
|
|
|
<el-input class="item_width_4" |
|
|
|
maxlength="50" |
|
|
|
placeholder="请输入关键字" |
|
|
|
v-model="keyWords"> |
|
|
|
</el-input> |
|
|
|
<el-button style="margin-left: 10px" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
@click="handleSearchMap">查询</el-button> |
|
|
|
<div id="app" |
|
|
|
class="div_map"></div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<span>经度</span> |
|
|
|
<el-input class="item_width_3" |
|
|
|
maxlength="50" |
|
|
|
placeholder="请输入经度" |
|
|
|
v-model="dataForm.longitude"> |
|
|
|
</el-input> |
|
|
|
<span style="margin-left: 20px">纬度</span> |
|
|
|
<el-input class="item_width_3" |
|
|
|
|
|
|
|
<div style="width:500px"> |
|
|
|
<el-input class="item_width_4" |
|
|
|
maxlength="50" |
|
|
|
placeholder="请输入纬度" |
|
|
|
v-model="dataForm.latitude"> |
|
|
|
placeholder="请输入关键字" |
|
|
|
v-model="keyWords"> |
|
|
|
</el-input> |
|
|
|
<el-button style="margin-left: 10px" |
|
|
|
type="primary" |
|
|
|
size="small" |
|
|
|
@click="handleSearchMap">查询</el-button> |
|
|
|
<div id="app" |
|
|
|
class="div_map"></div> |
|
|
|
<div style="margin-top: 10px"> |
|
|
|
<span>经度</span> |
|
|
|
<el-input class="item_width_3" |
|
|
|
maxlength="50" |
|
|
|
placeholder="请输入经度" |
|
|
|
v-model="dataForm.longitude"> |
|
|
|
</el-input> |
|
|
|
<span style="margin-left: 20px">纬度</span> |
|
|
|
<el-input class="item_width_3" |
|
|
|
maxlength="50" |
|
|
|
placeholder="请输入纬度" |
|
|
|
v-model="dataForm.latitude"> |
|
|
|
</el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
@ -137,7 +141,7 @@ export default { |
|
|
|
neighborHoodId: '',//所属小区id |
|
|
|
buildingName: '',//房屋名称 |
|
|
|
// sort: 0,//排序 |
|
|
|
totalUnitNum: 0,//单元数 |
|
|
|
totalUnitNum: 1,//单元数 |
|
|
|
totalFloorNum: 0,//层数 |
|
|
|
totalHouseNum: 0,//户数 |
|
|
|
type: '',//房屋类型 |
|
|
@ -158,7 +162,7 @@ export default { |
|
|
|
|
|
|
|
methods: { |
|
|
|
async initForm (type, row, agencyObj) { |
|
|
|
|
|
|
|
this.$refs.ref_form.resetFields(); |
|
|
|
this.agencyObj = agencyObj |
|
|
|
this.dataForm.agencyId = agencyObj.agencyId |
|
|
|
this.dataForm.gridId = agencyObj.gridId |
|
|
@ -315,7 +319,7 @@ export default { |
|
|
|
neighborHoodId: '',//所属小区id |
|
|
|
buildingName: '',//房屋名称 |
|
|
|
// sort: 0,//排序 |
|
|
|
totalUnitNum: 0,//单元数 |
|
|
|
totalUnitNum: 1,//单元数 |
|
|
|
totalFloorNum: 0,//层数 |
|
|
|
totalHouseNum: 0,//户数 |
|
|
|
type: '',//房屋类型 |
|
|
@ -347,8 +351,8 @@ export default { |
|
|
|
{ required: true, message: '楼栋名称不能为空', trigger: 'blur' }, |
|
|
|
{ |
|
|
|
min: 1, |
|
|
|
max: 50, |
|
|
|
message: '小区名称长度在 1 到 50个字符', |
|
|
|
max: 10, |
|
|
|
message: '小区名称长度在 1 到 10个字符', |
|
|
|
trigger: 'blur' |
|
|
|
} |
|
|
|
], |
|
|
@ -358,15 +362,15 @@ export default { |
|
|
|
totalUnitNum: [ |
|
|
|
{ required: true, message: '单元数不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
totalFloorNum: [ |
|
|
|
{ required: true, message: '层数不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
totalHouseNum: [ |
|
|
|
{ required: true, message: '户数不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
longitude: [ |
|
|
|
{ required: true, message: '坐标不能为空', trigger: 'blur' } |
|
|
|
], |
|
|
|
// totalFloorNum: [ |
|
|
|
// { required: true, message: '层数不能为空', trigger: 'blur' } |
|
|
|
// ], |
|
|
|
// totalHouseNum: [ |
|
|
|
// { required: true, message: '户数不能为空', trigger: 'blur' } |
|
|
|
// ], |
|
|
|
// longitude: [ |
|
|
|
// { required: true, message: '坐标不能为空', trigger: 'blur' } |
|
|
|
// ], |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -374,7 +378,7 @@ export default { |
|
|
|
props: {} |
|
|
|
} |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.item_width_1 { |
|
|
|
width: 500px; |
|
|
|
} |
|
|
@ -408,3 +412,9 @@ export default { |
|
|
|
margin-top: 30px; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
<style> |
|
|
|
.el-dialog__body { |
|
|
|
padding: 0 10px 20px !important; |
|
|
|
} |
|
|
|
</style> |