|
@@ -5,19 +5,19 @@
|
|
|
<!-- 用户信息 -->
|
|
<!-- 用户信息 -->
|
|
|
<user-info-card></user-info-card>
|
|
<user-info-card></user-info-card>
|
|
|
<!-- 学年数据统计 -->
|
|
<!-- 学年数据统计 -->
|
|
|
- <academic-year-stats></academic-year-stats>
|
|
|
|
|
|
|
+ <academic-year-stats ref="academicYearStats"></academic-year-stats>
|
|
|
<!-- 实验室绑定 -->
|
|
<!-- 实验室绑定 -->
|
|
|
- <lab-binding></lab-binding>
|
|
|
|
|
|
|
+ <lab-binding ref="labBinding"></lab-binding>
|
|
|
<!-- 考试任务 -->
|
|
<!-- 考试任务 -->
|
|
|
- <exam-task></exam-task>
|
|
|
|
|
|
|
+ <exam-task ref="examTask"></exam-task>
|
|
|
<!-- 特殊考试 -->
|
|
<!-- 特殊考试 -->
|
|
|
- <special-exam></special-exam>
|
|
|
|
|
|
|
+ <special-exam ref="specialExam"></special-exam>
|
|
|
<!-- 模拟练习 -->
|
|
<!-- 模拟练习 -->
|
|
|
- <mock-practice></mock-practice>
|
|
|
|
|
|
|
+ <mock-practice ref="mockPractice"></mock-practice>
|
|
|
<!-- 培训任务 -->
|
|
<!-- 培训任务 -->
|
|
|
- <training-task></training-task>
|
|
|
|
|
|
|
+ <!-- <training-task ref="trainingTask"></training-task> -->
|
|
|
<!-- 文档资源 -->
|
|
<!-- 文档资源 -->
|
|
|
- <doc-resource></doc-resource>
|
|
|
|
|
|
|
+ <doc-resource ref="docResource"></doc-resource>
|
|
|
<!-- 视频资源 -->
|
|
<!-- 视频资源 -->
|
|
|
<view class="videoResource-component">
|
|
<view class="videoResource-component">
|
|
|
<view class="card">
|
|
<view class="card">
|
|
@@ -25,7 +25,7 @@
|
|
|
<view class="header-left">
|
|
<view class="header-left">
|
|
|
<view class="card-title">视频学习资源</view>
|
|
<view class="card-title">视频学习资源</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <text class="header-link" @click="goToPage()">更多 ›</text>
|
|
|
|
|
|
|
+ <text class="header-link" @click="goToPage(1)">更多 ›</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="card-body">
|
|
<view class="card-body">
|
|
|
<view class="top-table-box">
|
|
<view class="top-table-box">
|
|
@@ -35,7 +35,9 @@
|
|
|
{{item.disciplineName}}
|
|
{{item.disciplineName}}
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="for-video-courseware" v-for="(item,index) in videoList" :key="index">
|
|
|
|
|
|
|
+ <view class="for-video-courseware"
|
|
|
|
|
+ @click="goToPage(2,item)"
|
|
|
|
|
+ v-for="(item,index) in videoList" :key="index">
|
|
|
<img :src="baseUrl+item.exampleImg">
|
|
<img :src="baseUrl+item.exampleImg">
|
|
|
<view class="bottom-text-box">
|
|
<view class="bottom-text-box">
|
|
|
<view>{{item.coursewareName}}</view>
|
|
<view>{{item.coursewareName}}</view>
|
|
@@ -64,7 +66,11 @@
|
|
|
import {
|
|
import {
|
|
|
examElDisciplineTypeList,
|
|
examElDisciplineTypeList,
|
|
|
examUserCoursewareLearningList,
|
|
examUserCoursewareLearningList,
|
|
|
|
|
+ examUserCoursewareLearningRestart,
|
|
|
} from '@/pages_safetyEducationExamination/api/index.js'
|
|
} from '@/pages_safetyEducationExamination/api/index.js'
|
|
|
|
|
+ import {
|
|
|
|
|
+ goLearning,
|
|
|
|
|
+ } from '@/pages_safetyEducationExamination/utils/index.js'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
userInfoCard,
|
|
userInfoCard,
|
|
@@ -96,18 +102,40 @@
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
|
|
+ console.log('mounted')
|
|
|
|
|
+ // this.examElDisciplineTypeList();
|
|
|
|
|
+ },
|
|
|
|
|
+ onShow(){
|
|
|
|
|
+ //刷新-学年数据
|
|
|
|
|
+ this.$refs.academicYearStats.resetMethod();
|
|
|
|
|
+ //刷新-实验室绑定
|
|
|
|
|
+ this.$refs.labBinding.resetMethod();
|
|
|
|
|
+ //刷新-考试任务
|
|
|
|
|
+ this.$refs.examTask.resetMethod();
|
|
|
|
|
+ //刷新-特殊考试
|
|
|
|
|
+ this.$refs.specialExam.resetMethod();
|
|
|
|
|
+ //刷新-模拟联系
|
|
|
|
|
+ this.$refs.mockPractice.resetMethod();
|
|
|
|
|
+ //刷新-文档资料
|
|
|
|
|
+ this.$refs.docResource.resetMethod();
|
|
|
|
|
+ //刷新-视频资料
|
|
|
|
|
+ this.$set(this,'topCheckIndex',0);
|
|
|
|
|
+ this.$set(this.queryParams,'page',1);
|
|
|
this.examElDisciplineTypeList();
|
|
this.examElDisciplineTypeList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- goToPage(){
|
|
|
|
|
- //跳转资源学习列表
|
|
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: '/pages_safetyEducationExamination/views/study/index',
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ goToPage(type,item){
|
|
|
|
|
+ if(type==1){
|
|
|
|
|
+ //跳转资源学习列表
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/pages_safetyEducationExamination/views/study/index',
|
|
|
|
|
+ });
|
|
|
|
|
+ }else{
|
|
|
|
|
+ goLearning(item);
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
//滚动加载
|
|
//滚动加载
|
|
|
scrollGet(){
|
|
scrollGet(){
|
|
|
- console.log('123')
|
|
|
|
|
let self = this;
|
|
let self = this;
|
|
|
if (self.total / self.queryParams.pageSize <= self.queryParams.page) {
|
|
if (self.total / self.queryParams.pageSize <= self.queryParams.page) {
|
|
|
this.$set(this, 'getDataType', true);
|
|
this.$set(this, 'getDataType', true);
|