|
|
@@ -1,6 +1,6 @@
|
|
|
<!-- 自主练习——查看练习结果 -->
|
|
|
<template>
|
|
|
- <div class="practice_result">
|
|
|
+ <div class="stu_practice_result">
|
|
|
<div class="page_search">
|
|
|
<div class="search_content">
|
|
|
<div class="content_left">
|
|
|
@@ -25,7 +25,7 @@
|
|
|
</template>
|
|
|
</FiltersItem>
|
|
|
|
|
|
- <Table class="practice_table"
|
|
|
+ <Table class="practice_table end_item"
|
|
|
:currentPage="currentPage" :pageSize="pageSize" :totalNum="totalNum"
|
|
|
:tableData="tableData" :tableColumns="tableColumns"
|
|
|
@paginationChange="HandlePaginationChange">
|
|
|
@@ -93,6 +93,19 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</Table>
|
|
|
+
|
|
|
+ <div class="page_dialog">
|
|
|
+ <el-dialog title=""
|
|
|
+ :visible.sync="showPracticeResultDialog"
|
|
|
+ class="preview_dialog"
|
|
|
+ fullscreen height="100%">
|
|
|
+ <PracticeDetail
|
|
|
+ v-if="showPracticeResultDialog"
|
|
|
+ :localPracticeDetail="practiceResultData"
|
|
|
+ @CloseDialog="CloseDetailDialog">
|
|
|
+ </PracticeDetail>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
@@ -108,6 +121,8 @@ import FiltersItem from "../components/FiltersItem_ruoyan.vue"//筛选组件
|
|
|
import Table from "../components/Table.vue";
|
|
|
import TableRowStatus from "../components/TableRowStatus.vue";
|
|
|
|
|
|
+import PracticeDetail from './practiceResults/practiceDetail.vue'
|
|
|
+
|
|
|
import upIcon from '@/assets/arrow-up.png'
|
|
|
import downIcon from '@/assets/arrow-down.png'
|
|
|
|
|
|
@@ -119,7 +134,8 @@ export default ({
|
|
|
components: {
|
|
|
FiltersItem,
|
|
|
Table,
|
|
|
- TableRowStatus
|
|
|
+ TableRowStatus,
|
|
|
+ PracticeDetail,
|
|
|
},
|
|
|
data(){
|
|
|
return {
|
|
|
@@ -227,6 +243,11 @@ export default ({
|
|
|
}
|
|
|
],
|
|
|
startAndEndTime:undefined,
|
|
|
+
|
|
|
+ // 查看练习结果弹窗有关数据
|
|
|
+ showPracticeResultDialog:false,
|
|
|
+ practiceResultData:{},
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -317,15 +338,21 @@ export default ({
|
|
|
// 跳转练习结果详情
|
|
|
viewDetails(row){
|
|
|
let tmpStorage = {
|
|
|
+ id:row.exerciseId,
|
|
|
practiceTime:row.submitTime, //练习时间(提交时间)
|
|
|
frontRate:row.frontRate, //练前得分率
|
|
|
afterRate:row.afterRate, //练后得分率
|
|
|
difference:row.difference, //提升情况
|
|
|
exerciseStatus:row.exerciseStatus, // 批阅状态(1未批阅 2批阅中 3/4已批阅)
|
|
|
}
|
|
|
- sessionStorage.setItem('practice_detail',JSON.stringify(tmpStorage))
|
|
|
- this.$router.push(`/targetImprove/praciceResultDetail?id=${row.exerciseId}`);
|
|
|
+ this.practiceResultData = tmpStorage
|
|
|
+ this.showPracticeResultDialog = true
|
|
|
},
|
|
|
+ CloseDetailDialog(){
|
|
|
+ this.showPracticeResultDialog = false
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
computed:{
|
|
|
...mapState("target", ["subjectCode"]),
|
|
|
@@ -347,7 +374,7 @@ export default ({
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.practice_result{
|
|
|
+.stu_practice_result{
|
|
|
flex:1;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
@@ -360,7 +387,7 @@ export default ({
|
|
|
margin-bottom: 10px;
|
|
|
padding: 10px;
|
|
|
|
|
|
- > *:last-child{
|
|
|
+ .end_item{
|
|
|
flex-grow: 1;
|
|
|
}
|
|
|
.page_search{
|