修改全文对比得细节问题

This commit is contained in:
范强强
2024-03-01 10:04:20 +08:00
parent 08d7946088
commit c8c0770b0c
4 changed files with 82 additions and 14 deletions
@@ -39,10 +39,23 @@
</a-form-item>
<!--文本状态-->
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('docTool.comparison.textStatus')">
<a-input :placeholder="$t('pleaseEnter') + $t('docTool.comparison.textStatus')"
@change="event => event.target.value = event.target.value.trim()"
:maxLength="50"
v-decorator="['fileType', validatorRules.fileType]" />
<!-- <a-input :placeholder="$t('pleaseEnter') + $t('docTool.comparison.textStatus')"-->
<!-- @change="event => event.target.value = event.target.value.trim()"-->
<!-- :maxLength="50"-->
<!-- v-decorator="['fileType', validatorRules.fileType]" />-->
<a-select
:placeholder="$t('pleaseSelect') + $t('docTool.comparison.textStatus')"
v-decorator="['fileType', validatorRules.fileType]"
show-search
:filter-option="filterOption"
>
<a-select-option :value="undefined">请选择</a-select-option>
<a-select-option v-for="(item, key) in dictOptions" :key="key" :value="item.value">
<span style="display: inline-block;width: 100%" :title=" item.text || item.label ">
{{ item.text || item.label }}
</span>
</a-select-option>
</a-select>
<!-- <j-dict-select-tag-->
<!-- class="box-input"-->
<!-- v-decorator="['fileType', validatorRules.fileType]"-->
@@ -89,6 +102,16 @@ export default {
visible: false,
confirmLoading: false,
form: this.$form.createForm(this),
dictOptions: [
{
text: '发布稿',
value: '1'
},
{
text: '正文',
value: '2'
}
],
labelCol: {
xs: { span: 24 },
sm: { span: 6 }
@@ -123,6 +146,10 @@ export default {
}
},
methods: {
filterOption (input, option) {
const text = option.componentOptions.children[0].text || option.componentOptions.children[0].data.attrs.title
return text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
handleStandardNumberChange (name) {
this.form.setFieldsValue({ title: name })
},