Commit cae44c49 authored by 黄奎's avatar 黄奎

Merge branch 'master' of http://gitlab.oytour.com/youjie/thinkapp

parents 3fdd30d2 e4d43a38
...@@ -170,8 +170,10 @@ ...@@ -170,8 +170,10 @@
//获取学生列表 //获取学生列表
getCourseStuList(){ getCourseStuList(){
data.pageState = "loading"; data.pageState = "loading";
uni.showLoading()
proxy.$request("/Teacher/GetCourseStu", data.OperationMsg).then(res => { proxy.$request("/Teacher/GetCourseStu", data.OperationMsg).then(res => {
if(res){ if(res){
uni.hideLoading()
data.titleList.forEach(item => { data.titleList.forEach(item => {
if(item.name=='学生列表'){ if(item.name=='学生列表'){
item.num = res.Data.length item.num = res.Data.length
...@@ -185,8 +187,10 @@ ...@@ -185,8 +187,10 @@
//获取作业情况列表 //获取作业情况列表
getCourseHomeWorkList(){ getCourseHomeWorkList(){
data.pageState = "loading"; data.pageState = "loading";
uni.showLoading()
proxy.$request("/Teacher/GetCourseHomeWork", data.OperationMsg).then(res => { proxy.$request("/Teacher/GetCourseHomeWork", data.OperationMsg).then(res => {
if(res){ if(res){
uni.hideLoading()
data.titleList.forEach(item => { data.titleList.forEach(item => {
if(item.name=='作业情况'){ if(item.name=='作业情况'){
item.num = res.Data.length item.num = res.Data.length
...@@ -200,8 +204,10 @@ ...@@ -200,8 +204,10 @@
//获取考试信息列表 //获取考试信息列表
getExamPageList(){ getExamPageList(){
data.pageState = "loading"; data.pageState = "loading";
uni.showLoading()
proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => { proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => {
if(res){ if(res){
uni.hideLoading()
data.titleList.forEach(item => { data.titleList.forEach(item => {
if(item.name=='考试信息'){ if(item.name=='考试信息'){
item.num = res.Data.RowsCount item.num = res.Data.RowsCount
......
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