|
@@ -25,7 +25,7 @@
|
|
<hc-dialog v-model="isImportShow" widths="24rem" title="项目数据导入" :footer="false" @close="modalImportClose">
|
|
<hc-dialog v-model="isImportShow" widths="24rem" title="项目数据导入" :footer="false" @close="modalImportClose">
|
|
<hc-form-upload
|
|
<hc-form-upload
|
|
v-model="importFile" class="hc-form-drop-upload"
|
|
v-model="importFile" class="hc-form-drop-upload"
|
|
- :options="{ num: 1, type: 'list', drop: true, isSuccess: true }"
|
|
|
|
|
|
+ :options="{ num: 1, type: 'list', drop: true }"
|
|
:upload="{ options: uploadOptions }" @success="uploadSuccess"
|
|
:upload="{ options: uploadOptions }" @success="uploadSuccess"
|
|
/>
|
|
/>
|
|
<div class="hc-flex mt-5">
|
|
<div class="hc-flex mt-5">
|
|
@@ -165,9 +165,10 @@ const modalImportClose = () => {
|
|
}
|
|
}
|
|
|
|
|
|
//上传完成
|
|
//上传完成
|
|
-const uploadSuccess = (_, resolve) => {
|
|
|
|
- resolve('')
|
|
|
|
- getTableData()
|
|
|
|
- modalImportClose()
|
|
|
|
|
|
+const uploadSuccess = () => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ getTableData()
|
|
|
|
+ modalImportClose()
|
|
|
|
+ }, 1000)
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|