瀏覽代碼

feat: 评卷显示卷型

zhangjie 5 月之前
父節點
當前提交
d262007ef2
共有 3 個文件被更改,包括 24 次插入0 次删除
  1. 3 0
      src/features/mark/CommonMarkBody.vue
  2. 19 0
      src/styles/page.less
  3. 2 0
      src/types/index.ts

+ 3 - 0
src/features/mark/CommonMarkBody.vue

@@ -3,6 +3,9 @@
     <div v-if="markStatus" class="mark-body-status">
       {{ markStatus }}
     </div>
+    <div v-if="store.currentTask?.paperType" class="mark-body-papertype">
+      {{ store.currentTask?.paperType }}卷
+    </div>
     <div ref="dragContainer" class="mark-body-container">
       <div v-if="!store.currentTask" class="mark-body-none">
         <div>

+ 19 - 0
src/styles/page.less

@@ -910,6 +910,25 @@
     z-index: 1000;
   }
 
+  &-papertype {
+    position: absolute;
+    width: 50px;
+    height: 50px;
+    background: #ffece8;
+    border-radius: 4px;
+    font-size: 20px;
+    font-weight: 600;
+    color: #f53f3f;
+    line-height: 50px;
+    text-align: center;
+    border-radius: 50%;
+
+    top: 4px;
+    left: 4px;
+    pointer-events: none;
+    z-index: 1000;
+  }
+
   &-none {
     height: 100%;
     display: flex;

+ 2 - 0
src/types/index.ts

@@ -187,6 +187,8 @@ interface RawTask {
   examNumber: string;
   /** 试卷编号 */
   paperNumber?: string;
+  /** 试卷类型 */
+  paperType?: string;
   /** 一般不要用此处的subject,优先用setting.subject */
   subject?: Subject;
   /** 裁切图url */