bug 78405

This commit is contained in:
赵霄
2023-11-10 14:55:59 +08:00
parent b0851d7d35
commit 5809ca95dd
2 changed files with 10 additions and 4 deletions
@@ -125,7 +125,7 @@
</div>
<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') }}
</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) => {
if (!errors) {
this.confirmLoading = true
@@ -505,6 +505,9 @@ export default {
this.$message.success(res.message)
this.isFirstOpenComparison = false
this.reloadTableData()
if (needClose) {
this.close()
}
} else {
this.$message.warning(res.message)
}
@@ -519,7 +522,7 @@ export default {
*/
handleSwitchChange () {
if (this.isStartComparison && this.isFirstOpenComparison) {
this.handleSaveForm()
this.handleSaveForm(false)
}
},
/**