Commit 4ce3b85e authored by zhengke's avatar zhengke

no message

parent 8faf508b
...@@ -98,7 +98,6 @@ ...@@ -98,7 +98,6 @@
url: '/pages/index/workSituation?tabNme=' + '作业情况' +'&courseId=' + item.courseId url: '/pages/index/workSituation?tabNme=' + '作业情况' +'&courseId=' + item.courseId
}); });
},500) },500)
}, },
//计算完成百分比 //计算完成百分比
calcPercentage(item) { calcPercentage(item) {
......
<template> <template>
<view class="examList-box"> <view class="examList-box">
<view class="examList-import" @click="ImportInformation"> <view class="examList-import" @click.stop="ImportInformation">
<van-icon name="plus" /> <van-icon name="plus" />
<text>导入考试信息</text> <text>导入考试信息</text>
</view> </view>
...@@ -114,15 +114,9 @@ ...@@ -114,15 +114,9 @@
url: '/pages/index/examDetails?examId=' + item url: '/pages/index/examDetails?examId=' + item
}); });
}, },
//获取考试信息列表
getExamPageList(){
proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => {
data.dataList = res.Data;
})
},
ImportInformation(){ ImportInformation(){
this.show = true data.show = true
}, },
uploadFilesBefore(){ uploadFilesBefore(){
......
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
@scrolltolower="lower" @scrolltolower="lower"
v-if="dataList.length > 0" v-if="dataList.length > 0"
> >
<operation v-if="tabNme=='作业情况'&&dataList" :dataList="dataList"></operation> <operation v-if="tabNme=='作业情况'" :dataList="dataList"></operation>
<studentList v-if="tabNme=='学生列表'&&dataList" :dataList="dataList"></studentList> <studentList v-if="tabNme=='学生列表'" :dataList="dataList"></studentList>
<examList v-if="tabNme=='考试信息'&&dataList" :dataList="dataList"></examList> <examList v-if="tabNme=='考试信息'" :dataList="dataList"></examList>
<Loadmore :state="pageState" /> <Loadmore :state="pageState" />
</scroll-view> </scroll-view>
</view> </view>
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
}, },
toggleTitle(t) { toggleTitle(t) {
data.tabNme = t data.tabNme = t
data.dataList = []
if(this.tabNme=='学生列表'){ if(this.tabNme=='学生列表'){
that.getCourseStuList() that.getCourseStuList()
}else if(this.tabNme=='作业情况'){ }else if(this.tabNme=='作业情况'){
...@@ -218,11 +219,14 @@ ...@@ -218,11 +219,14 @@
this.Msg.courseId = option.courseId this.Msg.courseId = option.courseId
}, },
onShow() { onShow() {
this.getCourseStuList() this.dataList = []
this.getExamPageList() if(this.tabNme=='学生列表'){
setTimeout(()=>{ this.getCourseStuList()
}else if(this.tabNme=='作业情况'){
this.getGetCourseHomeWorkList() this.getGetCourseHomeWorkList()
},200) }else{
this.getExamPageList()
}
}, },
onShareAppMessage() { onShareAppMessage() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment