update 国内标准-新增:标准编号输入示例

This commit is contained in:
赵霄
2023-09-13 14:06:41 +08:00
parent 1ab8aeae76
commit ca0d95222e
4 changed files with 14 additions and 2 deletions
@@ -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', // 请输入树状图体系
@@ -21,6 +21,7 @@ module.exports = {
newRegistrationImplementationTime: '新注册实施时间', // 新注册实施时间
applicableVehicleType: '适用车型', // 适用车型
dynamicType: '动力类型', // 动力类型
inputExample: '输入示例:',
// 国内标准
domesticStandard: {
treeSearchPlaceholder: '请输入树状图体系',
+9 -1
View File
@@ -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" />
</a-form-model-item>
</div>
</a-col>
@@ -284,6 +284,14 @@ export default {
default: () => {
return {}
}
},
// 特殊的placeholder,目前只处理了输入框,有需要再处理别的
specialPlaceholder: {
type: Object,
required: false,
default: () => {
return {}
}
}
},
data () {
@@ -14,6 +14,9 @@
<add-form ref="addForm"
:get-form-func="getFormFunc"
:get-document-info-func="getDocumentInfoFunc"
:special-placeholder="{
standard_number: `${$t('standardRegulationLibrary.inputExample')}7258`
}"
@submitFormData="submitFormData" />
</a-spin>
</div>
@@ -28,7 +31,6 @@
<script>
import AddForm from '../../../../components/customField/AddForm.vue'
import { postAction } from '@api/manage'
import {
getDomesticStandardDocumentInfo,
getDomesticStandardFormModal,