Przeglądaj źródła

删除无用字段

lideyin 5 lat temu
rodzic
commit
de9b1bac56

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

@@ -106,7 +106,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         identityNumber: null,
         orgId: null,
         studentCode: null,
@@ -137,7 +136,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         identityNumber: null,
         orgId: this.form.ORG_FIND_ALL ? null : this.form.orgId,
         studentCode: null,

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

@@ -116,7 +116,8 @@
           <span>操作:</span>
           <el-dropdown class="button_left">
             <el-button size="small" type="primary">
-              批量审核 <i class="el-icon-arrow-down el-icon--right"></i>
+              批量审核
+              <i class="el-icon-arrow-down el-icon--right"></i>
             </el-button>
             <el-dropdown-menu slot="dropdown">
               <el-dropdown-item>
@@ -168,9 +169,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
@@ -346,7 +347,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,
@@ -396,7 +396,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,

+ 0 - 2
src/modules/oe/views/examDetail.vue

@@ -373,7 +373,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         identityNumber: null,
@@ -426,7 +425,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         identityNumber: null,

+ 0 - 2
src/modules/oe/views/examScheduling.vue

@@ -308,7 +308,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,
@@ -351,7 +350,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,

+ 99 - 3
src/modules/oe/views/examSummary.vue

@@ -30,11 +30,15 @@
       <el-row :gutter="2">
         <el-col :span="10" class="chart-border">
           <div class="chart-header">考试进度情况</div>
-          <div><v-chart :options="pieOptions" /></div>
+          <div>
+            <v-chart :options="pieOptions" />
+          </div>
         </el-col>
         <el-col :span="14" class="chart-border">
           <div class="chart-header">课程完成进度TOP5</div>
-          <div><v-chart :options="lineOptions" /></div>
+          <div>
+            <v-chart :options="lineOptions" />
+          </div>
         </el-col>
       </el-row>
       <el-row style="margin-top:10px;">
@@ -64,6 +68,23 @@
                         ></el-option>
                       </el-select>
                     </el-form-item>
+                    <el-form-item>
+                      <el-button
+                        type="primary"
+                        size="small"
+                        icon="el-icon-download"
+                        @click="exportOrg"
+                        v-show="!exportOrgLoading"
+                        >导出</el-button
+                      >
+                      <el-button
+                        size="small"
+                        icon="el-icon-download"
+                        :loading="true"
+                        v-show="exportOrgLoading"
+                        >导出数据中...</el-button
+                      >
+                    </el-form-item>
                   </el-form>
                 </el-col>
                 <el-col :span="24">
@@ -126,6 +147,23 @@
                         ></el-option>
                       </el-select>
                     </el-form-item>
+                    <el-form-item>
+                      <el-button
+                        type="primary"
+                        size="small"
+                        icon="el-icon-download"
+                        @click="exportCourse"
+                        v-show="!exportCourseLoading"
+                        >导出</el-button
+                      >
+                      <el-button
+                        size="small"
+                        icon="el-icon-download"
+                        :loading="true"
+                        v-show="exportCourseLoading"
+                        >导出数据中...</el-button
+                      >
+                    </el-form-item>
                   </el-form>
                 </el-col>
                 <el-col :span="24">
@@ -194,7 +232,9 @@ export default {
       orgExamInfos: [],
       courseProgressList: [],
       lineOptions: {},
-      pieOptions: {}
+      pieOptions: {},
+      exportOrgLoading: false,
+      exportCourseLoading: false
     };
   },
   computed: {
@@ -481,6 +521,62 @@ export default {
       let p1 = Number(obj1.finishedPercent);
       let p2 = Number(obj2.finishedPercent);
       return p1 - p2;
+    },
+    exportOrg() {
+      this.exportOrgLoading = true;
+      this.$http
+        .get("/api/ecs_oe_admin/exam/student/statistic/by/org/export", {
+          params: {
+            examId: this.examId,
+            orgId: this.orgId
+          },
+          responseType: "arraybuffer",
+          timeout: 20 * 60 * 1000 //限时20分钟
+        })
+        .then(response => {
+          if (response.data) {
+            var blob = new Blob([response.data], {
+              type:
+                "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
+            });
+            var url = URL.createObjectURL(blob);
+            var a = document.createElement("a");
+            a.href = url;
+            a.download = "学习中心完成进度.xlsx";
+            a.target = "_blank";
+            a.click();
+            URL.revokeObjectURL(url);
+          }
+          this.exportOrgLoading = false;
+        });
+    },
+    exportCourse() {
+      this.exportCourseLoading = true;
+      this.$http
+        .get("/api/ecs_oe_admin/exam/student/courseProgress/list/export", {
+          params: {
+            examId: this.examId,
+            courseId: this.courseId
+          },
+          responseType: "arraybuffer",
+          timeout: 20 * 60 * 1000 //限时20分钟
+        })
+        .then(response => {
+          if (response.data) {
+            var blob = new Blob([response.data], {
+              type:
+                "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
+            });
+            var url = URL.createObjectURL(blob);
+            var a = document.createElement("a");
+            a.href = url;
+            a.download = "课程完成进度.xlsx";
+            a.target = "_blank";
+            a.click();
+            URL.revokeObjectURL(url);
+          }
+          this.exportCourseLoading = false;
+        });
     }
   },
   created() {

+ 3 - 5
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
@@ -178,7 +178,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,
@@ -222,7 +221,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,

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

@@ -140,7 +140,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,
@@ -185,7 +184,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,

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

@@ -241,7 +241,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,
@@ -286,7 +285,6 @@ export default {
         courseId: null,
         courseLevel: null,
         examId: null,
-        examRecordId: null,
         faceSuccessPercentLower: null,
         faceSuccessPercentUpper: null,
         livenessSuccessPercentLower: null,