Commit 194fcaa8 authored by zhengke's avatar zhengke

no message

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