فهرست منبع

fix: 很多bug

zhangjie 10 ماه پیش
والد
کامیت
f41d6d6840

+ 0 - 58
src/assets/styles/home.scss

@@ -447,66 +447,8 @@
   margin: 0 -10px;
 
   .hp-top {
-    display: flex;
-    justify-content: space-between;
-    align-items: stretch;
     margin-bottom: 20px;
 
-    &-left {
-      flex-grow: 0;
-      flex-shrink: 0;
-      width: 152px;
-      margin-right: 16px;
-    }
-
-    &-right {
-      flex-grow: 2;
-      overflow: hidden;
-    }
-  }
-
-  .tab-summary {
-    &-item {
-      position: relative;
-      height: 124px;
-      padding: 20px;
-      color: #fff;
-      background-size: 100% 100%;
-
-      &.item-wait {
-        background-image: url(../images/bg-wait-task.png);
-        margin-bottom: 10px;
-      }
-
-      &.item-done {
-        background-image: url(../images/bg-done-task.png);
-      }
-    }
-
-    &-title {
-      font-size: 12px;
-      margin-bottom: 8px;
-      opacity: 0.6;
-      height: 22px;
-      font-weight: 400;
-      font-size: 14px;
-      line-height: 22px;
-    }
-
-    &-content {
-      line-height: 36px;
-    }
-
-    &-cont {
-      display: inline-block;
-      vertical-align: middle;
-      font-weight: 500;
-      font-size: 28px;
-      margin-left: 8px;
-    }
-  }
-
-  .hp-task {
     .tab-btns {
       margin-bottom: 8px;
     }

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

@@ -71,7 +71,7 @@
 <script>
 import { mapState, mapActions } from "vuex";
 import { stmmsWaitTaskListPage } from "../api";
-import ModifyMarkParams from "../../mark/components/markParam/ModifyMarkParams";
+import ModifyMarkParams from "../../mark/components/markParam/ModifyMarkParams.vue";
 
 export default {
   name: "wait-task-stmms",

+ 1 - 1
src/modules/exam/components/taskApply/TaskPaper.vue

@@ -375,7 +375,7 @@
         :key="`audio${index}`"
       >
         <audio :src="item.url" :alt="item.filename" controls></audio>
-        <div class="audio-delete">
+        <div v-if="taskStatus.IS_APPLY" class="audio-delete">
           <i
             class="el-icon-delete-solid"
             @click="deletePaperConfirmAttachment(item)"

+ 0 - 13
src/modules/exam/store.js

@@ -1,18 +1,12 @@
 import {
-  auditedTaskCount,
   waitExamTaskCount,
   stmmsWaitTaskCount,
   analysisWaitTaskCount,
   markWaitTaskCount,
   savePreviewLog,
 } from "./api";
-import { calcSum } from "@/plugins/utils";
 
 const state = {
-  waitSummary: {
-    waitCount: 0,
-    doneCount: 0,
-  },
   waitTask: {
     flow: 0,
     stmms: 0,
@@ -34,9 +28,6 @@ const state = {
 };
 
 const mutations = {
-  setWaitSummary(state, waitSummary) {
-    state.waitSummary = waitSummary;
-  },
   setWaitTask(state, waitTask) {
     state.waitTask = waitTask;
   },
@@ -109,10 +100,6 @@ const actions = {
     });
 
     commit("setWaitTask", waitTask);
-
-    const waitCount = calcSum(counts);
-    const doneCount = await auditedTaskCount();
-    commit("setWaitSummary", { doneCount, waitCount });
   },
   async addPreviewLog({ state, commit }, { attachment, type }) {
     if (!state.taskStatus.IS_AUDIT) return;

+ 5 - 5
src/modules/exam/views/TaskPaperManage.vue

@@ -89,11 +89,11 @@
           label="卷型"
           width="80"
         ></el-table-column>
-        <el-table-column
-          prop="userName"
-          label="命题老师"
-          min-width="120"
-        ></el-table-column>
+        <el-table-column prop="userName" label="命题老师" min-width="120">
+          <span slot-scope="scope"
+            >{{ scope.row.userName }}({{ scope.row.loginName }})</span
+          >
+        </el-table-column>
         <el-table-column prop="createTime" label="入库时间" width="170">
           <span slot-scope="scope">{{
             scope.row.createTime | timestampFilter

+ 2 - 4
src/modules/exam/views/WaitTask.vue

@@ -47,7 +47,7 @@ export default {
   components: { WaitTaskFlow, WaitTaskStmms, WaitTaskAnalysis, WaitTaskMark },
   data() {
     return {
-      curTab: "flow",
+      curTab: "",
       tabs: [],
     };
   },
@@ -64,9 +64,7 @@ export default {
         if (!val) return;
 
         this.initTabs();
-        if (this.$route.query.type) {
-          this.curTab = this.$route.query.type;
-        }
+        this.curTab = this.tabs[0]?.val || "";
       },
     },
   },

+ 1 - 1
src/modules/mark/components/markParam/MarkParamStructure.vue

@@ -11,7 +11,7 @@
         </p>
       </div>
 
-      <div v-if="checkPrivilege('link', 'EditPaperStruct')">
+      <div v-if="checkPrivilege('link', 'EditPaperStruct', 'MarkSetting')">
         <el-switch v-model="editOpen" active-text="开启编辑"></el-switch>
       </div>
     </div>

+ 2 - 24
src/views/home-page/HomePage.vue

@@ -1,26 +1,7 @@
 <template>
   <div class="home-page">
     <div class="hp-top">
-      <div class="hp-top-left">
-        <div class="tab-summary-item item-wait">
-          <h4 class="tab-summary-title">待办任务</h4>
-          <div class="tab-summary-content">
-            <i class="icon icon-wait-task"></i>
-            <span class="tab-summary-cont">{{ waitSummary.waitCount }}</span>
-          </div>
-        </div>
-
-        <div class="tab-summary-item item-done">
-          <h4 class="tab-summary-title">已办任务</h4>
-          <div class="tab-summary-content">
-            <i class="icon icon-done-task"></i>
-            <span class="tab-summary-cont">{{ waitSummary.doneCount }}</span>
-          </div>
-        </div>
-      </div>
-      <div class="hp-top-right hp-task">
-        <wait-task v-if="dataReady"></wait-task>
-      </div>
+      <wait-task v-if="dataReady"></wait-task>
     </div>
 
     <div class="tab-box tab-guide">
@@ -31,7 +12,7 @@
 </template>
 
 <script>
-import { mapState, mapActions } from "vuex";
+import { mapActions } from "vuex";
 import WaitTask from "@/modules/exam/views/WaitTask.vue";
 import HomeGuide from "./HomeGuide.vue";
 
@@ -46,9 +27,6 @@ export default {
       dataReady: false,
     };
   },
-  computed: {
-    ...mapState("exam", ["waitSummary"]),
-  },
   created() {
     this.initData();
   },