浏览代码

没有数据需要校验时的界面优化

刘洋 1 年之前
父节点
当前提交
2714196550

+ 19 - 19
src/devLoginParams.ts

@@ -9,17 +9,17 @@
 // export const markerId="419";
 
 /** 244 评卷员 */
-export const LOGIN_CONFIG = {
-  isAdmin: false,
-  forceChange: true,
-  loginName: "1-339-5-1",
-  // loginName: "liuyang",
-  password: "123456",
-  examId: "1",
-  markerId: "147",
-  // markerId: "482",
-  // markerId: "483",
-};
+// export const LOGIN_CONFIG = {
+//   isAdmin: false,
+//   forceChange: true,
+//   loginName: "1-339-5-1",
+//   // loginName: "liuyang",
+//   password: "123456",
+//   examId: "1",
+//   markerId: "147",
+//   // markerId: "482",
+//   // markerId: "483",
+// };
 // export const LOGIN_CONFIG = {
 //   isAdmin: false,
 //   forceChange: true,
@@ -97,14 +97,14 @@ export const LOGIN_CONFIG = {
 
 /** 225 管理员 */
 
-// export const LOGIN_CONFIG = {
-//   isAdmin: true,
-//   forceChange: true,
-//   loginName: "admin-01",
-//   password: "123456",
-//   examId: "341",
-//   markerId: "null",
-// };
+export const LOGIN_CONFIG = {
+  isAdmin: true,
+  forceChange: true,
+  loginName: "admin-01",
+  password: "123456",
+  examId: "341",
+  markerId: "null",
+};
 
 // export const loginName = "admin-ch";
 // export const password = "123456";

+ 1 - 1
src/features/student/scoreVerify/MarkHeader.vue

@@ -23,7 +23,7 @@
     <span>
       <span class="header-small-text">待校验</span>
       <span class="highlight-text">{{
-        store.status.totalCount - store.status.markedCount ?? "-"
+        store.status.totalCount - store.status.markedCount || "-"
       }}</span>
     </span>
 

+ 3 - 0
src/features/student/scoreVerify/ScoreVerify.vue

@@ -67,6 +67,9 @@ async function updateSetting() {
   } else {
     studentIds = settingRes.data.studentIds || [];
   }
+  if (!studentIds.length) {
+    await message.warning("没有数据需要校验");
+  }
   // tagIds = settingRes.data.tagIds;
   // }
   return fileServer;

+ 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");