zhangjie 2 rokov pred
rodič
commit
ac3ddce906

+ 1 - 1
src/constants/enumerate.js

@@ -195,7 +195,7 @@ export const DATA_TASK_TYPE = {
   CREATE_PDF: "生成pdf",
   USER_IMPORT: "用户导入",
   STUDENT_IMPORT: "学生导入",
-  COURSE_IMPORT: "课程导入",
+  // COURSE_IMPORT: "课程导入",//同步导入
   PAPER_AND_CARD_PDF_DOWNLOAD: "卷库查询管理试卷、空白题卡批量下载pdf",
   STATISTICS_IMPORT: "命题统计导入",
   SCORE_EXPORT: "成绩导出",

+ 1 - 17
src/modules/base/views/CourseManage.vue

@@ -72,13 +72,6 @@
             @click="toImport"
             >导入课程</el-button
           >
-          <el-button
-            v-if="checkPrivilege('button', 'import')"
-            type="primary"
-            icon="el-icon-s-order"
-            @click="toDataTask"
-            >导入结果查询</el-button
-          >
           <el-button
             v-if="checkPrivilege('button', 'add')"
             type="primary"
@@ -176,12 +169,6 @@
       :auto-upload="false"
       @upload-success="uploadSuccess"
     ></import-file>
-    <!-- data-task-dialog -->
-    <data-task-dialog
-      v-if="checkPrivilege('button', 'import')"
-      ref="DataTaskDialog"
-      task-type="COURSE_IMPORT"
-    ></data-task-dialog>
   </div>
 </template>
 
@@ -313,14 +300,11 @@ export default {
     toImport() {
       this.$refs.ImportFile.open();
     },
-    toDataTask() {
-      this.$refs.DataTaskDialog.open();
-    },
     validError(errorData) {
       this.$message.error(errorData.message);
     },
     uploadSuccess() {
-      this.$message.success("文件上传成功,后台正在导入!");
+      this.$message.success("文件上传成功!");
       this.getList();
     }
   }

+ 1 - 0
src/modules/base/views/OrganizationManage.vue

@@ -221,6 +221,7 @@ export default {
       this.$message.error(errorData.message);
     },
     uploadSuccess() {
+      this.$message.success("文件上传成功!");
       this.getList();
     }
   }