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 @@