From 9d9443a6d536e4ac5e6bd2637cc24f785e50ca2e Mon Sep 17 00:00:00 2001 From: danshihao Date: Mon, 4 Mar 2024 10:55:09 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=A0=87=E5=87=86=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E5=BA=93=EF=BC=9A=E9=80=82=E7=94=A8=E7=B1=BB=E5=9E=8B=E3=80=81?= =?UTF-8?q?=E5=8A=A8=E5=8A=9B=E7=B1=BB=E5=9E=8B=E5=AD=97=E5=85=B8=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E5=8A=A0=E5=85=A8=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customField/AddForm.vue | 9 +++++++++ .../domesticStandard/modules/DomesticStandardModal.vue | 6 ++++++ .../overseasStandard/modules/OverseasStandardModal.vue | 6 ++++++ 3 files changed, 21 insertions(+) diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index b078874f..eb14d0cc 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -102,6 +102,7 @@ :type="'select'" :triggerChange="false" :options="optionsData[item.dbFieldName]" + :openSelectedAll="openSelectedAllFieldList.includes(item.dbFieldName)" :dictCode="item.fieldHref ? null : item.dictField" /> { + return [] + } + }, // 需要隐藏的字段 hiddenFieldList: { type: Array, diff --git a/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue b/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue index 218df200..3320a83d 100644 --- a/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue +++ b/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue @@ -19,6 +19,7 @@ :special-placeholder="specialPlaceholder" :default-value="defaultValue" :disabled-field-list="disabledField" + :open-selected-all-field-list="openSelectedAllFieldList" :exclude-standard-fields="excludeStandardFields" domestic-special-check :flag-by-field="{associated_foreign_standards: StandardSource.OVERSEAS.value}" @@ -65,6 +66,11 @@ export default { defaultValue: { year_number: new Date().getFullYear() + '' }, + // 数据字典多选,需要全选功能的字段 + openSelectedAllFieldList: [ + 'applicable_vehicle', // 适用车型 + 'dynamic_type' // 动力类型 + ], isEdit: null // 是否编辑 } }, diff --git a/src/views/standardRegulationLibrary/overseasStandard/modules/OverseasStandardModal.vue b/src/views/standardRegulationLibrary/overseasStandard/modules/OverseasStandardModal.vue index f43c6a04..b69c3166 100644 --- a/src/views/standardRegulationLibrary/overseasStandard/modules/OverseasStandardModal.vue +++ b/src/views/standardRegulationLibrary/overseasStandard/modules/OverseasStandardModal.vue @@ -19,6 +19,7 @@ :special-placeholder="specialPlaceholder" :default-value="defaultValue" :disabled-field-list="disabledField" + :open-selected-all-field-list="openSelectedAllFieldList" :exclude-standard-fields="excludeStandardFields" @submitFormData="submitFormData" /> @@ -63,6 +64,11 @@ export default { defaultValue: { year_number: new Date().getFullYear() + '' }, + // 数据字典多选,需要全选功能的字段 + openSelectedAllFieldList: [ + 'applicable_vehicle', // 适用车型 + 'dynamic_type' // 动力类型 + ], isEdit: null // 是否编辑 } },