From c4ad48a67df270711bc49b3d0683ef085d72ed3b Mon Sep 17 00:00:00 2001 From: monkeyhouyi Date: Thu, 19 Sep 2024 17:23:26 +0800 Subject: [PATCH] 新增应用,网页添加链接字段url --- src/components/CompanyForm/index.vue | 12 ++++++------ src/components/InfoForm/index.vue | 37 ++++++++++++++++++++++++++++++------- src/mixins/info.js | 1 + 3 files changed, 37 insertions(+), 13 deletions(-) diff --git a/src/components/CompanyForm/index.vue b/src/components/CompanyForm/index.vue index 95169f4..111a070 100644 --- a/src/components/CompanyForm/index.vue +++ b/src/components/CompanyForm/index.vue @@ -32,8 +32,8 @@ - - + @@ -50,13 +50,13 @@ - + @@ -77,8 +77,8 @@ - - + + {{ v.fullName }} diff --git a/src/components/InfoForm/index.vue b/src/components/InfoForm/index.vue index 800f916..0874ee6 100644 --- a/src/components/InfoForm/index.vue +++ b/src/components/InfoForm/index.vue @@ -132,6 +132,16 @@ + + + + + + - + {{ @@ -288,7 +298,7 @@ - + @@ -361,6 +371,7 @@ export default { MAU: '', followerCount: 0, externalAssistanceId: '', + url: '', }, infoRules: { systemName: { @@ -442,9 +453,21 @@ export default { async companyChange(val) { // 公司信息 let { data } = await getCompanyInfoById(val); - if(!data) return; - this.companyInfo = data; - this.isShowCompanyInfo = true; + if(!data) { + this.companyInfo = {}; + this.isShowCompanyInfo = false; + this.infoForm.officeAddress = ''; + this.infoForm.principalName = ''; + this.infoForm.principalPhone = ''; + this.infoForm.areaId = ''; + } else { + this.companyInfo = data; + this.isShowCompanyInfo = true; + this.infoForm.officeAddress = data.address; + this.infoForm.principalName = data.contactUser; + this.infoForm.principalPhone = data.contactPhone; + this.infoForm.areaId = data.areaId; + }; }, // 文件上传-------------------- diff --git a/src/mixins/info.js b/src/mixins/info.js index 0c7f1cd..5487b57 100644 --- a/src/mixins/info.js +++ b/src/mixins/info.js @@ -37,6 +37,7 @@ export default { !list && (list = await this.$store.dispatch('getTypeListByCode', 'stateType')); this.stateOptions = list; }, + // 外协 async initCommunicationOutOptions() { let list = this.$store.state.meta.externalAssistanceList; !list && (list = await this.$store.dispatch("getTypeListByCode", "externalAssistance")); -- libgit2 0.21.4