[update] 删除所有v-model.trim的.trim
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
<a-input v-else-if="item.fieldShowType === FieldType.TEXT_BOX.value"
|
||||
class="box-input"
|
||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||
v-model.trim="formInline[item.dbFieldName]"
|
||||
v-model="formInline[item.dbFieldName]"
|
||||
:maxLength="item.dbLength"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="specialPlaceholder[item.dbFieldName] || $t('pleaseEnter')+item.dbFieldTxt" />
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('fileDeclaration')"
|
||||
:maxLength="200"
|
||||
:rows="4"
|
||||
v-model.trim="formInline.fileDescription"/>
|
||||
v-model="formInline.fileDescription"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</a-col>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<a-form-model-item prop="folderName" style='width: 72%'>
|
||||
<a-input
|
||||
v-model.trim="form.folderName"
|
||||
v-model="form.folderName"
|
||||
style='width: 130%'
|
||||
class="box-input add-input"
|
||||
maxLength="100"
|
||||
@@ -99,7 +99,7 @@
|
||||
:title="$t('treeRight.folderOrder')">{{$t('treeRight.folderOrder')}}</span>
|
||||
</div>
|
||||
<a-form-model-item class="itemModel" prop="orderId">
|
||||
<a-input-number v-model.trim="form.orderId" :min="1" :max="9999" class="box-input add-input"
|
||||
<a-input-number v-model="form.orderId" :min="1" :max="9999" class="box-input add-input"
|
||||
:placeholder="$t('pleaseEnter')+$t('treeRight.folderOrder')" :formatter="limitNumber"
|
||||
:parser="limitNumber"/>
|
||||
</a-form-model-item>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<!--特点-->
|
||||
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('docTool.customComparison.specialty')">
|
||||
<div v-for="(item, index) in specialtyList" :key="index" class="form-wrapper">
|
||||
<a-input v-model.trim="specialtyList[index].cellTitle"
|
||||
<a-input v-model="specialtyList[index].cellTitle"
|
||||
:maxLength="50"
|
||||
@change="e => {e.target.value = (e.target.value + '').trim()}" />
|
||||
<a-button @click="addSpecialty(index)" icon='plus'></a-button>
|
||||
@@ -27,7 +27,7 @@
|
||||
<!--比对项-->
|
||||
<a-form-model-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('docTool.customComparison.comparisonItem')">
|
||||
<div v-for="(item, index) in comparisonItemList" :key="index" class="form-wrapper">
|
||||
<a-input v-model.trim="comparisonItemList[index].cellTitle"
|
||||
<a-input v-model="comparisonItemList[index].cellTitle"
|
||||
:maxLength="50"
|
||||
@change="e => {e.target.value = (e.target.value + '').trim()}" />
|
||||
<a-button @click="addComparisonItem(index)" icon='plus'></a-button>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
:labelCol="labelCol" :wrapperCol="wrapperCol"
|
||||
:label="$t('docTool.comparison.fullTextComments')">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+' '+$t('docTool.comparison.fullTextComments')"
|
||||
v-model.trim="formInlineText.comment"
|
||||
v-model="formInlineText.comment"
|
||||
:maxLength="500"
|
||||
:rows="4" />
|
||||
</a-form-model-item>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
:placeholder="$t('pleaseEnter')+title"
|
||||
:disabled="false"
|
||||
:maxLength="500"
|
||||
v-model.trim="formInline.replyContent"
|
||||
v-model="formInline.replyContent"
|
||||
:autoSize="{ minRows: 2, maxRows: 6 }" />
|
||||
</a-form-model-item>
|
||||
<a-form-model-item v-else-if="title === $t('docTool.comparison.publishComment')" class="item-model" :prop="'commentContent'">
|
||||
@@ -30,7 +30,7 @@
|
||||
:placeholder="$t('pleaseEnter')+title"
|
||||
:disabled="false"
|
||||
:maxLength="500"
|
||||
v-model.trim="formInline.commentContent"
|
||||
v-model="formInline.commentContent"
|
||||
:autoSize="{ minRows: 2, maxRows: 6 }" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
:wrapperCol="wrapperCol"
|
||||
:label="$t('docTool.comparison.fullTextComments')">
|
||||
<a-textarea :placeholder="$t('pleaseEnter') + $t('docTool.comparison.fullTextComments')"
|
||||
v-model.trim="formInlineText.comment"
|
||||
v-model="formInlineText.comment"
|
||||
:maxLength="500"
|
||||
:rows="4" />
|
||||
</a-form-model-item>
|
||||
@@ -35,7 +35,7 @@
|
||||
:wrapperCol="wrapperCol"
|
||||
:label="$t('docTool.comparison.comparativeComments')">
|
||||
<a-textarea :placeholder="$t('pleaseEnter')+$t('docTool.comparison.comparativeComments')"
|
||||
v-model.trim="formInlineText.comment"
|
||||
v-model="formInlineText.comment"
|
||||
:maxLength="500"
|
||||
:rows="4" />
|
||||
</a-form-model-item>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<!--条款号-->
|
||||
<a-form-model-item :label="$t('docTool.split.clauseNo')" prop="name">
|
||||
<a-input class="box-input"
|
||||
v-model.trim="form.name"
|
||||
v-model="form.name"
|
||||
:placeholder="$t('pleaseEnter')+$t('docTool.split.clauseNo')"
|
||||
:maxLength="50"
|
||||
@change="event => event.target.value = event.target.value.trim()" />
|
||||
@@ -25,14 +25,14 @@
|
||||
<!--条款名称-->
|
||||
<a-form-model-item :label="$t('docTool.split.clauseName')" prop="itemName">
|
||||
<a-input class="box-input"
|
||||
v-model.trim="form.itemName"
|
||||
v-model="form.itemName"
|
||||
:placeholder="$t('pleaseEnter')+$t('docTool.split.clauseName')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="50" />
|
||||
</a-form-model-item>
|
||||
<!--序号-->
|
||||
<a-form-model-item :label="$t('serialNumber')" prop="displaySeq">
|
||||
<a-input-number v-model.trim="form.displaySeq" :min="1" :max="99999"
|
||||
<a-input-number v-model="form.displaySeq" :min="1" :max="99999"
|
||||
class="box-input"
|
||||
:placeholder="$t('pleaseEnter')+$t('serialNumber')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
prop="dictName"
|
||||
required
|
||||
:label="$t('dict.dictionaryName')">
|
||||
<a-input :maxLength="50" :placeholder="$t('pleaseEnter') + $t('dict.dictionaryName')" v-model.trim="model.dictName" @change="event => event.target.value = event.target.value.trim()"/>
|
||||
<a-input :maxLength="50" :placeholder="$t('pleaseEnter') + $t('dict.dictionaryName')" v-model="model.dictName" @change="event => event.target.value = event.target.value.trim()"/>
|
||||
</a-form-model-item>
|
||||
|
||||
<a-form-model-item
|
||||
@@ -26,7 +26,7 @@
|
||||
:wrapperCol="wrapperCol"
|
||||
prop="dictEnglishName"
|
||||
:label="$t('dict.dictionaryEnglishName')">
|
||||
<a-input :maxLength="50" :placeholder="$t('pleaseEnter') + $t('dict.dictionaryEnglishName')" v-model.trim="model.dictEnglishName" @change="event => event.target.value = event.target.value.trim()"/>
|
||||
<a-input :maxLength="50" :placeholder="$t('pleaseEnter') + $t('dict.dictionaryEnglishName')" v-model="model.dictEnglishName" @change="event => event.target.value = event.target.value.trim()"/>
|
||||
</a-form-model-item>
|
||||
|
||||
<a-form-model-item
|
||||
@@ -38,7 +38,7 @@
|
||||
<a-input
|
||||
:maxLength="50"
|
||||
:placeholder="$t('pleaseEnter') + $t('dict.dictionaryNumber')"
|
||||
v-model.trim="model.dictCode"
|
||||
v-model="model.dictCode"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
/>
|
||||
</a-form-model-item>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
:wrapperCol="wrapperCol"
|
||||
prop="ruleColumn"
|
||||
label="规则字段">
|
||||
<a-input placeholder="请输入规则字段" v-model.trim="model.ruleColumn"/>
|
||||
<a-input placeholder="请输入规则字段" v-model="model.ruleColumn"/>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item
|
||||
:labelCol="labelCol"
|
||||
@@ -39,7 +39,7 @@
|
||||
:wrapperCol="wrapperCol"
|
||||
prop="ruleValue"
|
||||
label="规则值">
|
||||
<a-input placeholder="请输入规则值" v-model.trim="model.ruleValue"/>
|
||||
<a-input placeholder="请输入规则值" v-model="model.ruleValue"/>
|
||||
</a-form-model-item>
|
||||
|
||||
<a-form-model-item
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<!--展示区域-->
|
||||
<a-form-model-item :label="$t('system.tag.showArea')" prop="showArea">
|
||||
<a-input
|
||||
v-model.trim="model.showArea"
|
||||
v-model="model.showArea"
|
||||
:placeholder="$t('pleaseEnter') + $t('system.tag.showArea')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="50"
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
<a-form-model-item :label="$t('system.tag.attributeNameEnglish')" prop="enName">
|
||||
<a-input
|
||||
v-model.trim="model.enName"
|
||||
v-model="model.enName"
|
||||
:placeholder="$t('pleaseEnter') + $t('system.tag.attributeNameEnglish')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="50"
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<!-- 属性名称-->
|
||||
<a-form-model-item :label="$t('system.tag.attributeName')" prop="dbFieldTxt">
|
||||
<a-input
|
||||
v-model.trim="form.dbFieldTxt" :placeholder="$t('pleaseEnter') + $t('system.tag.attributeName')"
|
||||
v-model="form.dbFieldTxt" :placeholder="$t('pleaseEnter') + $t('system.tag.attributeName')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="50"
|
||||
></a-input>
|
||||
@@ -46,7 +46,7 @@
|
||||
<!-- 英文名称-->
|
||||
<a-form-model-item :label="$t('system.tag.attributeNameEnglish')" prop="dbFieldEnName">
|
||||
<a-input
|
||||
v-model.trim="form.dbFieldEnName"
|
||||
v-model="form.dbFieldEnName"
|
||||
:placeholder="$t('pleaseEnter') + $t('system.tag.attributeNameEnglish')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="50"
|
||||
@@ -56,7 +56,7 @@
|
||||
<a-col :span="24" v-if="canOpeFlag">
|
||||
<a-form-model-item :label="$t('system.tag.fieldName')" prop="dbFieldName">
|
||||
<a-input
|
||||
v-model.trim="form.dbFieldName"
|
||||
v-model="form.dbFieldName"
|
||||
:placeholder="$t('pleaseEnter') + $t('system.tag.fieldName')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="120"
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<a-col :span="24">
|
||||
<a-form-model-item :label="$t('system.tag.attributeName')" prop="dbFieldTxt">
|
||||
<a-input
|
||||
v-model.trim="form.dbFieldTxt" :placeholder="$t('pleaseEnter') + $t('system.tag.attributeName')"
|
||||
v-model="form.dbFieldTxt" :placeholder="$t('pleaseEnter') + $t('system.tag.attributeName')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="50"
|
||||
></a-input>
|
||||
@@ -47,7 +47,7 @@
|
||||
<a-col :span="24">
|
||||
<a-form-model-item :label="$t('system.tag.attributeNameEnglish')" prop="dbFieldEnName">
|
||||
<a-input
|
||||
v-model.trim="form.dbFieldEnName"
|
||||
v-model="form.dbFieldEnName"
|
||||
:placeholder="$t('pleaseEnter') + $t('system.tag.attributeNameEnglish')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="50"
|
||||
@@ -58,7 +58,7 @@
|
||||
<a-col :span="24" v-if="canOpeFlag">
|
||||
<a-form-model-item :label="$t('system.tag.fieldName')" prop="dbFieldName">
|
||||
<a-input
|
||||
v-model.trim="form.dbFieldName"
|
||||
v-model="form.dbFieldName"
|
||||
:placeholder="$t('pleaseEnter') + $t('system.tag.fieldName')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:maxLength="60"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<a-form-model-item :label="$t('system.tag.labelItemName')" prop="dictName" class="tag-item">
|
||||
<a-input
|
||||
:maxLength="50"
|
||||
v-model.trim="model.dictName"
|
||||
v-model="model.dictName"
|
||||
:placeholder="$t('pleaseEnter') + $t('system.tag.labelItemName')"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
/>
|
||||
@@ -31,7 +31,7 @@
|
||||
<a-input
|
||||
:maxLength="50"
|
||||
:placeholder="$t('pleaseEnter') + $t('dict.dictionaryNumber')"
|
||||
v-model.trim="model.dictCode"
|
||||
v-model="model.dictCode"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
/>
|
||||
</a-form-model-item>
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
<a-input v-else-if="item.fieldShowType === FieldType.TEXT_BOX.value"
|
||||
class="box-input"
|
||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||
v-model.trim="formInline[item.dbFieldName]"
|
||||
v-model="formInline[item.dbFieldName]"
|
||||
:maxLength="item.dbLength"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="$t('pleaseEnter')+item.dbFieldTxt" />
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
<a-input v-else-if="item.fieldShowType === FieldType.TEXT_BOX.value"
|
||||
class="box-input"
|
||||
:disabled="disabled || disabledFieldList.includes(item.dbFieldName)"
|
||||
v-model.trim="formInline[item.dbFieldName]"
|
||||
v-model="formInline[item.dbFieldName]"
|
||||
:maxLength="item.dbLength"
|
||||
@change="event => event.target.value = event.target.value.trim()"
|
||||
:placeholder="specialPlaceholder[item.dbFieldName] || $t('pleaseEnter')+item.dbFieldTxt" />
|
||||
|
||||
Reference in New Issue
Block a user