Commit 2606f8b5 by chenwq

```

feat(claims): 批量导入成功后自动关闭弹窗

- 在批量导入组件中,当导入成功时不仅触发success事件,
  还同时触发更新visible属性为false的事件,实现自动关闭弹窗功能
```
1 parent 31b4bc6f
...@@ -96,7 +96,10 @@ export default { ...@@ -96,7 +96,10 @@ export default {
return return
} }
this.setResult(res.data || {}) this.setResult(res.data || {})
if (this.result.successCount > 0) this.$emit('success') if (this.result.successCount > 0) {
this.$emit('success')
this.$emit('update:visible', false)
}
}) })
.catch(() => {}) .catch(() => {})
.finally(() => { .finally(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!