Michael Wang пре 3 година
родитељ
комит
e79da345d4

+ 1 - 1
src/features/courseManagement/CourseManagement.vue

@@ -305,7 +305,7 @@ async function handleImport() {
     message.warn({ content: "请选择文件" });
     return;
   }
-
+  (document.querySelector("#file-input") as HTMLInputElement).value = "";
   const res = await importCourses(rootOrgId, fileToImport);
   if (!res.data.hasError) {
     importModalVisible = false;

+ 1 - 1
src/features/paperAnalysis/QuestionTypeDifficulty.vue

@@ -206,7 +206,7 @@ async function handleImport() {
     message.warn({ content: "请选择文件" });
     return;
   }
-
+  (document.querySelector("#file-input") as HTMLInputElement).value = "";
   const res = await importQuestionGroups(props.projectId, fileToImport);
   if (!res.data.hasError) {
     importModalVisible = false;

+ 1 - 1
src/features/paperAnalysis/QuestionTypeDiscrimination.vue

@@ -206,7 +206,7 @@ async function handleImport() {
     message.warn({ content: "请选择文件" });
     return;
   }
-
+  (document.querySelector("#file-input") as HTMLInputElement).value = "";
   const res = await importQuestionGroups(props.projectId, fileToImport);
   if (!res.data.hasError) {
     importModalVisible = false;

+ 1 - 1
src/features/projectDataManagement/ProjectDataManagement.vue

@@ -93,7 +93,7 @@ async function handleImport() {
     message.warn({ content: "请选择文件" });
     return;
   }
-
+  (document.querySelector("#file-input") as HTMLInputElement).value = "";
   await importProjectDataSource(projectId, fileToImport);
   message.success({ content: "导入成功" });
 }

+ 1 - 1
src/features/projectParamsManagement/ProjectParamsManagement.vue

@@ -226,7 +226,7 @@ async function handleImport() {
     message.warn({ content: "请选择文件" });
     return;
   }
-
+  (document.querySelector("#file-input") as HTMLInputElement).value = "";
   const res = await importProjectParams(projectId, fileToImport);
   if (!res.data.hasError) {
     importModalVisible = false;

+ 1 - 1
src/features/subOrg/SubOrg.vue

@@ -297,7 +297,7 @@ async function handleImport() {
     message.warn({ content: "请选择文件" });
     return;
   }
-
+  (document.querySelector("#file-input") as HTMLInputElement).value = "";
   const res = await importOrgs(rootOrgId, fileToImport);
   if (!res.data.hasError) {
     importModalVisible = false;

+ 2 - 0
src/features/userManagement/UserManagement.vue

@@ -349,6 +349,8 @@ async function handleImport() {
     return;
   }
 
+  (document.querySelector("#file-input") as HTMLInputElement).value = "";
+
   const res = await importUsers(rootOrgId, fileToImport);
   if (!res.data.hasError) {
     importModalVisible = false;