Browse Source

feat: 页面调整

zhangjie 10 months ago
parent
commit
8d5d73255b

+ 9 - 1
src/modules/course/components/CourseDocumentDetail.vue

@@ -18,7 +18,11 @@
       </div>
       </div>
       <div class="box-justify mb-2">
       <div class="box-justify mb-2">
         <div>
         <div>
-          <el-button type="primary" :loading="bloading" @click="toBatchDownload"
+          <el-button
+            type="primary"
+            :loading="bloading"
+            icon="el-icon-download"
+            @click="toBatchDownload"
             >批量下载</el-button
             >批量下载</el-button
           >
           >
         </div>
         </div>
@@ -26,6 +30,7 @@
           <el-button
           <el-button
             v-if="checkPrivilege('button', 'add')"
             v-if="checkPrivilege('button', 'add')"
             type="primary"
             type="primary"
+            icon="el-icon-circle-plus-outline"
             @click="toAdd"
             @click="toAdd"
             >新建文档</el-button
             >新建文档</el-button
           >
           >
@@ -190,6 +195,9 @@ export default {
       bloading: false,
       bloading: false,
     };
     };
   },
   },
+  mounted() {
+    this.getToolInfo();
+  },
   methods: {
   methods: {
     async getToolInfo() {
     async getToolInfo() {
       const res = await toolInfo();
       const res = await toolInfo();

+ 5 - 1
src/modules/exam/components/PaperApproveTable.vue

@@ -12,7 +12,11 @@
     <div class="box-justify" slot="title">
     <div class="box-justify" slot="title">
       <span class="el-dialog__title">试卷审批表</span>
       <span class="el-dialog__title">试卷审批表</span>
       <div>
       <div>
-        <el-button type="success" :disabled="loading" @click="toDownload"
+        <el-button
+          type="success"
+          :disabled="loading"
+          icon="el-icon-download"
+          @click="toDownload"
           >下载</el-button
           >下载</el-button
         >
         >
         <el-button @click="cancel">取消</el-button>
         <el-button @click="cancel">取消</el-button>

+ 3 - 1
src/modules/exam/components/UploadPaperDialog.vue

@@ -18,6 +18,7 @@
       <upload-file-view
       <upload-file-view
         input-width="360px"
         input-width="360px"
         :format="curConfig.format"
         :format="curConfig.format"
+        :max-size="curConfig.maxSize"
         :upload-url="curConfig.uploadUrl"
         :upload-url="curConfig.uploadUrl"
         :upload-data="curConfig.uploadData"
         :upload-data="curConfig.uploadData"
         @uploading="uplaoding"
         @uploading="uplaoding"
@@ -49,7 +50,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
-import UploadFileView from "@/components/UploadFileView";
+import UploadFileView from "@/components/UploadFileView.vue";
 import { attachmentPreview } from "../../login/api";
 import { attachmentPreview } from "../../login/api";
 
 
 export default {
 export default {
@@ -87,6 +88,7 @@ export default {
           title: "附件",
           title: "附件",
           format: ["jpg", "png", "mp3"],
           format: ["jpg", "png", "mp3"],
           uploadData: { type: "FILE" },
           uploadData: { type: "FILE" },
+          maxSize: 30 * 1024 * 1024,
           uploadUrl: "/api/admin/common/file/upload",
           uploadUrl: "/api/admin/common/file/upload",
         },
         },
       },
       },

+ 1 - 12
src/modules/exam/components/WaitTaskAnalysis.vue

@@ -74,7 +74,7 @@ export default {
     };
     };
   },
   },
   mounted() {
   mounted() {
-    this.initData();
+    this.getList();
   },
   },
   methods: {
   methods: {
     ...mapMutations("exam", ["updateWaitTask"]),
     ...mapMutations("exam", ["updateWaitTask"]),
@@ -83,17 +83,6 @@ export default {
       this.getList();
       this.getList();
       this.updateWaitTaskCount();
       this.updateWaitTaskCount();
     },
     },
-    async initData() {
-      await this.getList();
-
-      const presetTask = this.$ls.get("wait_task_analysis");
-      if (presetTask) {
-        this.$nextTick(() => {
-          this.toDo(presetTask);
-        });
-        this.$ls.remove("wait_task_analysis");
-      }
-    },
     async getList() {
     async getList() {
       const datas = {
       const datas = {
         pageNumber: this.current,
         pageNumber: this.current,

+ 1 - 12
src/modules/exam/components/WaitTaskFlow.vue

@@ -87,7 +87,7 @@ export default {
     };
     };
   },
   },
   mounted() {
   mounted() {
-    this.initData();
+    this.getList();
   },
   },
   methods: {
   methods: {
     ...mapMutations("exam", ["updateWaitTask"]),
     ...mapMutations("exam", ["updateWaitTask"]),
@@ -96,17 +96,6 @@ export default {
       this.getList();
       this.getList();
       this.updateWaitTaskCount();
       this.updateWaitTaskCount();
     },
     },
-    async initData() {
-      await this.getList();
-
-      const presetTask = this.$ls.get("wait_task_flow");
-      if (presetTask) {
-        this.$nextTick(() => {
-          this.toDo(presetTask);
-        });
-        this.$ls.remove("wait_task_flow");
-      }
-    },
     async getList() {
     async getList() {
       const datas = {
       const datas = {
         pageNumber: this.current,
         pageNumber: this.current,

+ 1 - 12
src/modules/exam/components/WaitTaskStmms.vue

@@ -83,7 +83,7 @@ export default {
     };
     };
   },
   },
   mounted() {
   mounted() {
-    this.initData();
+    this.getList();
   },
   },
   methods: {
   methods: {
     ...mapMutations("exam", ["updateWaitTask"]),
     ...mapMutations("exam", ["updateWaitTask"]),
@@ -92,17 +92,6 @@ export default {
       this.getList();
       this.getList();
       this.updateWaitTaskCount();
       this.updateWaitTaskCount();
     },
     },
-    async initData() {
-      await this.getList();
-
-      const presetTask = this.$ls.get("wait_task_stmms");
-      if (presetTask) {
-        this.$nextTick(() => {
-          this.toSetParams(presetTask);
-        });
-        this.$ls.remove("wait_task_stmms");
-      }
-    },
     async getList() {
     async getList() {
       const datas = {
       const datas = {
         pageNumber: this.current,
         pageNumber: this.current,

+ 3 - 2
src/modules/mark/views/ScoreManage.vue

@@ -23,7 +23,7 @@
         <el-button
         <el-button
           v-if="checkPrivilege('button', 'aggregateAnalysis')"
           v-if="checkPrivilege('button', 'aggregateAnalysis')"
           type="primary"
           type="primary"
-          :loading="loading"
+          :loading="downloading"
           icon="el-icon-document"
           icon="el-icon-document"
           @click="exportTotalAnalysis"
           @click="exportTotalAnalysis"
           >总量分析</el-button
           >总量分析</el-button
@@ -31,7 +31,7 @@
         <el-button
         <el-button
           v-if="checkPrivilege('button', 'ObjectiveCalculate')"
           v-if="checkPrivilege('button', 'ObjectiveCalculate')"
           type="primary"
           type="primary"
-          :loading="loading"
+          :loading="downloading"
           icon="el-icon-document"
           icon="el-icon-document"
           @click="batchAnalysisReport"
           @click="batchAnalysisReport"
           >批量下载分析报告</el-button
           >批量下载分析报告</el-button
@@ -186,6 +186,7 @@ export default {
       total: 0,
       total: 0,
       dataList: [],
       dataList: [],
       curRow: {},
       curRow: {},
+      downloading: false,
     };
     };
   },
   },
   methods: {
   methods: {