dedsudiyu před 1 dnem
rodič
revize
8d78bef449

+ 1 - 1
src/views/safetyEducationExaminationNew/examManagement/examinationArrange/selectScope.vue

@@ -217,7 +217,7 @@
         });
       },
       getRowKey(row) {
-        return row.id;
+        return row.indexId;
       },
       handleSelectionChange(val) {
         this.multipleSelection = val;

+ 1 - 1
src/views/safetyEducationExaminationNew/examManagement/examinationArrange/selectUser.vue

@@ -215,7 +215,7 @@
         });
       },
       getRowKey(row) {
-        return row.id;
+        return row.userId;
       },
       handleSelectionChange(val) {
         this.multipleSelection = val;

+ 52 - 0
src/views/safetyEducationExaminationNew/safetyTest/myGrades/dataStatisticsReport.vue

@@ -0,0 +1,52 @@
+<!-- 毕业教育考试数据统计报告 -->
+<template>
+  <div class="dataStatisticsReport-addPage">
+    <img class="logo-img" :src="logoUrl">
+    <p class="title-p">实验室安全教育毕业报告</p>
+  </div>
+</template>
+
+<script>
+  export default {
+    name: 'addPage',
+    props: {
+      propsData: {}
+    },
+    data() {
+      return {
+        logoUrl:'192.168.1.8/statics/2026/06/18/90a7ed62-c6c4-43f8-8691-1d8e35e44866.png',
+        newData: {
+          userName:'刘佳琪',
+          account:'2022200089',
+          deptName:'材料科学学院',
+          academicYear:'2022级',
+          userType:'本科生',
+          total:'12学时',
+          yearList:[],
+          examList:[],
+        },
+        text:'该同学在校期间认真完成实验室安全教育各项学习任务,累计完成12学时安全培训,通过全部年度安全考核,具备良好的实验室安全意识和规范操作能力,特此证明。',
+        deptName:'实验室安全与条件保障处',
+        year:'2026年7月',
+      }
+    },
+    created() {
+
+    },
+    mounted() {
+      this.initialize()
+    },
+    methods: {
+      // 初始化
+      initialize() {
+
+      },
+    }
+  }
+</script>
+
+<style scoped lang="scss">
+  .dataStatisticsReport-addPage {
+
+  }
+</style>

+ 36 - 1
src/views/safetyEducationExaminationNew/safetyTest/myGrades/index.vue

@@ -39,6 +39,10 @@
           </el-form-item>
           <p class="page-inquire-common-style-button" @click="handleQuery">查询</p>
           <p class="page-reset-common-style-button" @click="resetQuery">重置</p>
+          <p class="page-submit-common-style-button"
+             style="float: right;"
+             @click="tableButton(3)"
+          >成绩报告打印</p>
         </el-form>
       </div>
       <div class="page-content-box">
@@ -70,13 +74,31 @@
     </div>
     <examRecords :propsData="propsData" v-if="pageType === 2"></examRecords>
     <historyOfIncorrectQuestions :historyOfIncorrectQuestionsPropsData="historyOfIncorrectQuestionsPropsData" v-if="pageType === 3"></historyOfIncorrectQuestions>
+    <el-dialog class="myGrades-dialog"
+               :modal-append-to-body="false"
+               :close-on-click-modal="false" :close-on-press-escape="false"
+               title="毕业教育考试数据统计报告"
+               :visible.sync="dialogType"
+               v-if="dialogType"
+               width="778px"
+               append-to-body>
+      <div style="height:600px;overflow-y:scroll">
+        <dataStatisticsReport></dataStatisticsReport>
+      </div>
+      <div slot="footer" class="dialog-footer dialog-footer-box">
+        <p class="dialog-footer-button-null"></p>
+        <p class="dialog-footer-button-info" @click="dialogCancel">关闭</p>
+        <p class="dialog-footer-button-primary" @click="dialogSubmit">下载</p>
+        <p class="dialog-footer-button-null"></p>
+      </div>
+    </el-dialog>
   </div>
 </template>
 <script>
   //import { getDicts } from "@/api/commonality/noPermission";
   //import { systemUserSelect } from "@/api/commonality/permission";
   //import { getInfo } from "@/api/basicsModules/index";
-  //import addPage from "./addPage.vue";
+  import dataStatisticsReport from "./dataStatisticsReport.vue";
   import historyOfIncorrectQuestions from "@/views/safetyEducationExaminationNew/components/historyOfIncorrectQuestions.vue";
   import examRecords from "@/views/safetyEducationExaminationNew/components/examRecords.vue";
   import { examElExamUserResultMyScoreListPage,examUserExamTypeSelectExamType, } from "@/api/safetyEducationExaminationNew/index";
@@ -85,6 +107,7 @@
     components: {
       historyOfIncorrectQuestions,
       examRecords,
+      dataStatisticsReport
     },
     data() {
       return {
@@ -110,6 +133,7 @@
         //组件传参
         propsData: {},
         historyOfIncorrectQuestionsPropsData:{},
+        dialogType:false,
       }
     },
     created() {
@@ -179,12 +203,23 @@
             examId:row.examId,
           };
           this.$set(this, 'historyOfIncorrectQuestionsPropsData', obj)
+        }else if(type == 3){
+          //成绩报告打印
+          this.$set(this,'dialogType',true);
         } else if (type == 6) {
           //返回并刷新
           this.$set(this, 'pageType', 1)
           this.getList()
         }
       },
+      //关闭弹窗
+      dialogCancel(){
+
+      },
+      //下载报告
+      dialogSubmit(){
+
+      },
       examUserExamTypeSelectExamType(){
         let self = this;
         examUserExamTypeSelectExamType({examType:3}).then(response => {

+ 3 - 3
src/views/safetyEducationExaminationNew/workbench/ResourceCard.vue

@@ -20,7 +20,7 @@
           </div>
           <div class="big-content-box scrollbar-box">
             <p class="null-p" v-if="!leftTopList[0]">暂无数据</p>
-            <div class="for-big-box" v-for="(item,index) in leftTopList" :key="index" @click="tableButton(1,item)">
+            <div class="for-big-box" v-for="(item,index) in leftTopList" :key="index" @click="tableButton(2,item)">
               <p>{{item.coursewareName}}</p>
               <p>{{secondsToMinutes(item.minLearningDuration)}}分钟丨{{item.creditHours}}学时丨{{item.points}}积分</p>
               <p :class="item.learnStatus==1?'colorA':(item.learnStatus==2?'colorB':'')">{{item.learnStatus==1?'学习中':(item.learnStatus==2?'已完成':'未学习')}}</p>
@@ -35,7 +35,7 @@
           </div>
           <div class="big-content-box scrollbar-box">
             <p class="null-p" v-if="!leftBottomList[0]">暂无数据</p>
-            <div class="for-big-box" v-for="(item,index) in leftBottomList" :key="index" @click="tableButton(2,item)">
+            <div class="for-big-box" v-for="(item,index) in leftBottomList" :key="index" @click="tableButton(1,item)">
               <div class="for-flex-box">
                 <p class="el-icon-time"></p>
                 <p :style="!item.lastAnswerTime?'font-size:14px;':''">{{item.lastAnswerTime?parseTime(item.lastAnswerTime,"{y}-{m}-{d} {h}:{i}"):'未练习'}}</p>
@@ -59,7 +59,7 @@
         </div>
         <div class="big-content-box-1 scrollbar-box">
           <p class="null-p" v-if="!rightList[0]">暂无数据</p>
-          <div class="for-big-box" v-for="(item,index) in rightList" :key="index" @click="tableButton(1,item)">
+          <div class="for-big-box" v-for="(item,index) in rightList" :key="index" @click="tableButton(2,item)">
             <img :src="item.exampleImg">
             <div class="text-box">
               <p>{{item.coursewareName}}</p>