Ver Fonte

关于单选题和判断题的横向占位宽度的修改

刘洋 há 2 anos atrás
pai
commit
94cecae506
3 ficheiros alterados com 41 adições e 26 exclusões
  1. 21 19
      src/devLoginParams.ts
  2. 18 5
      src/features/admin/confirmPaper/ConfirmPaper.vue
  3. 2 2
      vite.config.ts

+ 21 - 19
src/devLoginParams.ts

@@ -20,28 +20,30 @@
 //   // markerId: "482",
 //   // markerId: "483",
 // };
-export const LOGIN_CONFIG = {
-  isAdmin: false,
-  forceChange: false,
-  loginName: "fl02",
-  // loginName: "spj432-01",
-  // loginName: "liuyang",
-  password: "123456",
-  examId: "346",
-  markerId: "17125",
-  // markerId: "2692",
-  // markerId: "482",
-  // markerId: "483",
-};
-/** 224 管理员 */
+
+//线上数据
 // export const LOGIN_CONFIG = {
-//   isAdmin: true,
-//   forceChange: true,
-//   loginName: "admin-ch",
+//   isAdmin: false,
+//   forceChange: false,
+//   loginName: "fl02",
+//   // loginName: "spj432-01",
+//   // loginName: "liuyang",
 //   password: "123456",
-//   examId: "1",
-//   markerId: "339",
+//   examId: "346",
+//   markerId: "17125",
+//   // markerId: "2692",
+//   // markerId: "482",
+//   // markerId: "483",
 // };
+/** 224 管理员 */
+export const LOGIN_CONFIG = {
+  isAdmin: true,
+  forceChange: true,
+  loginName: "admin-test",
+  password: "123456",
+  examId: "1",
+  markerId: "339",
+};
 
 /** 255 评卷员 */
 // export const LOGIN_CONFIG = {

+ 18 - 5
src/features/admin/confirmPaper/ConfirmPaper.vue

@@ -1,5 +1,5 @@
 <template>
-  <div v-if="!dataError" class="tw-h-screen">
+  <div v-if="!dataError" class="tw-h-screen confirm-paper">
     <header
       class="tw-flex tw-gap-2 tw-justify-between tw-items-center header-container"
     >
@@ -51,14 +51,14 @@
         class="tw-flex tw-flex-col tw-justify-between"
       >
         <div class="tw-m-2 tw-flex-1 tw-overflow-auto">
-          <div v-if="pageType === 'DATA_CHECK'">
+          <div v-if="pageType === 'DATA_CHECK'" class="tw-my-2 top-block">
             是否缺考:
             <a-radio-group v-if="student" v-model:value="student.absent">
               <a-radio :value="true">是</a-radio>
               <a-radio :value="false">否</a-radio>
             </a-radio-group>
           </div>
-          <div v-if="pageType === 'DATA_CHECK'" class="tw-my-2">
+          <div v-if="pageType === 'DATA_CHECK'" class="tw-my-2 top-block">
             试卷类型:
             <a-input
               v-if="student"
@@ -90,7 +90,8 @@
                   <a-input
                     class="normal-input"
                     :class="{
-                      'long-input': group.mainTitle.match(/多选|多项|不定项/),
+                      'long-input': group.mainTitle.match(/单选|多选|多项|不定项/),
+                      'middle-input': group.mainTitle.match(/判断/),
                     }"
                     :value="question.answer"
                     :maxLength="
@@ -501,6 +502,10 @@ function rotateRight() {
   width: 94px;
   padding: 4px;
 }
+.normal-input.middle-input{
+  width: 61px !important;
+  padding: 4px;
+}
 .header-container {
   position: relative;
   height: 56px;
@@ -537,4 +542,12 @@ function rotateRight() {
   visibility: hidden;
   opacity: 0;
 }
-</style>
+.confirm-paper .top-block{
+  background-color:#fff;
+  height:50px;
+  padding:0 20px;
+  display:flex;
+  align-items:center;
+  border-radius:6px;
+}
+</style>

+ 2 - 2
vite.config.ts

@@ -3,8 +3,8 @@ 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.225";
-const SERVER_URL = "https://www.markingcloud.com";
+const SERVER_URL = "http://192.168.10.224";
+// const SERVER_URL = "https://www.markingcloud.com";
 const path = require("path");
 
 function mockDevLogin(): Plugin {