From ca0d95222e0d73e247e97dcbd72e87c1d09ea6ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Wed, 13 Sep 2023 14:06:41 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=9B=BD=E5=86=85=E6=A0=87=E5=87=86-?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E6=A0=87=E5=87=86=E7=BC=96=E5=8F=B7?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/lang/standardRegulationLibrary/en-us.js | 1 + src/common/lang/standardRegulationLibrary/zh-cn.js | 1 + src/components/customField/AddForm.vue | 10 +++++++++- .../domesticStandard/modules/DomesticStandardModal.vue | 4 +++- 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/common/lang/standardRegulationLibrary/en-us.js b/src/common/lang/standardRegulationLibrary/en-us.js index 2bf986f1..791de542 100644 --- a/src/common/lang/standardRegulationLibrary/en-us.js +++ b/src/common/lang/standardRegulationLibrary/en-us.js @@ -21,6 +21,7 @@ module.exports = { newRegistrationImplementationTime: 'New registration implementation time', // 新注册实施时间 applicableVehicleType: 'Applicable vehicle type', // 适用车型 dynamicType: 'Dynamic type', // 动力类型 + inputExample: 'Input example:', // 输入示例 // 国内标准 domesticStandard: { treeSearchPlaceholder: 'Please enter the tree system', // 请输入树状图体系 diff --git a/src/common/lang/standardRegulationLibrary/zh-cn.js b/src/common/lang/standardRegulationLibrary/zh-cn.js index 7b8da59e..65139f13 100644 --- a/src/common/lang/standardRegulationLibrary/zh-cn.js +++ b/src/common/lang/standardRegulationLibrary/zh-cn.js @@ -21,6 +21,7 @@ module.exports = { newRegistrationImplementationTime: '新注册实施时间', // 新注册实施时间 applicableVehicleType: '适用车型', // 适用车型 dynamicType: '动力类型', // 动力类型 + inputExample: '输入示例:', // 国内标准 domesticStandard: { treeSearchPlaceholder: '请输入树状图体系', diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index 59163de4..86150307 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -165,7 +165,7 @@ :disabled="disabled" v-model="formInline[item.dbFieldName]" :maxLength="50" - :placeholder="$t('pleaseEnter')+item.dbFieldTxt" /> + :placeholder="specialPlaceholder[item.dbFieldName] || $t('pleaseEnter')+item.dbFieldTxt" /> @@ -284,6 +284,14 @@ export default { default: () => { return {} } + }, + // 特殊的placeholder,目前只处理了输入框,有需要再处理别的 + specialPlaceholder: { + type: Object, + required: false, + default: () => { + return {} + } } }, data () { diff --git a/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue b/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue index ee04ab2b..afc9a8ca 100644 --- a/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue +++ b/src/views/standardRegulationLibrary/domesticStandard/modules/DomesticStandardModal.vue @@ -14,6 +14,9 @@ @@ -28,7 +31,6 @@