Commit 194fcaa8 authored by zhengke's avatar zhengke

no message

parent 2a57a6d4
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
}, },
customUpload(event){ customUpload(event){
const { file } = event.detail; const { file } = event.detail;
uploadFile("", file, (res) => { uploadFile("stueave", file, (res) => {
console.log(res,'----') console.log(res,'----')
}); });
......
...@@ -128,8 +128,8 @@ ...@@ -128,8 +128,8 @@
} }
}, },
//获取学生列表 //获取学生列表
GetExamStuList(){ getCourseStuList(){
proxy.$request("/Exam/GetExamStuList", data.Msg).then(res => { proxy.$request("/Teacher/GetCourseStu", data.Msg).then(res => {
if(res){ if(res){
if (data.timer) data.timer = null; if (data.timer) data.timer = null;
if (data.Msg.PageIndex === 1) { if (data.Msg.PageIndex === 1) {
...@@ -147,8 +147,8 @@ ...@@ -147,8 +147,8 @@
}) })
}, },
//获取作业情况列表 //获取作业情况列表
getExamPageList(){ getGetCourseHomeWorkList(){
proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => { proxy.$request("/Teacher/GetCourseHomeWork", data.Msg).then(res => {
if(res){ if(res){
if (data.timer) data.timer = null; if (data.timer) data.timer = null;
if (data.Msg.PageIndex === 1) { if (data.Msg.PageIndex === 1) {
...@@ -191,9 +191,9 @@ ...@@ -191,9 +191,9 @@
if (data.timer) clearTimeout(data.timer); if (data.timer) clearTimeout(data.timer);
data.timer = setTimeout(() => { data.timer = setTimeout(() => {
if(this.tabNme=='学生列表'){ if(this.tabNme=='学生列表'){
this.GetExamStuList() this.getCourseStuList()
}else if(this.tabNme=='作业情况'){ }else if(this.tabNme=='作业情况'){
this.getGetCourseHomeWorkList()
}else{ }else{
this.getExamPageList() this.getExamPageList()
} }
...@@ -218,9 +218,9 @@ ...@@ -218,9 +218,9 @@
onShow() { onShow() {
this.userData = uni.getStorageSync('userInfo'); this.userData = uni.getStorageSync('userInfo');
if(this.tabNme=='学生列表'){ if(this.tabNme=='学生列表'){
this.GetExamStuList() this.getCourseStuList()
}else if(this.tabNme=='作业情况'){ }else if(this.tabNme=='作业情况'){
this.getGetCourseHomeWorkList()
}else{ }else{
this.getExamPageList() this.getExamPageList()
} }
......
//请求教育接口 //请求教育接口
let host = '' let host = ''
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
host = 'http://192.168.10.46:8900/api' host = 'http://192.168.10.36:8082/api'
// host = 'http://192.168.10.65:8085/api' // host = 'http://192.168.10.65:8085/api'
} else { } else {
host = 'https://eduapi.oytour.com/api' host = 'https://eduapi.oytour.com/api'
......
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