Commit d67ae5b8 authored by chenqikuai's avatar chenqikuai

fix: 修复点击导入后再次点击导入选择文件后没有执行导入的bug

parent bae282cf
...@@ -152,7 +152,8 @@ export default Vue.extend({ ...@@ -152,7 +152,8 @@ export default Vue.extend({
async handleFileChange(e: Event) { async handleFileChange(e: Event) {
this.loading = true this.loading = true
try { try {
const ret = await handle建设银行excelFileChange(e) const ret = await handle建设银行excelFileChange(e);
(this.$refs.importExcel as HTMLInputElement).value = '';
const ret2 = await StaffService.getInstance().import({ const ret2 = await StaffService.getInstance().import({
staffs: ret as iStaffItem[], staffs: ret as iStaffItem[],
}) })
...@@ -161,7 +162,7 @@ export default Vue.extend({ ...@@ -161,7 +162,7 @@ export default Vue.extend({
;(this.$refs.headerSelect as any).init() ;(this.$refs.headerSelect as any).init()
} }
} catch (err) { } catch (err) {
message.error(err) message.error(err as string)
} }
this.loading = false this.loading = false
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment