From 0aef6326c462d6ce291b300764bcafaf73d0cb9c Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Mon, 17 Jul 2023 20:59:35 +0800
Subject: [PATCH 1/4] =?UTF-8?q?bug#342=E5=85=AC=E5=85=B1=E6=9C=8D=E5=8A=A1?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=E6=9F=A5=E7=9C=8B=E6=B7=BB=E5=8A=A0=E6=9C=8D?=
=?UTF-8?q?=E5=8A=A1=E7=B1=BB=E5=88=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../communityService/commonDemand/addForm.vue | 3 +-
.../commonDemand/detailForm.vue | 62 ++-
.../commonDemand/editForm.vue | 403 ++++++------------
3 files changed, 175 insertions(+), 293 deletions(-)
diff --git a/src/views/modules/communityService/commonDemand/addForm.vue b/src/views/modules/communityService/commonDemand/addForm.vue
index 518564ee6..d16b276bc 100644
--- a/src/views/modules/communityService/commonDemand/addForm.vue
+++ b/src/views/modules/communityService/commonDemand/addForm.vue
@@ -832,8 +832,7 @@ export default {
},
// 如果服务方有选择第一个的话让它更新一下
handleChangeServiceTypeLevel2() {
- console.log(this.formData.serviceTypeLevel1Id);
- console.log(this.formData.serviceTypeLevel2Id);
+ console.log(this.formData.serviceOrgType);
if (this.formData.serviceOrgType) {
this.getServiceuserList(this.formData.serviceOrgType);
} else {
diff --git a/src/views/modules/communityService/commonDemand/detailForm.vue b/src/views/modules/communityService/commonDemand/detailForm.vue
index 3c02e9559..de171c2df 100644
--- a/src/views/modules/communityService/commonDemand/detailForm.vue
+++ b/src/views/modules/communityService/commonDemand/detailForm.vue
@@ -17,7 +17,10 @@
服务范围:
{{ formData.gridIdListName || "--" }}
-
+
+ 服务类别:
+ {{ serviceTypeLevel1IdText}}
+
政策依据:
{{ formData.policyTitle || "--" }}
@@ -172,6 +175,8 @@
showPersonList: false,
ruleList: [],
policyList: [],
+ serviceTypesLevel1:[],
+ serviceTypesLevel2:[]
};
},
components: { fileList },
@@ -179,6 +184,8 @@
await this.getPolicyList();
// if (this.serviceRecordId) {//详情
await this.loadInfo();
+ this.getserverType()
+ this.handleChangeServiceTypeLevel1()
this.initLoading = true;
if (
@@ -322,7 +329,42 @@
this.resetData();
this.$emit("diaDetailClose");
},
-
+ getserverType() {
+ this.$http
+ .get("/governance/commonServiceType/selectList/0")
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg);
+ } else {
+ this.serviceTypesLevel1 = res.data;
+ console.log(res.data);
+ }
+ })
+ .catch(() => {
+ return this.$message.error("网络错误");
+ });
+ },
+ // 服务类型下拉框选中事件
+ handleChangeServiceTypeLevel1() {
+ // this.formData.serviceTypeLevel2Id = "";
+ console.log(this.formData);
+ let str = this.formData.serviceTypeLevel1Id
+ this.$http
+ .get(
+ "/governance/commonServiceType/selectList/" +
+ str
+ )
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg);
+ } else {
+ this.serviceTypesLevel2 = res.data;
+ }
+ })
+ .catch(() => {
+ return this.$message.error("网络错误");
+ });
+ },
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
initMap() {
let { latitude, longitude } = this.feedbackFormData;
@@ -372,15 +414,13 @@
],
};
},
- // resiSearchTagNameText(){
- // let text = ""
- // if(this.resiSearchTagName){
- // text = this.resiSearchTagName
- // }else {
- // text = '--'
- // }
- // return text
- // },
+
+ serviceTypeLevel1IdText() {
+ const item = this.serviceTypesLevel1.find(entry => entry.id === this.formData.serviceTypeLevel1Id);
+ const item2 = this.serviceTypesLevel2.find(entry => entry.id === this.formData.serviceTypeLevel2Id);
+ return item2 ? item.name +'-' + item2.name : '--'; // 返回对应的 label,如果找不到则返回空字符串
+ }
+
},
props: {
serviceRecordId: {
diff --git a/src/views/modules/communityService/commonDemand/editForm.vue b/src/views/modules/communityService/commonDemand/editForm.vue
index a1e42694e..e0bb35c20 100644
--- a/src/views/modules/communityService/commonDemand/editForm.vue
+++ b/src/views/modules/communityService/commonDemand/editForm.vue
@@ -1,19 +1,8 @@
-
-
+
+
{{ formData.serviceName }}
-
+
{{ serviceOrgName }}
-
+
@@ -66,26 +45,23 @@
:show-all-levels="false"
@change="handleChangeScope"> -->
-
-
-
-
+
+
+ -
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
{{ this.resiSearchTagName }}
@@ -149,121 +98,44 @@
按标签查找
-
-
+
+
至
-
+
-
-
+
+
反馈内容
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
+
已完成
-
-
-
+
+
+
-
-
+
+
-
+
-
-
+
+
{{ att.name }}
@@ -372,56 +207,22 @@
取 消
- 确 定
+ 确
+ 定
-
-
+
+
-
-
+
+
@@ -429,7 +230,7 @@
-
-
+ },
+};
+
+
+
From 7f7c8d30878fcdd8c545e208806a05c4913869e7 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 18 Jul 2023 09:07:33 +0800
Subject: [PATCH 3/4] bug
---
.../modules/communityService/commonDemand/detailForm.vue | 5 +++--
src/views/modules/communityService/commonDemand/index.vue | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/views/modules/communityService/commonDemand/detailForm.vue b/src/views/modules/communityService/commonDemand/detailForm.vue
index fea3436d5..8dbfa231f 100644
--- a/src/views/modules/communityService/commonDemand/detailForm.vue
+++ b/src/views/modules/communityService/commonDemand/detailForm.vue
@@ -169,7 +169,6 @@ export default {
await this.getPolicyList();
// if (this.serviceRecordId) {//详情
await this.loadInfo();
- this.getserverType()
this.handleChangeServiceTypeLevel1()
this.initLoading = true;
@@ -182,7 +181,9 @@ export default {
});
}
},
-
+ created(){
+ this.getserverType()
+ },
methods: {
diaDestroy() { },
diff --git a/src/views/modules/communityService/commonDemand/index.vue b/src/views/modules/communityService/commonDemand/index.vue
index 6541f57f2..42348fc1b 100644
--- a/src/views/modules/communityService/commonDemand/index.vue
+++ b/src/views/modules/communityService/commonDemand/index.vue
@@ -171,7 +171,7 @@
From bd4da68f9f67af36ae46f75e1eaf8c52a9e24c57 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 18 Jul 2023 10:05:55 +0800
Subject: [PATCH 4/4] =?UTF-8?q?bug#383=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?=
=?UTF-8?q?,=E6=88=BF=E5=B1=8B=E7=AE=A1=E7=90=86=E5=9C=B0=E5=9B=BE?=
=?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 2 +-
.../scss/modules/management/detail-main.scss | 6 ++---
.../scss/modules/management/edit-main.scss | 2 ++
.../modules/base/community/buildForm.vue | 10 ++++++--
.../modules/base/community/buildTable.vue | 3 +++
.../modules/base/community/community.vue | 3 +++
.../modules/base/community/communityForm.vue | 11 ++++-----
.../modules/base/community/communityTable.vue | 4 ++++
.../modules/base/community/roomDetail.vue | 23 ++++++++++---------
.../modules/base/community/roomTable.vue | 4 ++++
10 files changed, 45 insertions(+), 23 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 26f72c928..fa8c1ec7e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -155,7 +155,7 @@ export default {
position: relative;
max-height: 83vh;
box-sizing: border-box;
- padding: 0 0 16px !important;
+ padding: 0 0 16px ;
.dialog-h-content {
max-height: calc(83vh - 80px);
box-sizing: border-box;
diff --git a/src/assets/scss/modules/management/detail-main.scss b/src/assets/scss/modules/management/detail-main.scss
index cf7cc4fd6..9da31f665 100644
--- a/src/assets/scss/modules/management/detail-main.scss
+++ b/src/assets/scss/modules/management/detail-main.scss
@@ -104,11 +104,11 @@
.m-detail-btn{
- margin-top:30px;
- margin-right:16px;
- // margin-bottom:20px;
display: flex;
justify-content: flex-end;
+ padding-right: 16px;
+ height: 50px;
+ align-items: center;
.item_btn {
font-size: 14px;
diff --git a/src/assets/scss/modules/management/edit-main.scss b/src/assets/scss/modules/management/edit-main.scss
index ad12366ec..79904ea6c 100644
--- a/src/assets/scss/modules/management/edit-main.scss
+++ b/src/assets/scss/modules/management/edit-main.scss
@@ -43,6 +43,8 @@
display: flex;
justify-content: flex-end;
padding-right: 16px;
+ height: 50px;
+ align-items: center;
}
//取消按钮
::v-deep .el-button--default {
diff --git a/src/views/modules/base/community/buildForm.vue b/src/views/modules/base/community/buildForm.vue
index e0f733997..ee695991a 100644
--- a/src/views/modules/base/community/buildForm.vue
+++ b/src/views/modules/base/community/buildForm.vue
@@ -163,10 +163,16 @@ export default {
this.dataForm.longitude = longitude
}
this.$nextTick(() => {
- this.initMap(this.dataForm.latitude||latitude, this.dataForm.longitude||longitude);
+ const latitudeParam = this.dataForm.latitude !== undefined && this.dataForm.latitude != 0
+ ? this.dataForm.latitude
+ : latitude;
+ const longitudeParam = this.dataForm.longitude !== undefined && this.dataForm.longitude != 0
+ ? this.dataForm.longitude
+ : longitude;
+ this.initMap(latitudeParam, longitudeParam);
+
})
},
-
async handleComfirm() {
this.btnDisable = true
setTimeout(() => {
diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue
index 2d511101a..b038502e5 100644
--- a/src/views/modules/base/community/buildTable.vue
+++ b/src/views/modules/base/community/buildTable.vue
@@ -991,4 +991,7 @@ export default {
padding-left: 0px;
padding-right: 0px;
}
+::v-deep .el-dialog__body{
+ padding: 0;
+ }
diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue
index da2f0835e..3d68a2f7f 100644
--- a/src/views/modules/base/community/community.vue
+++ b/src/views/modules/base/community/community.vue
@@ -1113,4 +1113,7 @@ export default {
// flex: 1;
width: calc(100% - 300px);
}
+::v-deep .el-dialog__body{
+ padding: 0;
+ }
diff --git a/src/views/modules/base/community/communityForm.vue b/src/views/modules/base/community/communityForm.vue
index d8eee2ba3..63e963450 100644
--- a/src/views/modules/base/community/communityForm.vue
+++ b/src/views/modules/base/community/communityForm.vue
@@ -279,12 +279,12 @@ export default {
this.dataForm.latitude = latitude
this.dataForm.longitude = longitude
}
- if (!map) {
+ // 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);
- }
+ // } else {
+ // map.setCenter(this.dataForm.latitude, this.dataForm.longitude);
+ // map.setMarker(this.dataForm.latitude, this.dataForm.longitude);
+ // }
await this.loadAgency()
await this.loadGrid()
await this.loadProperty()
@@ -294,7 +294,6 @@ export default {
},
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
initMap (latitude, longitude) {
-
map = new daiMap(
document.getElementById("app_community"),
{ latitude, longitude },
diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue
index 5b798401a..2f7661ee0 100644
--- a/src/views/modules/base/community/communityTable.vue
+++ b/src/views/modules/base/community/communityTable.vue
@@ -1372,4 +1372,8 @@ export default {
.el-message.is-closable .el-message__content {
line-height: 20px;
}
+
+::v-deep .el-dialog__body{
+ padding: 0;
+ }
diff --git a/src/views/modules/base/community/roomDetail.vue b/src/views/modules/base/community/roomDetail.vue
index a6b8bcada..dac59ed75 100644
--- a/src/views/modules/base/community/roomDetail.vue
+++ b/src/views/modules/base/community/roomDetail.vue
@@ -42,11 +42,11 @@