diff --git a/src/assets/scss/modules/visual/basicInfoMain.scss b/src/assets/scss/modules/visual/basicInfoMain.scss
index 32154576..70c4e5d9 100644
--- a/src/assets/scss/modules/visual/basicInfoMain.scss
+++ b/src/assets/scss/modules/visual/basicInfoMain.scss
@@ -51,21 +51,35 @@
.div_search {
width: 100%;
height: 56px;
- background: #011168;
- border-radius: 4px;
text-align: center;
+ background-color: #011168;
+ border-radius: 4px 0 0 4px;
+ border: none;
+ box-shadow: 0 0 10px inset #1a5afd;
+ font-size: 18px;
+ font-family: PingFang SC;
+ font-weight: 400;
+ color: #ffffff;
+ opacity: 0.7;
display: flex;
- justify-content: flex-end;
-
- .icon {
+ justify-content: space-between;
+ .div_search_left {
display: flex;
- align-items: center;
- margin-left: 29px;
- margin-top: 16px;
+ justify-content: flex-start;
+ .icon {
+ display: flex;
+ align-items: center;
+ margin-left: 29px;
+
+ > img {
+ width: 24px;
+ height: 24px;
+ }
+ }
- > img {
- width: 24px;
- height: 24px;
+ > span {
+ line-height: 56px;
+ margin-left: 10px;
}
}
@@ -83,6 +97,10 @@
}
}
+ .div_search:hover {
+ cursor: pointer;
+ }
+
.div_info {
box-sizing: border-box;
width: 100%;
diff --git a/src/views/modules/base/community/buildForm.vue b/src/views/modules/base/community/buildForm.vue
index 7ae2ff1c..d144e270 100644
--- a/src/views/modules/base/community/buildForm.vue
+++ b/src/views/modules/base/community/buildForm.vue
@@ -168,13 +168,16 @@ export default {
this.dataForm.gridId = agencyObj.gridId
this.dataForm.neighborHoodId = agencyObj.id
- map.setCenter(new TMap.LatLng(agencyObj.latitude, agencyObj.longitude))
-
this.formType = type
if (row) {
this.dataForm = JSON.parse(JSON.stringify(row))
this.buildingId = this.dataForm.buildingId
this.buildType = this.dataForm.buildingTypeKey
+
+ map.setCenter(new TMap.LatLng(this.dataForm.latitude, this.dataForm.longitude))
+ this.setMarker(this.dataForm.latitude, this.dataForm.longitude)
+ } else {
+ map.setCenter(new TMap.LatLng(agencyObj.latitude, agencyObj.longitude))
}
diff --git a/src/views/modules/base/community/communityForm.vue b/src/views/modules/base/community/communityForm.vue
index c6875c5e..6dec5775 100644
--- a/src/views/modules/base/community/communityForm.vue
+++ b/src/views/modules/base/community/communityForm.vue
@@ -277,14 +277,16 @@ export default {
async initForm (type, row, agencyObj) {
this.$refs.ref_form.resetFields();
this.agencyObj = agencyObj
- // debugger
- map.setCenter(new TMap.LatLng(agencyObj.latitude, agencyObj.longitude))
this.formType = type
if (row) {
-
this.dataForm = JSON.parse(JSON.stringify(row))
this.neighborHoodId = this.dataForm.neighborHoodId
+ map.setCenter(new TMap.LatLng(this.dataForm.latitude, this.dataForm.longitude))
+ this.setMarker(this.dataForm.latitude, this.dataForm.longitude)
+
+ } else {
+ map.setCenter(new TMap.LatLng(agencyObj.latitude, agencyObj.longitude))
}
diff --git a/src/views/modules/visual/basicinfo/basicInfoCommunity.vue b/src/views/modules/visual/basicinfo/basicInfoCommunity.vue
index 78b8f751..50f54367 100644
--- a/src/views/modules/visual/basicinfo/basicInfoCommunity.vue
+++ b/src/views/modules/visual/basicinfo/basicInfoCommunity.vue
@@ -11,11 +11,11 @@