刘洋 1 年之前
父節點
當前提交
5e00c32d06
共有 3 個文件被更改,包括 25 次插入22 次删除
  1. 19 19
      src/devLoginParams.ts
  2. 5 3
      src/features/arbitrate/Arbitrate.vue
  3. 1 0
      vite.config.ts

+ 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-6-1",
-  // loginName: "liuyang",
-  password: "123456",
-  examId: "1",
-  markerId: "438",
-  // markerId: "482",
-  // markerId: "483",
-};
+// export const LOGIN_CONFIG = {
+//   isAdmin: false,
+//   forceChange: true,
+//   loginName: "1-339-6-1",
+//   // loginName: "liuyang",
+//   password: "123456",
+//   examId: "1",
+//   markerId: "438",
+//   // markerId: "482",
+//   // markerId: "483",
+// };
 // export const LOGIN_CONFIG = {
 //   isAdmin: false,
 //   forceChange: true,
@@ -67,14 +67,14 @@ export const LOGIN_CONFIG = {
 //   // 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",
+  markerId: null,
+};
 // export const LOGIN_CONFIG = {
 //   isAdmin: true,
 //   forceChange: true,

+ 5 - 3
src/features/arbitrate/Arbitrate.vue

@@ -229,10 +229,8 @@ const saveTaskToServer = async (
       error: string;
     };
     const errors: SubmitError[] = [];
-    console.log("markResult.scoreList", markResult.scoreList);
     markResult.scoreList.forEach((score, index) => {
       if (!store.currentTask) return;
-      console.log("arbitrateIndexArr.value", arbitrateIndexArr.value);
       const question = store.currentTask.questionList[index];
       let error;
       if (!isNumber(score)) {
@@ -249,7 +247,11 @@ const saveTaskToServer = async (
         } 给分小于最低分不能提交。`;
       }
       // if (error) {
-      if (error && arbitrateIndexArr.value?.find((i) => i == index)) {
+      if (
+        error &&
+        (arbitrateIndexArr.value?.includes(index) ||
+          !arbitrateIndexArr.value?.length)
+      ) {
         errors.push({ question, index, error });
       }
     });

+ 1 - 0
vite.config.ts

@@ -5,6 +5,7 @@ import { AntDesignVueResolver } from "unplugin-vue-components/resolvers";
 
 const SERVER_URL = "http://192.168.10.224";
 // const SERVER_URL = "http://192.168.11.103:8090";
+// const SERVER_URL = "http://192.168.11.81:8090";
 
 const path = require("path");