Bläddra i källkod

网考学习中心用户重置后可以查看其它机构的bug修复

lideyin 5 år sedan
förälder
incheckning
2f04b9a514

+ 10 - 16
src/modules/oe/component/commonForm.vue

@@ -19,8 +19,7 @@
             :key="item.id"
             :label="item.name"
             :value="item.id"
-          >
-          </el-option>
+          ></el-option>
         </el-select>
       </el-form-item>
     </el-col>
@@ -44,8 +43,7 @@
             :key="item.id"
             :label="item.name"
             :value="item.id"
-          >
-          </el-option>
+          ></el-option>
         </el-select>
         <el-input
           class="form_search_width"
@@ -53,8 +51,8 @@
           v-model="orgName"
           v-if="!currentPagePrivileges.ORG_FIND_ALL"
           :disabled="true"
-        >
-        </el-input>
+        ></el-input>
+        <el-radio v-show="false" v-model="form.ORG_FIND_ALL"></el-radio>
       </el-form-item>
     </el-col>
     <el-col :span="6">
@@ -72,8 +70,7 @@
             :key="item.id"
             :label="item.name"
             :value="item.id"
-          >
-          </el-option>
+          ></el-option>
         </el-select>
       </el-form-item>
     </el-col>
@@ -84,8 +81,7 @@
           v-model="form.studentName"
           placeholder="姓名"
           class="form_search_width"
-        >
-        </el-input>
+        ></el-input>
       </el-form-item>
     </el-col>
     <el-col :span="6">
@@ -102,8 +98,7 @@
             :key="item.code"
             :label="item.name"
             :value="item.code"
-          >
-          </el-option>
+          ></el-option>
         </el-select>
       </el-form-item>
     </el-col>
@@ -114,8 +109,7 @@
           size="small"
           v-model="form.identityNumber"
           placeholder="身份证号"
-        >
-        </el-input>
+        ></el-input>
       </el-form-item>
     </el-col>
     <el-col :span="6">
@@ -125,8 +119,7 @@
           v-model="form.studentCode"
           placeholder="学号"
           class="form_search_width"
-        >
-        </el-input>
+        ></el-input>
       </el-form-item>
     </el-col>
     <slot></slot>
@@ -240,6 +233,7 @@ export default {
       .post("/api/ecs_core/rolePrivilege/checkPrivileges?" + params)
       .then(response => {
         this.currentPagePrivileges = response.data;
+        this.form.ORG_FIND_ALL = this.currentPagePrivileges.ORG_FIND_ALL;
         if (!this.currentPagePrivileges.ORG_FIND_ALL) {
           var userId = this.user.userId;
           this.$http.get("/api/ecs_core/user/" + userId).then(response => {

+ 43 - 21
src/modules/oe/views/absent.vue

@@ -11,8 +11,8 @@
           size="small"
           icon="el-icon-search"
           type="primary"
-          >查询
-        </el-button>
+          >查询</el-button
+        >
         <el-button size="small" icon="el-icon-refresh" @click="resetForm"
           >重置</el-button
         >
@@ -36,20 +36,41 @@
             :data="tableData"
             border
           >
-            <el-table-column sortable label="课程" prop="courseName">
-            </el-table-column>
-            <el-table-column sortable label="课程层次" prop="courseLevel">
-            </el-table-column>
-            <el-table-column sortable label="学习中心" prop="orgName">
-            </el-table-column>
-            <el-table-column sortable label="考点" prop="examSiteName">
-            </el-table-column>
-            <el-table-column sortable label="姓名" prop="studentName">
-            </el-table-column>
-            <el-table-column sortable label="身份证号" prop="identityNumber">
-            </el-table-column>
-            <el-table-column sortable label="学号" prop="studentCode">
-            </el-table-column>
+            <el-table-column
+              sortable
+              label="课程"
+              prop="courseName"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="课程层次"
+              prop="courseLevel"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="学习中心"
+              prop="orgName"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="考点"
+              prop="examSiteName"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="姓名"
+              prop="studentName"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="身份证号"
+              prop="identityNumber"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="学号"
+              prop="studentCode"
+            ></el-table-column>
           </el-table>
         </el-col>
       </el-row>
@@ -62,8 +83,7 @@
           :page-size="form.pageSize"
           layout="total, sizes, prev, pager, next, jumper"
           :total="total"
-        >
-        </el-pagination>
+        ></el-pagination>
       </div>
     </el-main>
   </el-container>
@@ -94,7 +114,8 @@ export default {
         pageNo: 1,
         pageSize: 10,
         rootOrgId: "",
-        auditStatus: null
+        auditStatus: null,
+        ORG_FIND_ALL: false //查询所有机构l
       },
       getExamCondition: {
         params: { name: "", examTypes: "ONLINE#OFFLINE" },
@@ -118,13 +139,14 @@ export default {
         examId: null,
         examRecordId: null,
         identityNumber: null,
-        orgId: null,
+        orgId: this.form.ORG_FIND_ALL ? null : this.form.orgId,
         studentCode: null,
         studentName: null,
         pageNo: 1,
         pageSize: 10,
         rootOrgId: "",
-        auditStatus: null
+        auditStatus: null,
+        ORG_FIND_ALL: this.form.ORG_FIND_ALL
       };
     },
     search(type) {

+ 41 - 53
src/modules/oe/views/alreadyAudited.vue

@@ -32,8 +32,7 @@
                 v-if="!currentPagePrivileges.INVIGILATE_AUDIT_STATUS"
                 placeholder="不通过"
                 :disabled="true"
-              >
-              </el-input>
+              ></el-input>
             </el-form-item>
           </el-col>
           <el-col :span="6">
@@ -50,8 +49,7 @@
                   :key="item.name"
                   :label="item.desc"
                   :value="item.name"
-                >
-                </el-option>
+                ></el-option>
               </el-select>
             </el-form-item>
           </el-col>
@@ -62,8 +60,7 @@
                 size="small"
                 v-model="form.auditUserName"
                 placeholder="审核人"
-              >
-              </el-input>
+              ></el-input>
             </el-form-item>
           </el-col>
         </el-row>
@@ -74,36 +71,33 @@
           size="small"
           type="primary"
           icon="el-icon-search"
-          >查询
-        </el-button>
+          >查询</el-button
+        >
         <el-button
           size="small"
           type="primary"
           icon="el-icon-more"
           v-if="!showAllCondition"
           @click="showMoreCondition"
+          >高级查询</el-button
         >
-          高级查询
-        </el-button>
         <el-button
           size="small"
           type="primary"
           v-if="showAllCondition"
           @click="showSimpleCondition"
+          >简单查询</el-button
         >
-          简单查询
-        </el-button>
         <el-button
           size="small"
           icon="el-icon-refresh"
           @click="resetForm"
           class="margin-bottom-10"
+          >重置</el-button
         >
-          重置
-        </el-button>
       </el-col>
-      <el-row class="margin-top-10"
-        ><el-col :span="24">
+      <el-row class="margin-top-10">
+        <el-col :span="24">
           <el-table
             v-loading="tableLoading"
             element-loading-text="数据加载中"
@@ -118,99 +112,90 @@
                   v-show="currentPagePrivileges.SNAPSHOT_DETAILS"
                   @click="gotoCaptureDetail(scope.row.examRecordDataId)"
                   type="text"
-                  >{{ scope.row.examRecordDataId }}
-                </el-button>
-                <span v-show="!currentPagePrivileges.SNAPSHOT_DETAILS">
-                  {{ scope.row.examRecordDataId }}
-                </span>
+                  >{{ scope.row.examRecordDataId }}</el-button
+                >
+                <span v-show="!currentPagePrivileges.SNAPSHOT_DETAILS">{{
+                  scope.row.examRecordDataId
+                }}</span>
               </template>
             </el-table-column>
-            <el-table-column sortable label="姓名" prop="studentName">
-            </el-table-column>
+            <el-table-column
+              sortable
+              label="姓名"
+              prop="studentName"
+            ></el-table-column>
             <el-table-column
               sortable
               label="身份证号"
               prop="identityNumber"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="学号"
               prop="studentCode"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="课程"
               prop="courseName"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="课程层次"
               prop="courseLevel"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="校验次数"
               prop="faceTotalCount"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="成功次数"
               prop="faceSuccessCount"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="陌生人记录"
               prop="faceStrangerCount"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="人脸识别成功率(%)"
               prop="faceSuccessPercent"
               width="180"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="考试次数"
               prop="examOrder"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="审核说明"
               prop="disciplineType"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="审核结果"
               prop="status"
               width="120"
-            >
-            </el-table-column>
+            ></el-table-column>
             <el-table-column
               sortable
               label="审核人"
               prop="auditUserName"
               width="180"
-            >
-            </el-table-column>
+            ></el-table-column>
           </el-table>
           <div class="block pull-right">
             <el-pagination
@@ -221,9 +206,10 @@
               :page-size="form.pageSize"
               layout="total, sizes, prev, pager, next, jumper"
               :total="total"
-            >
-            </el-pagination></div></el-col
-      ></el-row>
+            ></el-pagination>
+          </div>
+        </el-col>
+      </el-row>
     </el-main>
   </el-container>
 </template>
@@ -259,7 +245,8 @@ export default {
         pageSize: 10,
         disciplineType: "",
         auditUserName: "",
-        status: ""
+        status: "",
+        ORG_FIND_ALL: false //查询所有机构
       },
 
       getExamCondition: {
@@ -292,7 +279,7 @@ export default {
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         identityNumber: null,
-        orgId: null,
+        orgId: this.form.ORG_FIND_ALL ? null : this.form.orgId,
         studentCode: null,
         studentName: null,
         isWarn: null,
@@ -300,7 +287,8 @@ export default {
         pageSize: 10,
         disciplineType: "",
         auditUserName: "",
-        status: ""
+        status: "",
+        ORG_FIND_ALL: this.form.ORG_FIND_ALL
       };
     },
     showMoreCondition() {

+ 8 - 6
src/modules/oe/views/awaitingAudit.vue

@@ -168,9 +168,9 @@
                   type="text"
                   >{{ scope.row.dataId }}</el-button
                 >
-                <span v-show="!currentPagePrivileges.SNAPSHOT_DETAILS">{{
-                  scope.row.dataId
-                }}</span>
+                <span v-show="!currentPagePrivileges.SNAPSHOT_DETAILS">
+                  {{ scope.row.dataId }}
+                </span>
               </template>
             </el-table-column>
             <el-table-column
@@ -357,7 +357,8 @@ export default {
         studentName: null,
         isWarn: null,
         pageNo: 1,
-        pageSize: 10
+        pageSize: 10,
+        ORG_FIND_ALL: false //查询所有机构
       },
       auditForm: {
         examRecordDataId: null,
@@ -401,12 +402,13 @@ export default {
         livenessSuccessPercentLower: null,
         livenessSuccessPercentUpper: null,
         identityNumber: null,
-        orgId: null,
+        orgId: this.form.ORG_FIND_ALL ? null : this.form.orgId,
         studentCode: null,
         studentName: null,
         isWarn: null,
         pageNo: 1,
-        pageSize: 10
+        pageSize: 10,
+        ORG_FIND_ALL: this.form.ORG_FIND_ALL
       };
     },
     showMoreCondition() {

+ 5 - 3
src/modules/oe/views/examDetail.vue

@@ -386,7 +386,8 @@ export default {
         rootOrgId: null,
         startTime: null,
         endTime: null,
-        infoCollector: null
+        infoCollector: null,
+        ORG_FIND_ALL: false //查询所有机构
       },
 
       getExamCondition: {
@@ -429,7 +430,7 @@ export default {
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         identityNumber: null,
-        orgId: null,
+        orgId: this.form.ORG_FIND_ALL ? null : this.form.orgId,
         studentCode: null,
         studentName: null,
         isWarn: null,
@@ -438,7 +439,8 @@ export default {
         rootOrgId: null,
         startTime: null,
         endTime: null,
-        infoCollector: null
+        infoCollector: null,
+        ORG_FIND_ALL: this.form.ORG_FIND_ALL
       };
       this.startExamDatetimeRange = [];
     },

+ 5 - 3
src/modules/oe/views/examScheduling.vue

@@ -320,7 +320,8 @@ export default {
         isWarn: null,
         pageNo: 1,
         pageSize: 10,
-        examType: ""
+        examType: "",
+        ORG_FIND_ALL: false //查询所有机构
       },
       getExamCondition: {
         params: {
@@ -356,13 +357,14 @@ export default {
         livenessSuccessPercentLower: null,
         livenessSuccessPercentUpper: null,
         identityNumber: null,
-        orgId: null,
+        orgId: this.form.ORG_FIND_ALL ? null : this.form.orgId,
         studentCode: null,
         studentName: null,
         isWarn: null,
         pageNo: 1,
         pageSize: 10,
-        examType: ""
+        examType: "",
+        ORG_FIND_ALL: this.form.ORG_FIND_ALL
       };
     },
     showMoreCondition() {

+ 8 - 6
src/modules/oe/views/illegalityNameList.vue

@@ -68,9 +68,9 @@
                   type="text"
                   >{{ scope.row.examRecordDataId }}</el-button
                 >
-                <span v-show="!currentPagePrivileges.SNAPSHOT_DETAILS">{{
-                  scope.row.examRecordDataId
-                }}</span>
+                <span v-show="!currentPagePrivileges.SNAPSHOT_DETAILS">
+                  {{ scope.row.examRecordDataId }}
+                </span>
               </template>
             </el-table-column>
             <el-table-column
@@ -190,7 +190,8 @@ export default {
         studentName: null,
         isWarn: null,
         pageNo: 1,
-        pageSize: 10
+        pageSize: 10,
+        ORG_FIND_ALL: false //查询所有机构
       },
 
       getExamCondition: {
@@ -227,13 +228,14 @@ export default {
         livenessSuccessPercentLower: null,
         livenessSuccessPercentUpper: null,
         identityNumber: null,
-        orgId: null,
+        orgId: this.form.ORG_FIND_ALL ? null : this.form.orgId,
         orgName: null,
         studentCode: null,
         studentName: null,
         isWarn: null,
         pageNo: 1,
-        pageSize: 10
+        pageSize: 10,
+        ORG_FIND_ALL: this.form.ORG_FIND_ALL
       };
     },
     search(type) {

+ 54 - 33
src/modules/oe/views/reexamine.vue

@@ -1,22 +1,24 @@
 <template>
   <el-container>
     <el-main class="el-main-padding">
-      <commonFormVue :form="form" :getExamCondition="getExamCondition">
-      </commonFormVue>
+      <commonFormVue
+        :form="form"
+        :getExamCondition="getExamCondition"
+      ></commonFormVue>
       <el-col :span="6">
         <el-button
           @click="search('clickSelectBtn')"
           size="small"
           type="primary"
           icon="el-icon-search"
-          >查询
-        </el-button>
-        <el-button size="small" icon="el-icon-refresh" @click="resetForm">
-          重置
-        </el-button>
+          >查询</el-button
+        >
+        <el-button size="small" icon="el-icon-refresh" @click="resetForm"
+          >重置</el-button
+        >
       </el-col>
-      <el-row class="margin-top-10"
-        ><el-col :span="24">
+      <el-row class="margin-top-10">
+        <el-col :span="24">
           <el-table
             v-loading="tableLoading"
             element-loading-text="数据加载中"
@@ -25,18 +27,36 @@
             :data="tableData"
             border
           >
-            <el-table-column sortable label="学习中心" prop="orgName">
-            </el-table-column>
-            <el-table-column sortable label="姓名" prop="studentName">
-            </el-table-column>
-            <el-table-column sortable label="身份证号" prop="identityNumber">
-            </el-table-column>
-            <el-table-column sortable label="学号" prop="studentCode">
-            </el-table-column>
-            <el-table-column sortable label="课程" prop="courseName">
-            </el-table-column>
-            <el-table-column sortable label="课程层次" prop="courseLevel">
-            </el-table-column>
+            <el-table-column
+              sortable
+              label="学习中心"
+              prop="orgName"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="姓名"
+              prop="studentName"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="身份证号"
+              prop="identityNumber"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="学号"
+              prop="studentCode"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="课程"
+              prop="courseName"
+            ></el-table-column>
+            <el-table-column
+              sortable
+              label="课程层次"
+              prop="courseLevel"
+            ></el-table-column>
             <el-table-column label="操作" width="120">
               <template slot-scope="scope">
                 <el-button
@@ -44,8 +64,8 @@
                   type="primary"
                   @click="openReexamineDialog(scope.row.examStudentId)"
                   icon="el-icon-refresh"
-                  >设置重考
-                </el-button>
+                  >设置重考</el-button
+                >
               </template>
             </el-table-column>
           </el-table>
@@ -58,9 +78,10 @@
               :page-size="form.pageSize"
               layout="total, sizes, prev, pager, next, jumper"
               :total="total"
-            >
-            </el-pagination></div></el-col
-      ></el-row>
+            ></el-pagination>
+          </div>
+        </el-col>
+      </el-row>
       <el-dialog
         title="设置重考"
         :visible.sync="dialogFormVisible"
@@ -83,8 +104,7 @@
                 :key="item.name"
                 :label="item.desc"
                 :value="item.name"
-              >
-              </el-option>
+              ></el-option>
             </el-select>
           </el-form-item>
           <el-form-item label="详情描述" style="margin-top:15px;">
@@ -93,8 +113,7 @@
               type="textarea"
               :autosize="{ minRows: 6, maxRows: 10 }"
               placeholder="请输入内容"
-            >
-            </el-input>
+            ></el-input>
           </el-form-item>
           <div class="dialog-footer margin-top-10 text-center">
             <el-button type="primary" @click="doSetReexamine">确 定</el-button>
@@ -132,7 +151,8 @@ export default {
         studentName: null,
         isWarn: null,
         pageNo: 1,
-        pageSize: 10
+        pageSize: 10,
+        ORG_FIND_ALL: false //查询所有机构
       },
       reexamineForm: {
         examStudentId: "",
@@ -171,12 +191,13 @@ export default {
         livenessSuccessPercentLower: null,
         livenessSuccessPercentUpper: null,
         identityNumber: null,
-        orgId: null,
+        orgId: this.form.ORG_FIND_ALL ? null : this.form.orgId,
         studentCode: null,
         studentName: null,
         isWarn: null,
         pageNo: 1,
-        pageSize: 10
+        pageSize: 10,
+        ORG_FIND_ALL: this.form.ORG_FIND_ALL
       };
     },
     search(type) {

+ 5 - 3
src/modules/oe/views/scoreStatistics.vue

@@ -255,7 +255,8 @@ export default {
         pageSize: 10,
         finished: "",
         startLimit: "",
-        endLimit: ""
+        endLimit: "",
+        ORG_FIND_ALL: false //查询所有机构
       },
 
       getExamCondition: {
@@ -291,7 +292,7 @@ export default {
         livenessSuccessPercentLower: null,
         livenessSuccessPercentUpper: null,
         identityNumber: null,
-        orgId: null,
+        orgId: this.form.ORG_FIND_ALL ? null : this.form.orgId,
         studentCode: null,
         studentName: null,
         isWarn: null,
@@ -299,7 +300,8 @@ export default {
         pageSize: 10,
         finished: "",
         startLimit: "",
-        endLimit: ""
+        endLimit: "",
+        ORG_FIND_ALL: this.form.ORG_FIND_ALL
       };
     },
     search(type) {