duy 1 月之前
父節點
當前提交
6bebda7f0c
共有 1 個文件被更改,包括 15 次插入2 次删除
  1. 15 2
      src/views/data-fill/division.vue

+ 15 - 2
src/views/data-fill/division.vue

@@ -966,6 +966,7 @@
                             <span>取消</span>
                         </el-button>
                         <el-button
+                           
                             :disabled="uploadLoading"
                             :loading="uploadLoading"
                             hc-btn
@@ -1091,12 +1092,20 @@
                         </el-button>
                     </div>
                 </div>
-                <div class="text-right">
-                    <el-button hc-btn type="success" :loading="downLoadTemplateLoading" @click="downLoadTemplate">
+                <div class="mt-2 text-right">
+                    <el-button hc-btn type="primary" :loading="downLoadTemplateLoading" @click="downLoadTemplate">
                         <HcIcon name="download-2" />
                         导入模板
                     </el-button>
                 </div>
+                <div v-if="uploadProgress" class="mt-4">
+                    <el-progress
+                        :text-inside="true"
+                        :stroke-width="24"
+                        :percentage="100"
+                        status="success"
+                    />
+                </div>
             </div>
             
             <template #footer>
@@ -2746,6 +2755,7 @@ const dialogUploadRef = ref(null)
 const divisionImportClick = ()=>{
 
     divisionImportDialog.value = true
+    fileList.value = []
   
     
 }
@@ -2805,6 +2815,8 @@ const handleError = (error) => {
     } else {
         window.$message.error(msg)
     }
+    fileList.value = []
+
 }
 const confirmTap = ()=>{
     confirmLoading.value = true
@@ -2935,6 +2947,7 @@ const divisionImportCodeClick = ()=>{
             },
         })
 }
+const uploadProgress = ref(false)
 </script>
 
 <style lang="scss" scoped>