bug 78405
This commit is contained in:
@@ -23,7 +23,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<!--文本-->
|
<!--文本-->
|
||||||
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('docTool.split.text')">
|
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('docTool.split.text')">
|
||||||
<a-input v-decorator="['compareResult']" :placeholder="$t('pleaseEnter') + $t('docTool.split.text')" />
|
<a-input v-decorator="['compareResult']"
|
||||||
|
:placeholder="$t('pleaseEnter') + $t('docTool.split.text')"
|
||||||
|
:maxLength="50"
|
||||||
|
@change="event => event.target.value = event.target.value.trim()" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="custom-drawer-style-bottom-btn">
|
<div class="custom-drawer-style-bottom-btn">
|
||||||
<a-button @click="handleSaveForm" type="primary" style="margin-bottom: 0;" :loading="confirmLoading">
|
<a-button @click="handleSaveForm(true)" type="primary" style="margin-bottom: 0;" :loading="confirmLoading">
|
||||||
{{ $t('preservation') }}
|
{{ $t('preservation') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button @click="handleCancel" style="margin-bottom: 0;" :loading="confirmLoading">{{ $t('close') }}</a-button>
|
<a-button @click="handleCancel" style="margin-bottom: 0;" :loading="confirmLoading">{{ $t('close') }}</a-button>
|
||||||
@@ -495,7 +495,7 @@ export default {
|
|||||||
* 保存表单内容
|
* 保存表单内容
|
||||||
* 清单名称、涉及国家、是否公开三个字段
|
* 清单名称、涉及国家、是否公开三个字段
|
||||||
*/
|
*/
|
||||||
handleSaveForm () {
|
handleSaveForm (needClose) {
|
||||||
this.form.validateFields((errors, values) => {
|
this.form.validateFields((errors, values) => {
|
||||||
if (!errors) {
|
if (!errors) {
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
@@ -505,6 +505,9 @@ export default {
|
|||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
this.isFirstOpenComparison = false
|
this.isFirstOpenComparison = false
|
||||||
this.reloadTableData()
|
this.reloadTableData()
|
||||||
|
if (needClose) {
|
||||||
|
this.close()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(res.message)
|
this.$message.warning(res.message)
|
||||||
}
|
}
|
||||||
@@ -519,7 +522,7 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleSwitchChange () {
|
handleSwitchChange () {
|
||||||
if (this.isStartComparison && this.isFirstOpenComparison) {
|
if (this.isStartComparison && this.isFirstOpenComparison) {
|
||||||
this.handleSaveForm()
|
this.handleSaveForm(false)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user