From db905ecd14f63dba9337b4f4715584ef2d7e8c7e Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Fri, 07 Mar 2025 14:45:00 +0800
Subject: [PATCH] 修改
---
src/views/onlineEducation/studentSupervision/index.vue | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/src/views/onlineEducation/studentSupervision/index.vue b/src/views/onlineEducation/studentSupervision/index.vue
index a8b88a2..555b8da 100644
--- a/src/views/onlineEducation/studentSupervision/index.vue
+++ b/src/views/onlineEducation/studentSupervision/index.vue
@@ -69,34 +69,35 @@
:visible.sync="learningDialog"
:modal-append-to-body="false"
:close-on-click-modal="false"
- width="850px"
+ width="900px"
append-to-body
:before-close="handleCloseLearning">
- <learning-record ref="learnRef" ></learning-record>
+ <learning ref="learnRef" ></learning>
</el-dialog>
<el-dialog
title="考试记录"
:visible.sync="dialogVisible"
:modal-append-to-body="false"
:close-on-click-modal="false"
- width="850px"
+ width="900px"
:before-close="handleClose">
- <exam-manage ref="examRef" ></exam-manage>
+ <examRecord ref="examRef" ></examRecord>
</el-dialog>
</div>
</template>
<script>
-import examManage from '@/views/onlineEducation/examManage/index.vue'
-import learningRecord from '@/views/onlineEducation/learnRecord/index.vue'
+import examRecord from '../studentSupervision/compontents/examlRecord.vue'
+import learning from '../studentSupervision/compontents/learningRecord.vue'
import { listStudent } from '@/api/onlineEducation/student'
import noPic from '@/assets/images/none.png'
+import Cookies from 'js-cookie'
import { listPlat } from '@/api/onlineEducation/plat'
export default {
name: "nPeopleManage",
dicts: [],
- components: {learningRecord,examManage},
+ components: {learning,examRecord},
data() {
return {
loading: false,
@@ -129,8 +130,7 @@
this.expertList = res.rows.map(item => {
return {
...item,
- authPhoto: item.authPhoto !='-' ? item.authPhoto : noPic
-
+ authPhoto: item.authPhoto !='-' ? item.authPhoto : noPic,
}
})
this.total = res.total
@@ -155,21 +155,25 @@
},
viewLearnRecord(data){
this.learningDialog = true
+ Cookies.set('learnRecord',true)
setTimeout(() => {
this.$refs.learnRef.getList(data)
},10)
},
viewExamRecord(data){
this.dialogVisible = true
+ Cookies.set('examRecord',true)
setTimeout(() => {
this.$refs.examRef.getList(data)
},10)
},
handleClose() {
+ Cookies.remove('examRecord')
this.dialogVisible = false;
},
handleCloseLearning() {
+ Cookies.remove('learnRecord')
this.learningDialog = false;
}
--
Gitblit v1.9.2