[update] 单行文本去掉前后空格
This commit is contained in:
@@ -74,8 +74,9 @@
|
|||||||
<a-input v-else-if="item.fieldShowType === FieldType.TEXT_BOX.value"
|
<a-input v-else-if="item.fieldShowType === FieldType.TEXT_BOX.value"
|
||||||
class="box-input"
|
class="box-input"
|
||||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||||
v-model="formInline[item.dbFieldName]"
|
v-model.trim="formInline[item.dbFieldName]"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
:placeholder="specialPlaceholder[item.dbFieldName] || $t('pleaseEnter')+item.dbFieldTxt" />
|
:placeholder="specialPlaceholder[item.dbFieldName] || $t('pleaseEnter')+item.dbFieldTxt" />
|
||||||
<!-- 10, 下拉单选(数据字典) -->
|
<!-- 10, 下拉单选(数据字典) -->
|
||||||
<j-dict-select-tag v-else-if="item.fieldShowType === FieldType.OPTION_SINGLE.value"
|
<j-dict-select-tag v-else-if="item.fieldShowType === FieldType.OPTION_SINGLE.value"
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('title')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('title')">
|
||||||
<a-input v-decorator.trim="[ 'title', validatorRules.title]"
|
<a-input v-decorator.trim="[ 'title', validatorRules.title]"
|
||||||
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
:placeholder="$t('pleaseEnter') + $t('title')"/>
|
:placeholder="$t('pleaseEnter') + $t('title')"/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -78,7 +79,7 @@
|
|||||||
<a-col :span="24">
|
<a-col :span="24">
|
||||||
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('businessSupport.questionAnswer.questionDesc')">
|
<a-form-item :labelCol="longLabelCol" :wrapperCol="longWrapperCol" :label="$t('businessSupport.questionAnswer.questionDesc')">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
v-decorator.trim="[ 'problemDescription', validatorRules.problemDescription]"
|
v-decorator="[ 'problemDescription', validatorRules.problemDescription]"
|
||||||
:placeholder="$t('pleaseEnter')+$t('businessSupport.questionAnswer.questionDesc')"
|
:placeholder="$t('pleaseEnter')+$t('businessSupport.questionAnswer.questionDesc')"
|
||||||
:maxLength="500"
|
:maxLength="500"
|
||||||
:rows="4" />
|
:rows="4" />
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('enterpriseStandardLibrary.standard.nodeName')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('enterpriseStandardLibrary.standard.nodeName')">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('enterpriseStandardLibrary.standard.nodeName')"
|
<a-input :placeholder="$t('pleaseEnter') + $t('enterpriseStandardLibrary.standard.nodeName')"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
v-decorator.trim="[ 'nodeName', validatorRules.nodeName ]" />
|
v-decorator.trim="[ 'nodeName', validatorRules.nodeName ]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
@@ -46,7 +47,7 @@ export default {
|
|||||||
validatorRules: {
|
validatorRules: {
|
||||||
nodeName: {
|
nodeName: {
|
||||||
rules: [
|
rules: [
|
||||||
{ required: true, message: this.$t('pleaseEnter') + this.$t('enterpriseStandardLibrary.standard.title') }
|
{ required: true, message: this.$t('pleaseEnter') + this.$t('enterpriseStandardLibrary.standard.nodeName') }
|
||||||
],
|
],
|
||||||
validateTrigger: 'blur'
|
validateTrigger: 'blur'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
<a-input
|
<a-input
|
||||||
v-decorator.trim="[ 'name', validatorRules.name]"
|
v-decorator.trim="[ 'name', validatorRules.name]"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
:placeholder="$t('pleaseEnter')+$t('system.friendshipLink.linkName')"
|
:placeholder="$t('pleaseEnter')+$t('system.friendshipLink.linkName')"
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -22,6 +23,7 @@
|
|||||||
<a-input
|
<a-input
|
||||||
v-decorator.trim="[ 'link', validatorRules.link]"
|
v-decorator.trim="[ 'link', validatorRules.link]"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
:placeholder="$t('pleaseEnter')+$t('system.friendshipLink.link')"
|
:placeholder="$t('pleaseEnter')+$t('system.friendshipLink.link')"
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('system.internalWorkGroup.nodeName')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('system.internalWorkGroup.nodeName')">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('system.internalWorkGroup.nodeName')"
|
<a-input :placeholder="$t('pleaseEnter') + $t('system.internalWorkGroup.nodeName')"
|
||||||
:maxLength="50"
|
:maxLength="50"
|
||||||
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
v-decorator.trim="[ 'name', validatorRules.name ]" />
|
v-decorator.trim="[ 'name', validatorRules.name ]" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
|||||||
Reference in New Issue
Block a user