瀏覽代碼

remarkCount为0的情况下,不展示回评列表,0作为pageSize会无效

刘洋 1 年之前
父節點
當前提交
275915b73d
共有 3 個文件被更改,包括 19 次插入5 次删除
  1. 11 3
      src/devLoginParams.ts
  2. 7 1
      src/features/mark/MarkHistory.vue
  3. 1 1
      vite.config.ts

+ 11 - 3
src/devLoginParams.ts

@@ -56,12 +56,20 @@
 //   // markerId: "483",
 // };
 /** 224 管理员 */
+// export const LOGIN_CONFIG = {
+//   isAdmin: true,
+//   forceChange: true,
+//   loginName: "admin-test",
+//   password: "123456",
+//   examId: "1",
+//   markerId: null,
+// };
 export const LOGIN_CONFIG = {
   isAdmin: true,
   forceChange: true,
-  loginName: "admin-test",
-  password: "123456",
-  examId: "1",
+  loginName: "fh161301",
+  password: "654321",
+  examId: "295",
   markerId: null,
 };
 

+ 7 - 1
src/features/mark/MarkHistory.vue

@@ -80,7 +80,13 @@
         />
       </div>
     </div>
-    <a-spin :spinning="loading" size="large" tip="Loading..." :delay="500">
+    <a-spin
+      v-if="remarkCount !== 0"
+      :spinning="loading"
+      size="large"
+      tip="Loading..."
+      :delay="500"
+    >
       <div style="margin-bottom: -40px; padding-bottom: 72px">
         <div v-for="(task, index) of store.historyTasks" :key="index">
           <div

+ 1 - 1
vite.config.ts

@@ -3,7 +3,7 @@ import vue from "@vitejs/plugin-vue";
 import ViteComponents from "unplugin-vue-components/vite";
 import { AntDesignVueResolver } from "unplugin-vue-components/resolvers";
 
-const SERVER_URL = "http://192.168.10.224";
+const SERVER_URL = "http://192.168.10.225";
 // const SERVER_URL = "http://192.168.11.103:8090";
 
 const path = require("path");