Explorar o código

feat: 命题任务提示语

zhangjie hai 11 meses
pai
achega
7dee15d86e

+ 17 - 1
src/modules/admin/components/ModifySchool.vue

@@ -15,7 +15,7 @@
       :model="modalForm"
       :model="modalForm"
       :rules="rules"
       :rules="rules"
       :key="modalForm.id"
       :key="modalForm.id"
-      label-width="110px"
+      label-width="130px"
     >
     >
       <el-form-item prop="code" label="学校代码:">
       <el-form-item prop="code" label="学校代码:">
         {{ modalForm.code }}
         {{ modalForm.code }}
@@ -81,6 +81,13 @@
           <img class="bg-view" :src="bgSrc" alt="logo" />
           <img class="bg-view" :src="bgSrc" alt="logo" />
         </div>
         </div>
       </el-form-item>
       </el-form-item>
+      <el-form-item prop="examTaskInstr" label="命题任务提示语:">
+        <el-input
+          v-model.trim="modalForm.examTaskInstr"
+          placeholder="请输入"
+          clearable
+        ></el-input>
+      </el-form-item>
     </el-form>
     </el-form>
     <div slot="footer">
     <div slot="footer">
       <el-button type="danger" @click="cancel" plain>取消</el-button>
       <el-button type="danger" @click="cancel" plain>取消</el-button>
@@ -105,6 +112,7 @@ const initModalForm = {
   backgroundImage: "",
   backgroundImage: "",
   backgroundImageMd5: "",
   backgroundImageMd5: "",
   initPassword: "",
   initPassword: "",
+  examTaskInstr: "",
   defaultSchool: false,
   defaultSchool: false,
   hasPaperNumber: false,
   hasPaperNumber: false,
 };
 };
@@ -175,6 +183,14 @@ export default {
           },
           },
         ],
         ],
         initPassword: password,
         initPassword: password,
+        examTaskInstr: [
+          {
+            required: false,
+            max: 100,
+            message: "内容不超过100字符",
+            trigger: "change",
+          },
+        ],
       },
       },
     };
     };
   },
   },

+ 8 - 1
src/modules/exam/components/createExamAndPrintTask/InfoExamTask.vue

@@ -113,7 +113,12 @@
           <tr>
           <tr>
             <th>试卷类型</th>
             <th>试卷类型</th>
             <th>试卷文件</th>
             <th>试卷文件</th>
-            <th>答题卡</th>
+            <th>
+              答题卡
+              <span v-if="examTaskInstr" class="tips-markedness">
+                ({{ examTaskInstr }})
+              </span>
+            </th>
             <th v-if="!IS_REBUILD">操作</th>
             <th v-if="!IS_REBUILD">操作</th>
           </tr>
           </tr>
           <tr v-for="(attachment, index) in paperAttachments" :key="index">
           <tr v-for="(attachment, index) in paperAttachments" :key="index">
@@ -501,6 +506,8 @@ export default {
       curUploadType: "paper",
       curUploadType: "paper",
       attachmentLimitCount: 26,
       attachmentLimitCount: 26,
       abc: "abcdefghijklmnopqrstuvwxyz".toUpperCase(),
       abc: "abcdefghijklmnopqrstuvwxyz".toUpperCase(),
+      examTaskInstr: this.$ls.get("schoolInfo", { examTaskInstr: "" })
+        .examTaskInstr,
       // image-preview
       // image-preview
       curImage: {},
       curImage: {},
       curImageIndex: 0,
       curImageIndex: 0,

+ 8 - 1
src/modules/exam/components/taskApply/TaskPaper.vue

@@ -25,7 +25,12 @@
       <tr>
       <tr>
         <th>试卷类型</th>
         <th>试卷类型</th>
         <th>试卷文件</th>
         <th>试卷文件</th>
-        <th>答题卡</th>
+        <th>
+          答题卡
+          <span v-if="examTaskInstr" class="tips-markedness">
+            ({{ examTaskInstr }})
+          </span>
+        </th>
         <th v-if="taskStatus.IS_APPLY && !taskStatus.IS_REBUILD">操作</th>
         <th v-if="taskStatus.IS_APPLY && !taskStatus.IS_REBUILD">操作</th>
       </tr>
       </tr>
       <tr v-for="(attachment, index) in paperAttachments" :key="index">
       <tr v-for="(attachment, index) in paperAttachments" :key="index">
@@ -455,6 +460,8 @@ export default {
       attachmentLimitCount: 26,
       attachmentLimitCount: 26,
       abc: "abcdefghijklmnopqrstuvwxyz".toUpperCase(),
       abc: "abcdefghijklmnopqrstuvwxyz".toUpperCase(),
       cards: [],
       cards: [],
+      examTaskInstr: this.$ls.get("schoolInfo", { examTaskInstr: "" })
+        .examTaskInstr,
       // card-build
       // card-build
       cardBuildPresetData: {},
       cardBuildPresetData: {},
       // image-preview
       // image-preview