diff --git a/src/views/modules/base/community/buildForm.vue b/src/views/modules/base/community/buildForm.vue
index 915c47272..36ccb1f5e 100644
--- a/src/views/modules/base/community/buildForm.vue
+++ b/src/views/modules/base/community/buildForm.vue
@@ -2,46 +2,24 @@
-
-
+
+
{{ agencyObj.agencyName }}—{{ agencyObj.gridName }}—{{ agencyObj.label }}
-
-
+
+
-
-
+
+
- 生成
+ 生成
-
+
商品房
@@ -57,103 +35,55 @@
v-model="dataForm.sort"
label="排序">
-->
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
-
+
-
+
- 取 消
- 保 存
+ 取 消
+ 保
+ 存
@@ -169,7 +99,7 @@ var markers
var infoWindowList
let loading // 加载动画
export default {
- data () {
+ data() {
return {
formType: 'add', //表单操作类型 add新增,edit编辑,detail详情
searchOptions: [],
@@ -208,12 +138,12 @@ export default {
}
},
components: {},
- mounted () {
+ mounted() {
},
methods: {
- async initForm (type, row, agencyObj) {
+ async initForm(type, row, agencyObj) {
this.$refs.ref_form.resetFields();
let { latitude, longitude } = this.$store.state.user;
this.agencyObj = agencyObj
@@ -233,16 +163,11 @@ export default {
this.dataForm.longitude = longitude
}
this.$nextTick(() => {
- if (!map) {
- this.initMap(this.dataForm.latitude, this.dataForm.longitude);
- } else {
- map.setCenter(this.dataForm.latitude, this.dataForm.longitude);
- map.setMarker(this.dataForm.latitude, this.dataForm.longitude);
- }
+ this.initMap(this.dataForm.latitude, this.dataForm.longitude);
})
},
- async handleComfirm () {
+ async handleComfirm() {
this.btnDisable = true
setTimeout(() => {
this.btnDisable = false
@@ -258,19 +183,16 @@ export default {
})
},
- async handleCode () {
+ async handleCode() {
const { data, code, msg } = await requestPost(
"/actual/base/communityBuilding/getBuildingCoding/" + this.dataForm.neighborHoodId);
- console.log('data----', data)
- console.log('code----', code)
- console.log('msg----', msg)
if (msg == "success" && code == 0) {
this.dataForm.coding = data.coding
this.dataForm.sysCoding = data.sysCoding
}
},
- async addBuild () {
+ async addBuild() {
if (this.dataForm.buildingLeaderMobile) {
const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //联系电话
if (this.dataForm.buildingLeaderMobile && regPhone.test(this.dataForm.buildingLeaderMobile) === false) {
@@ -288,7 +210,6 @@ export default {
url = '/actual/base/communityBuilding/saveCommunityBuilding'
} else {
url = '/actual/base/communityBuilding/updateCommunityBuilding'
-
this.dataForm.buildingId = this.buildingId
}
@@ -310,14 +231,13 @@ export default {
},
- handleCancle () {
+ handleCancle() {
this.resetData()
this.$emit('dialogCancle')
},
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
- initMap (latitude, longitude) {
-
+ initMap(latitude, longitude) {
map = new daiMap(
document.getElementById("app_build"),
{ latitude, longitude },
@@ -339,7 +259,7 @@ export default {
},
- async handleMoveCenter () {
+ async handleMoveCenter() {
//修改地图中心点
const { lat, lng } = map.getCenter();
this.dataForm.latitude = lat;
@@ -355,7 +275,7 @@ export default {
}
},
- async remoteMethod (query) {
+ async remoteMethod(query) {
if (query !== '') {
this.loading = true;
@@ -386,7 +306,7 @@ export default {
}
},
- handleClickKey (index) {
+ handleClickKey(index) {
let selPosition = this.resultList[index]
let lonlat = selPosition.lonlat.split(" ")
map.setCenter(lonlat[1], lonlat[0]);
@@ -397,7 +317,7 @@ export default {
},
- resetData () {
+ resetData() {
this.searchValue = ''
this.searchOptions = []
this.resultList = []
@@ -426,7 +346,7 @@ export default {
}
},
// 开启加载动画
- startLoading () {
+ startLoading() {
loading = Loading.service({
lock: true, // 是否锁定
text: '正在加载……', // 加载中需要显示的文字
@@ -434,7 +354,7 @@ export default {
})
},
// 结束加载动画
- endLoading () {
+ endLoading() {
// clearTimeout(timer);
if (loading) {
loading.close()
@@ -442,7 +362,7 @@ export default {
}
},
computed: {
- dataRule () {
+ dataRule() {
return {
buildingName: [
{ required: true, message: '楼栋名称不能为空', trigger: 'blur' },