chenken 6 years ago
parent
commit
731868906e

+ 27 - 12
src/modules/oe/component/commonForm.vue

@@ -1,6 +1,6 @@
 <template>
   <el-form :model="form" label-width="120px">
-    <el-col :span="8">
+    <el-col :span="6">
       <el-form-item label="考试批次">
         <el-select
           v-model="form.examId"
@@ -11,6 +11,7 @@
           clearable
           @clear="getExams"
           placeholder="请选择考试批次"
+          size="small"
         >
           <el-option
             v-for="item in examList"
@@ -22,7 +23,7 @@
         </el-select>
       </el-form-item>
     </el-col>
-    <el-col :span="8">
+    <el-col :span="6">
       <el-form-item label="学习中心">
         <el-select
           v-if="currentPagePrivileges.ORG_FIND_ALL"
@@ -34,6 +35,7 @@
           clearable
           @clear="getOrgs"
           placeholder="全部"
+          size="small"
         >
           <el-option
             v-for="item in orgList"
@@ -44,6 +46,7 @@
           </el-option>
         </el-select>
         <el-input
+          size="small"
           v-model="orgName"
           v-if="!currentPagePrivileges.ORG_FIND_ALL"
           :disabled="true"
@@ -51,9 +54,14 @@
         </el-input>
       </el-form-item>
     </el-col>
-    <el-col :span="8">
+    <el-col :span="6">
       <el-form-item label="课程">
-        <el-select v-model="form.courseId" clearable placeholder="全部">
+        <el-select
+          v-model="form.courseId"
+          clearable
+          placeholder="全部"
+          size="small"
+        >
           <el-option
             v-for="item in courseList"
             :key="item.id"
@@ -64,12 +72,13 @@
         </el-select>
       </el-form-item>
     </el-col>
-    <el-col :span="8">
+    <el-col :span="6">
       <el-form-item label="课程层次">
         <el-select
           v-model="form.courseLevel"
           clearable
-          placeholder="请选择课程层次"
+          placeholder="不限"
+          size="small"
         >
           <el-option
             v-for="item in courseLevels"
@@ -81,20 +90,26 @@
         </el-select>
       </el-form-item>
     </el-col>
-    <el-col :span="8">
+    <el-col :span="6">
       <el-form-item label="姓名">
-        <el-input v-model="form.studentName" placeholder="姓名"> </el-input>
+        <el-input size="small" v-model="form.studentName" placeholder="姓名">
+        </el-input>
       </el-form-item>
     </el-col>
-    <el-col :span="8">
+    <el-col :span="6">
       <el-form-item label="身份证号">
-        <el-input v-model="form.identityNumber" placeholder="身份证号">
+        <el-input
+          size="small"
+          v-model="form.identityNumber"
+          placeholder="身份证号"
+        >
         </el-input>
       </el-form-item>
     </el-col>
-    <el-col :span="8">
+    <el-col :span="6">
       <el-form-item label="学号">
-        <el-input v-model="form.studentCode" placeholder="学号"> </el-input>
+        <el-input size="small" v-model="form.studentCode" placeholder="学号">
+        </el-input>
       </el-form-item>
     </el-col>
     <slot></slot>

+ 18 - 0
src/modules/oe/views/absent.vue

@@ -15,6 +15,7 @@
               type="primary"
               >查询
             </el-button>
+            <el-button size="small" @click="resetForm">重置</el-button>
             <commonExportVue
               :form="form"
               :exportUrl="exportUrl"
@@ -108,6 +109,23 @@ export default {
     ...mapState({ user: state => state.user })
   },
   methods: {
+    resetForm() {
+      this.form = {
+        examRecordDataId: null,
+        courseId: null,
+        courseLevel: null,
+        examId: null,
+        examRecordId: null,
+        identityNumber: null,
+        orgId: null,
+        studentCode: null,
+        studentName: null,
+        pageNo: 1,
+        pageSize: 10,
+        rootOrgId: "",
+        auditStatus: null
+      };
+    },
     search() {
       if (!this.form.examId) {
         this.$notify({

+ 38 - 6
src/modules/oe/views/alreadyAudited.vue

@@ -2,14 +2,19 @@
   <el-container>
     <el-main>
       <commonFormVue :form="form" :getExamCondition="getExamCondition">
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="考试ID">
-            <el-input v-model="form.examRecordDataId"></el-input>
+            <el-input
+              size="small"
+              v-model="form.examRecordDataId"
+              placeholder="考试ID"
+            ></el-input>
           </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="审核结果">
             <el-select
+              size="small"
               v-if="currentPagePrivileges.INVIGILATE_AUDIT_STATUS"
               v-model="form.status"
               clearable
@@ -26,9 +31,10 @@
             </el-input>
           </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="审核说明">
             <el-select
+              size="small"
               v-model="form.disciplineType"
               clearable
               placeholder="全部"
@@ -43,9 +49,13 @@
             </el-select>
           </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="审核人">
-            <el-input v-model="form.auditUserName" placeholder="审核人">
+            <el-input
+              size="small"
+              v-model="form.auditUserName"
+              placeholder="审核人"
+            >
             </el-input>
           </el-form-item>
         </el-col>
@@ -60,6 +70,7 @@
               icon="el-icon-search"
               >查询
             </el-button>
+            <el-button size="small" @click="resetForm">重置</el-button>
           </div>
         </el-col>
       </el-row>
@@ -188,6 +199,27 @@ export default {
     ...mapState({ user: state => state.user })
   },
   methods: {
+    resetForm() {
+      this.form = {
+        examRecordDataId: null,
+        hasStranger: null,
+        courseId: null,
+        courseLevel: null,
+        examId: null,
+        faceSuccessPercentLower: null,
+        faceSuccessPercentUpper: null,
+        identityNumber: null,
+        orgId: null,
+        studentCode: null,
+        studentName: null,
+        isWarn: null,
+        pageNo: 1,
+        pageSize: 10,
+        disciplineType: "",
+        auditUserName: "",
+        status: ""
+      };
+    },
     search() {
       if (!this.form.examId) {
         this.$notify({

+ 82 - 37
src/modules/oe/views/awaitingAudit.vue

@@ -2,64 +2,78 @@
   <el-container>
     <el-main>
       <commonFormVue :form="form" :getExamCondition="getExamCondition">
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="考试ID">
-            <el-input v-model="form.examRecordDataId"></el-input>
+            <el-input
+              size="small"
+              v-model="form.examRecordDataId"
+              placeholder="考试ID"
+            ></el-input>
           </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="需要审核">
-            <el-select v-model="form.isWarn" clearable placeholder="全部">
+            <el-select
+              size="small"
+              v-model="form.isWarn"
+              clearable
+              placeholder="全部"
+            >
               <el-option value="true" label="是"></el-option>
               <el-option value="false" label="否"></el-option>
             </el-select>
           </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="陌生人脸">
-            <el-select v-model="form.hasStranger" clearable placeholder="全部">
+            <el-select
+              size="small"
+              v-model="form.hasStranger"
+              clearable
+              placeholder="全部"
+            >
               <el-option value="true" label="有"></el-option>
               <el-option value="false" label="无"></el-option>
             </el-select>
           </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="人脸识别成功率">
             <el-row>
               <el-col :span="10">
                 <el-input
-                  size="mini"
+                  size="small"
                   v-model="form.faceSuccessPercentLower"
-                  label="下限"
+                  placeholder="下限"
                 ></el-input>
               </el-col>
-              <el-col :span="2">&nbsp;</el-col>
+              <el-col :span="4">&nbsp;</el-col>
               <el-col :span="10">
                 <el-input
-                  size="mini"
+                  size="small"
                   v-model="form.faceSuccessPercentUpper"
-                  label="上限"
+                  placeholder="上限"
                 ></el-input>
               </el-col>
             </el-row>
           </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="人脸真实性比率">
             <el-row>
               <el-col :span="10">
                 <el-input
-                  size="mini"
+                  size="small"
                   v-model="form.livenessSuccessPercentLower"
-                  label="下限"
+                  placeholder="下限"
                 ></el-input>
               </el-col>
-              <el-col :span="2">&nbsp;</el-col>
+              <el-col :span="4">&nbsp;</el-col>
               <el-col :span="10">
                 <el-input
-                  size="mini"
+                  size="small"
                   v-model="form.livenessSuccessPercentUpper"
-                  label="上限"
+                  placeholder="上限"
                 ></el-input>
               </el-col>
             </el-row>
@@ -76,27 +90,37 @@
               icon="el-icon-search"
               >查询
             </el-button>
-            <el-button-group
+            <el-button size="small" @click="resetForm">重置</el-button>
+            <el-dropdown
+              class="button_left"
               v-show="currentPagePrivileges.PANEING_BATCHAUDIT"
-              style="margin-left:5px;"
             >
-              <el-button
-                type="success"
-                size="small"
-                :disabled="batchAuditBtnDisabled"
-                @click="batchAudit('pass')"
-                icon="el-icon-success"
-                >通&nbsp;&nbsp;&nbsp;&nbsp;过
-              </el-button>
-              <el-button
-                type="danger"
-                size="small"
-                :disabled="batchAuditBtnDisabled"
-                @click="batchAudit('nopass')"
-                icon="el-icon-error"
-                >不通过
+              <el-button type="primary" size="small">
+                批量审核 <i class="el-icon-arrow-down el-icon--right"></i>
               </el-button>
-            </el-button-group>
+              <el-dropdown-menu slot="dropdown">
+                <el-dropdown-item>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    :disabled="batchAuditBtnDisabled"
+                    @click="batchAudit('pass')"
+                  >
+                    <i class="el-icon-tickets"></i> 通过
+                  </el-button>
+                </el-dropdown-item>
+                <el-dropdown-item>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    :disabled="batchAuditBtnDisabled"
+                    @click="batchAudit('nopass')"
+                  >
+                    <i class="el-icon-tickets"></i> 不通过
+                  </el-button>
+                </el-dropdown-item>
+              </el-dropdown-menu>
+            </el-dropdown>
           </div>
         </el-col>
       </el-row>
@@ -123,7 +147,7 @@
                   v-show="currentPagePrivileges.SNAPSHOT_DETAILS"
                   @click="gotoCaptureDetail(scope.row.dataId)"
                   type="text"
-                  >
+                >
                   {{ scope.row.dataId }}
                 </el-button>
                 <span v-show="!currentPagePrivileges.SNAPSHOT_DETAILS">
@@ -307,6 +331,27 @@ export default {
     ...mapState({ user: state => state.user })
   },
   methods: {
+    resetForm() {
+      this.form = {
+        examRecordDataId: null,
+        hasStranger: null,
+        courseId: null,
+        courseLevel: null,
+        examId: null,
+        examRecordId: null,
+        faceSuccessPercentLower: null,
+        faceSuccessPercentUpper: null,
+        livenessSuccessPercentLower: null,
+        livenessSuccessPercentUpper: null,
+        identityNumber: null,
+        orgId: null,
+        studentCode: null,
+        studentName: null,
+        isWarn: null,
+        pageNo: 1,
+        pageSize: 10
+      };
+    },
     search() {
       if (!this.form.examId) {
         this.$notify({

+ 41 - 6
src/modules/oe/views/examDetail.vue

@@ -2,9 +2,11 @@
   <el-container>
     <el-main>
       <commonFormVue :form="form" :getExamCondition="getExamCondition">
-        <el-col :span="8">
+        <el-col :span="6"> </el-col>
+        <el-col :span="6">
           <el-form-item label="开始时间">
             <el-date-picker
+              size="small"
               v-model="form.startTime"
               type="datetime"
               placeholder="选择日期时间"
@@ -12,19 +14,24 @@
             </el-date-picker>
           </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="结束时间">
             <el-date-picker
+              size="small"
               v-model="form.endTime"
               type="datetime"
               placeholder="选择日期时间"
             >
-            </el-date-picker
-          ></el-form-item>
+            </el-date-picker>
+          </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="采集人">
-            <el-input v-model="form.infoCollector" placeholder="采集人">
+            <el-input
+              size="small"
+              v-model="form.infoCollector"
+              placeholder="采集人"
+            >
             </el-input>
           </el-form-item>
         </el-col>
@@ -39,6 +46,7 @@
               icon="el-icon-search"
               >查询
             </el-button>
+            <el-button size="small" @click="resetForm">重置</el-button>
             <commonExportVue
               v-show="currentPagePrivileges.EXAM_DETAIL_EXPORT"
               :form="form"
@@ -211,6 +219,29 @@ export default {
     ...mapState({ user: state => state.user })
   },
   methods: {
+    resetForm() {
+      this.form = {
+        examRecordDataId: null,
+        hasStranger: null,
+        courseId: null,
+        courseLevel: null,
+        examId: null,
+        examRecordId: null,
+        faceSuccessPercentLower: null,
+        faceSuccessPercentUpper: null,
+        identityNumber: null,
+        orgId: null,
+        studentCode: null,
+        studentName: null,
+        isWarn: null,
+        pageNo: 1,
+        pageSize: 10,
+        rootOrgId: null,
+        startTime: null,
+        endTime: null,
+        infoCollector: null
+      };
+    },
     search() {
       if (!this.form.examId) {
         this.$notify({
@@ -297,4 +328,8 @@ export default {
 .margin-top-10 {
   margin-top: 10px;
 }
+.el-date-editor.el-input,
+.el-date-editor.el-input__inner {
+  width: auto !important;
+}
 </style>

+ 36 - 4
src/modules/oe/views/examScheduling.vue

@@ -2,17 +2,26 @@
   <el-container>
     <el-main>
       <commonFormVue :form="form" :getExamCondition="getExamCondition">
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="完成状态">
-            <el-select v-model="form.finished" clearable placeholder="全部">
+            <el-select
+              size="small"
+              v-model="form.finished"
+              clearable
+              placeholder="全部"
+            >
               <el-option value="true" label="已完成"></el-option>
               <el-option value="false" label="未完成"></el-option>
             </el-select>
           </el-form-item>
         </el-col>
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="采集人">
-            <el-input v-model="form.infoCollector" placeholder="采集人">
+            <el-input
+              size="small"
+              v-model="form.infoCollector"
+              placeholder="采集人"
+            >
             </el-input>
           </el-form-item>
         </el-col>
@@ -27,6 +36,7 @@
               icon="el-icon-search"
               >查询
             </el-button>
+            <el-button size="small" @click="resetForm">重置</el-button>
             <commonExportVue
               v-show="currentPagePrivileges.EXAM_PARTICULARS_EXPORT"
               :form="form"
@@ -226,6 +236,28 @@ export default {
     ...mapState({ user: state => state.user })
   },
   methods: {
+    resetForm() {
+      this.form = {
+        examRecordDataId: null,
+        hasStranger: null,
+        courseId: null,
+        courseLevel: null,
+        examId: null,
+        examRecordId: null,
+        faceSuccessPercentLower: null,
+        faceSuccessPercentUpper: null,
+        livenessSuccessPercentLower: null,
+        livenessSuccessPercentUpper: null,
+        identityNumber: null,
+        orgId: null,
+        studentCode: null,
+        studentName: null,
+        isWarn: null,
+        pageNo: 1,
+        pageSize: 10,
+        examType: ""
+      };
+    },
     search() {
       if (!this.form.examId) {
         this.$notify({

+ 26 - 3
src/modules/oe/views/illegalityNameList.vue

@@ -2,9 +2,10 @@
   <el-container>
     <el-main>
       <commonFormVue :form="form" :getExamCondition="getExamCondition">
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="违纪说明">
             <el-select
+              size="small"
               v-model="form.disciplineType"
               clearable
               placeholder="全部"
@@ -28,8 +29,9 @@
               size="small"
               icon="el-icon-search"
               type="primary"
-              >查询</el-button
-            >
+              >查询
+            </el-button>
+            <el-button size="small" @click="resetForm">重置</el-button>
             <commonExportVue
               v-show="currentPagePrivileges.BREACH_THE_PRINCIPLE_EXPORT"
               :form="form"
@@ -166,6 +168,27 @@ export default {
     ...mapState({ user: state => state.user })
   },
   methods: {
+    resetForm() {
+      this.form = {
+        examRecordDataId: null,
+        hasStranger: null,
+        courseId: null,
+        courseLevel: null,
+        examId: null,
+        examRecordId: null,
+        faceSuccessPercentLower: null,
+        faceSuccessPercentUpper: null,
+        livenessSuccessPercentLower: null,
+        livenessSuccessPercentUpper: null,
+        identityNumber: null,
+        orgId: null,
+        studentCode: null,
+        studentName: null,
+        isWarn: null,
+        pageNo: 1,
+        pageSize: 10
+      };
+    },
     search() {
       if (!this.form.examId) {
         this.$notify({

+ 22 - 0
src/modules/oe/views/reexamine.vue

@@ -13,6 +13,7 @@
               icon="el-icon-search"
               >查询
             </el-button>
+            <el-button size="small" @click="resetForm">重置</el-button>
           </div>
         </el-col>
       </el-row>
@@ -149,6 +150,27 @@ export default {
     ...mapState({ user: state => state.user })
   },
   methods: {
+    resetForm() {
+      this.form = {
+        examRecordDataId: null,
+        hasStranger: null,
+        courseId: null,
+        courseLevel: null,
+        examId: null,
+        examRecordId: null,
+        faceSuccessPercentLower: null,
+        faceSuccessPercentUpper: null,
+        livenessSuccessPercentLower: null,
+        livenessSuccessPercentUpper: null,
+        identityNumber: null,
+        orgId: null,
+        studentCode: null,
+        studentName: null,
+        isWarn: null,
+        pageNo: 1,
+        pageSize: 10
+      };
+    },
     search() {
       if (!this.form.examId) {
         this.$notify({

+ 30 - 2
src/modules/oe/views/scoreStatistics.vue

@@ -2,9 +2,14 @@
   <el-container>
     <el-main>
       <commonFormVue :form="form" :getExamCondition="getExamCondition">
-        <el-col :span="8">
+        <el-col :span="6">
           <el-form-item label="是否缺考">
-            <el-select v-model="form.finished" clearable placeholder="全部">
+            <el-select
+              size="small"
+              v-model="form.finished"
+              clearable
+              placeholder="全部"
+            >
               <el-option value="false" label="是"></el-option>
               <el-option value="true" label="否"></el-option>
             </el-select>
@@ -21,6 +26,7 @@
               icon="el-icon-search"
               >查询
             </el-button>
+            <el-button size="small" @click="resetForm">重置</el-button>
             <commonExportVue
               v-show="currentPagePrivileges.SCORE_STATICS_EXPORT"
               :form="form"
@@ -143,6 +149,28 @@ export default {
     ...mapState({ user: state => state.user })
   },
   methods: {
+    resetForm() {
+      this.form = {
+        examRecordDataId: null,
+        hasStranger: null,
+        courseId: null,
+        courseLevel: null,
+        examId: null,
+        examRecordId: null,
+        faceSuccessPercentLower: null,
+        faceSuccessPercentUpper: null,
+        livenessSuccessPercentLower: null,
+        livenessSuccessPercentUpper: null,
+        identityNumber: null,
+        orgId: null,
+        studentCode: null,
+        studentName: null,
+        isWarn: null,
+        pageNo: 1,
+        pageSize: 10,
+        finished: ""
+      };
+    },
     search() {
       if (!this.form.examId) {
         this.$notify({