Ver Fonte

切屏次数

xiatian há 3 anos atrás
pai
commit
53d6ff114d

+ 55 - 0
src/modules/oe/views/alreadyAudited.vue

@@ -115,6 +115,21 @@
               ></el-date-picker>
             </el-form-item>
           </el-col>
+          <el-col :span="12">
+            <el-form-item label="切屏次数">
+              <el-input
+                v-model="form.switchScreenCountStart"
+                style="width: 160px"
+                size="small"
+              ></el-input>
+              至
+              <el-input
+                v-model="form.switchScreenCountEnd"
+                style="width: 160px"
+                size="small"
+              ></el-input>
+            </el-form-item>
+          </el-col>
           <!--          <el-col :span="6">
             <el-form-item label="Ip">
               <el-input
@@ -298,6 +313,12 @@
               prop="paperSubmitTime"
               width="120"
             ></el-table-column>
+            <el-table-column
+              sortable
+              label="切屏次数"
+              prop="switchScreenCount"
+              width="120"
+            ></el-table-column>
             <el-table-column
               sortable
               label="审核说明"
@@ -408,6 +429,8 @@ export default {
       tableLoading: false,
       showAllCondition: false,
       form: {
+        switchScreenCountStart: null,
+        switchScreenCountEnd: null,
         examRecordDataId: null,
         hasStranger: null,
         courseId: null,
@@ -496,6 +519,32 @@ export default {
     this.getDisciplineTypeList("");
   },
   methods: {
+    checkParam() {
+      var reg = /^0$|^[1-9][0-9]$/;
+      if (this.form.switchScreenCountStart) {
+        if (!reg.test(this.form.switchScreenCountStart)) {
+          this.$notify({
+            title: "警告",
+            message: "切屏次数起始值错误",
+            type: "warning",
+            duration: 2000,
+          });
+          return false;
+        }
+      }
+      if (this.form.switchScreenCountEnd) {
+        if (!reg.test(this.form.switchScreenCountEnd)) {
+          this.$notify({
+            title: "警告",
+            message: "切屏次数截止值错误",
+            type: "warning",
+            duration: 2000,
+          });
+          return false;
+        }
+      }
+      return true;
+    },
     doRedoAuditNoPass() {
       this.$refs["redoAuditForm"].validate((valid) => {
         if (valid) {
@@ -636,6 +685,9 @@ export default {
         });
         return false;
       }
+      if (!this.checkParam()) {
+        return false;
+      }
       if (type && type == "clickSelectBtn") {
         this.form.pageNo = 1;
       }
@@ -738,6 +790,9 @@ export default {
         });
         return false;
       }
+      if (!this.checkParam()) {
+        return false;
+      }
 
       this.$confirm("确定执行导出?", "提示", {
         confirmButtonText: "确定",

+ 55 - 1
src/modules/oe/views/examDetail.vue

@@ -69,6 +69,21 @@
               ></el-input>
             </el-form-item>
           </el-col>
+          <el-col :span="12">
+            <el-form-item label="切屏次数">
+              <el-input
+                v-model="form.switchScreenCountStart"
+                style="width: 160px"
+                size="small"
+              ></el-input>
+              至
+              <el-input
+                v-model="form.switchScreenCountEnd"
+                style="width: 160px"
+                size="small"
+              ></el-input>
+            </el-form-item>
+          </el-col>
         </el-row>
       </commonFormVue>
       <el-col :span="24">
@@ -283,6 +298,12 @@
               prop="paperTotalScore"
               width="120"
             ></el-table-column>
+            <el-table-column
+              sortable
+              label="切屏次数"
+              prop="switchScreenCount"
+              width="120"
+            ></el-table-column>
             <el-table-column
               sortable
               label="是否违纪"
@@ -521,6 +542,8 @@ export default {
       dialogVisible: false,
       // uploadDisabled: true,
       form: {
+        switchScreenCountStart: null,
+        switchScreenCountEnd: null,
         rootOrgId: null,
         examRecordDataId: null,
         hasStranger: null,
@@ -590,6 +613,32 @@ export default {
     this.getDisciplineTypeList("");
   },
   methods: {
+    checkParam() {
+      var reg = /^0$|^[1-9][0-9]$/;
+      if (this.form.switchScreenCountStart) {
+        if (!reg.test(this.form.switchScreenCountStart)) {
+          this.$notify({
+            title: "警告",
+            message: "切屏次数起始值错误",
+            type: "warning",
+            duration: 2000,
+          });
+          return false;
+        }
+      }
+      if (this.form.switchScreenCountEnd) {
+        if (!reg.test(this.form.switchScreenCountEnd)) {
+          this.$notify({
+            title: "警告",
+            message: "切屏次数截止值错误",
+            type: "warning",
+            duration: 2000,
+          });
+          return false;
+        }
+      }
+      return true;
+    },
     handleDownload(file) {
       window.open(file.url);
       console.log(file);
@@ -667,6 +716,9 @@ export default {
         });
         return false;
       }
+      if (!this.checkParam()) {
+        return false;
+      }
       if (type && type == "clickSelectBtn") {
         this.form.pageNo = 1;
       }
@@ -732,7 +784,9 @@ export default {
         });
         return false;
       }
-
+      if (!this.checkParam()) {
+        return false;
+      }
       this.$confirm("确定执行导出?", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",