Explorar el Código

打回原因限制改为300字,试卷左上角加上题号-题名

刘洋 hace 1 año
padre
commit
a68f4fbebe

+ 8 - 0
src/assets/styles/app.scss

@@ -139,6 +139,14 @@ img {
     left: 30px;
     top: 20px;
   }
+  .question-info{
+    top:10px;
+    left:25px;
+    z-index:5;
+    font-size:14px;
+    font-weight:bold;
+    color:$color--primary;
+  }
 }
 .table-view {
   transition: all 0.3s;

+ 2 - 2
src/components/shared/SendBackMark.vue

@@ -78,7 +78,7 @@ watch(visible, () => {
 
 const rules: EpFormRules = {
   reason: [{ required: true, message: '请选择打回原因' }],
-  description: [{ type: 'string', max: 50, message: '说明文字限制50字以内' }],
+  description: [{ type: 'string', max: 300, message: '说明文字限制300字以内' }],
 }
 
 const reason = ['给分太高', '给分太低', '注意,评分偏紧', '注意,评分偏松', '评分不稳定,请认真评卷', '其他'].map((v) => ({
@@ -93,7 +93,7 @@ const items: any[] = [
     labelWidth: '80px',
     prop: 'description',
     slotType: 'input',
-    slot: { type: 'textarea', maxlength: 50, resize: 'none', rows: 6, showWordLimit: true },
+    slot: { type: 'textarea', maxlength: 300, resize: 'none', rows: 6, showWordLimit: true },
   },
 ]
 

+ 1 - 0
src/directives/dragDialog.ts

@@ -11,6 +11,7 @@ function resetPosition(key: any) {
     localStorage.setItem(key, JSON.stringify(obj))
   }
 }
+//消息框的拖拽
 export const dragDialog = {
   mounted(el: any, binding: any, vnode: any) {
     const bValue = binding.value

+ 2 - 2
src/directives/index.ts

@@ -6,9 +6,9 @@ import { dragDialog } from './dragDialog'
 import { permBtn } from './permBtn'
 
 export function setupDirectives(app: any) {
-  app.directive('dialogResize', dialogResize)
+  app.directive('dialogResize', dialogResize) //消息框
   app.directive('dialogResizeImg', dialogResizeImg)
-  app.directive('customDialogResizeImg', customDialogResizeImg)
+  app.directive('customDialogResizeImg', customDialogResizeImg) //试卷预览
   app.directive('dialogResizeStandard', dialogResizeStandard)
   app.directive('dragDialog', dragDialog)
   app.directive('permBtn', permBtn)

+ 9 - 0
src/modules/analysis/group-monitoring-detail/index.vue

@@ -70,6 +70,7 @@
       <div class="flex direction-column flex-1 overflow-hidden radius-base fill-blank relative paper-view">
         <div ref="imgWrap" class="flex-1 p-extra-small scroll-auto img-wrap">
           <img :src="current?.filePath" alt="" class="paper-img relative" />
+          <p v-if="current" class="absolute question-info">{{ current.mainNumber + '-' + current.mainName }}</p>
           <p v-if="current" class="absolute mark-score">{{ current.headerScore ?? current.markerScore }}</p>
         </div>
         <span class="preview" @click="onPreview">
@@ -371,6 +372,14 @@ fetchTable()
   left: 30px;
   top: 20px;
 }
+.question-info {
+  top: 10px;
+  left: 25px;
+  z-index: 5;
+  font-size: 14px;
+  font-weight: bold;
+  color: $color--primary;
+}
 
 .header-view {
   background-color: #333;

+ 1 - 0
src/modules/analysis/marker-statistics/index.vue

@@ -40,6 +40,7 @@
               <span class="preview" @click="onPreview">
                 <svg-icon name="preview"></svg-icon>
               </span>
+              <p v-if="current" class="absolute question-info">{{ current.mainNumber + '-' + current.mainName }}</p>
               <p v-if="current" class="absolute mark-score">{{ current.markScore }}</p>
               <!-- <right-button class="next-button" @click="checkNext" /> -->
               <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">

+ 1 - 0
src/modules/analysis/view-marked-detail/index.vue

@@ -25,6 +25,7 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="current" class="absolute question-info">{{ current.mainNumber + '-' + current.mainName }}</p>
           <p v-if="current" class="absolute mark-score">{{ current.markScore }}</p>
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">

+ 3 - 0
src/modules/expert/assess/index.vue

@@ -20,6 +20,9 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="currentAssessPaper" class="absolute question-info">
+            {{ currentAssessPaper.mainNumber + '-' + currentAssessPaper.mainName }}
+          </p>
           <p v-if="currentAssessPaper" class="absolute mark-score">{{ currentAssessPaper.score }}</p>
 
           <!-- <right-button class="next-button" @click="checkNext" /> -->

+ 3 - 0
src/modules/expert/expert/index.vue

@@ -20,6 +20,9 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="currentExpertPaper" class="absolute question-info">
+            {{ currentExpertPaper.mainNumber + '-' + currentExpertPaper.mainName }}
+          </p>
           <p v-if="currentExpertPaper" class="absolute mark-score">{{ currentExpertPaper.score }}</p>
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap relative">

+ 3 - 0
src/modules/expert/sample/index.vue

@@ -20,6 +20,9 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="currentRfPaper" class="absolute question-info">
+            {{ currentRfPaper.mainNumber + '-' + currentRfPaper.mainName }}
+          </p>
           <p v-if="currentRfPaper" class="absolute mark-score">{{ currentRfPaper.score }}</p>
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap relative">

+ 3 - 0
src/modules/expert/standard/index.vue

@@ -14,6 +14,9 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="currentStandardPaper" class="absolute question-info">
+            {{ currentStandardPaper.mainNumber + '-' + currentStandardPaper.mainName }}
+          </p>
           <p v-if="currentStandardPaper" class="absolute mark-score">{{ currentStandardPaper.score }}</p>
 
           <!-- <right-button class="next-button" @click="checkNext" /> -->

+ 3 - 0
src/modules/expert/training/index.vue

@@ -18,6 +18,9 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="current" class="absolute question-info">
+            {{ current.mainNumber + '-' + current.mainName }}
+          </p>
           <p v-if="current" class="absolute mark-score">{{ current.score }}</p>
 
           <!-- <right-button class="next-button" @click="checkNext" /> -->

+ 3 - 0
src/modules/marking/arbitration/index.vue

@@ -21,6 +21,9 @@
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">
             <img :src="dataUrl" alt="" class="paper-img" :style="{ 'background-color': frontColor }" />
+            <p v-if="currentArbitration" class="absolute question-info">
+              {{ currentArbitration.mainNumber + '-' + currentArbitration.mainName }}
+            </p>
             <p v-if="currentArbitration" class="absolute mark-score">
               {{ currentArbitration.markScore }}
             </p>

+ 3 - 0
src/modules/marking/inquiry-result/index.vue

@@ -31,6 +31,9 @@
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">
             <img :src="dataUrl" alt="" class="paper-img" :style="{ 'background-color': frontColor }" />
+            <p v-if="current" class="absolute question-info">
+              {{ current.mainNumber + '-' + current.mainName }}
+            </p>
             <p v-if="current" class="absolute mark-score">
               {{ current.markScore }}
             </p>

+ 3 - 0
src/modules/marking/problem/index.vue

@@ -31,6 +31,9 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="currentProblem" class="absolute question-info">
+            {{ currentProblem.mainNumber + '-' + currentProblem.mainName }}
+          </p>
           <p v-if="currentProblem" class="absolute mark-score">{{ currentProblem.markScore }}</p>
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">

+ 3 - 0
src/modules/marking/repeat/index.vue

@@ -28,6 +28,9 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="currentReMarkPaper" class="absolute question-info">
+            {{ currentReMarkPaper.mainNumber + '-' + currentReMarkPaper.mainName }}
+          </p>
           <p v-if="currentReMarkPaper" class="absolute mark-score">{{ currentReMarkPaper.markScore }}</p>
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">

+ 3 - 0
src/modules/marking/training-record/index.vue

@@ -18,6 +18,9 @@
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap relative">
             <img :src="dataUrl" alt="" class="paper-img" :style="{ 'background-color': frontColor }" />
+            <p v-if="current" class="absolute question-info">
+              {{ current.mainNumber + '-' + current.mainName }}
+            </p>
             <p v-if="current" class="absolute mark-score">{{ current?.markScore }}</p>
           </div>
         </pane>

+ 3 - 0
src/modules/monitor/system-check/index.vue

@@ -26,6 +26,9 @@
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">
             <img :src="dataUrl" alt="" class="paper-img" :style="{ 'background-color': frontColor }" />
+            <p v-if="currentSystemCheckPaper" class="absolute question-info">
+              {{ currentSystemCheckPaper.mainNumber + '-' + currentSystemCheckPaper.mainName }}
+            </p>
             <p v-if="currentSystemCheckPaper" class="absolute mark-score">
               {{ currentSystemCheckPaper.headerScore ?? currentSystemCheckPaper.markerScore }}
             </p>

+ 1 - 0
src/modules/monitor/training-monitoring-detail/index.vue

@@ -19,6 +19,7 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="current" class="absolute question-info">{{ current.mainNumber + '-' + current.mainName }}</p>
           <p v-if="current" class="absolute mark-score">{{ current.markScore }}</p>
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">

+ 3 - 0
src/modules/quality/subjective-check/index.vue

@@ -21,6 +21,9 @@
           <span class="preview" @click="onPreview">
             <svg-icon name="preview"></svg-icon>
           </span>
+          <p v-if="currentSubjectiveCheck" class="absolute question-info">
+            {{ currentSubjectiveCheck.mainNumber + '-' + currentSubjectiveCheck.mainName }}
+          </p>
           <p v-if="currentSubjectiveCheck" class="absolute mark-score">{{ currentSubjectiveCheck.markScore }}</p>
           <!-- <right-button class="next-button" @click="checkNext" /> -->
           <div class="flex-1 p-base scroll-auto mark-content-paper img-wrap">