diff --git a/src/views/modules/communityService/fuwuxiangmu/cpts/edit.vue b/src/views/modules/communityService/fuwuxiangmu/cpts/edit.vue index a9d144b1..96ee1ecb 100644 --- a/src/views/modules/communityService/fuwuxiangmu/cpts/edit.vue +++ b/src/views/modules/communityService/fuwuxiangmu/cpts/edit.vue @@ -29,7 +29,7 @@ > -
{{ fmData.serviceCategory }}
+
{{ fmData.serviceCategory || "--" }}
-
{{ fmData.serviceName }}
+
{{ fmData.serviceName || "--" }}
-
{{ fmData.serviceContent }}
+
{{ fmData.serviceContent || "--" }}
-
{{ fmData.policyLevelName }}
+
{{ fmData.policyLevelName || "--" }}
-
{{ fmData.policyGround }}
+
{{ fmData.policyGround || "--" }}
-
- -
@@ -241,7 +228,7 @@ export default { methods: { async initForm() { this.getCategoryOpitons(); - if (this.formId) { + if (this.formId && this.formType != "add") { this.getInfo(); } }, @@ -255,7 +242,7 @@ export default { const { data, code, msg } = await requestPost(url, params); if (code === 0) { - this.info = { ...this.info, ...data }; + this.fmData = { ...this.fmData, ...data }; } else { this.$message.error(msg); } @@ -328,6 +315,11 @@ export default { (item) => item.url == file.response.data.url ); this.fmData.attachmentList.splice(index, 1); + } else if (file.url) { + let index = this.fmData.attachmentList.findIndex( + (item) => item.url == file.url + ); + this.fmData.attachmentList.splice(index, 1); } }, diff --git a/src/views/modules/communityService/fuwuxiangmu/index.vue b/src/views/modules/communityService/fuwuxiangmu/index.vue index 35941109..1ef96efa 100644 --- a/src/views/modules/communityService/fuwuxiangmu/index.vue +++ b/src/views/modules/communityService/fuwuxiangmu/index.vue @@ -151,7 +151,7 @@ fixed="right" label="操作" align="center" - width="100" + width="200" > @@ -196,6 +204,7 @@ -
{{ fmData.orgName }}
+
{{ fmData.orgName || '--' }}
-
{{ fmData.orgDescribe }}
+
{{ fmData.orgDescribe || '--' }}
-
{{ fmData.principalName }}
+
{{ fmData.principalName || '--' }}
-
{{ fmData.principalMobile }}
+
{{ fmData.principalMobile || '--' }}
+
{{ fmData.remark || '--' }}
@@ -254,7 +256,8 @@ export default { async initForm() { this.initMap(); this.getCategoryOpitons(); - if (this.formId) { + + if (this.formId && this.formType != "add") { this.getInfo(); } }, @@ -347,8 +350,8 @@ export default { const { data, code, msg } = await requestPost(url, params); if (code === 0) { - this.info = { - ...this.info, + this.fmData = { + ...this.fmData, ...data, serviceTypeArr: data.serviceType.split(","), }; diff --git a/src/views/modules/communityService/fuwuzuzhi/index.vue b/src/views/modules/communityService/fuwuzuzhi/index.vue index 7fe8f503..d51cc0f5 100644 --- a/src/views/modules/communityService/fuwuzuzhi/index.vue +++ b/src/views/modules/communityService/fuwuzuzhi/index.vue @@ -143,6 +143,7 @@ prop="principalMobile" align="center" label="联系方式" + width="90" :show-overflow-tooltip="true" > @@ -151,7 +152,7 @@ fixed="right" label="操作" align="center" - width="100" + width="200" > @@ -196,6 +204,7 @@