Commit 461405ed authored by zhengke's avatar zhengke

no message

parent 2667e5d0
......@@ -84,8 +84,9 @@
props: {
dataList:[],
},
emits:['change'],
components: {},
setup(props) {
setup(props,ctx) {
let {
proxy
} = getCurrentInstance();
......@@ -224,9 +225,11 @@
data.userData = uni.getStorageSync('userInfo')
data.uploadParm = {
Uid:data.userData.Id,
CourseId:data.uploadParm.CourseId,
CourseId:data.Msg.CourseId,
ExamName: data.uploadParm.ExamName
}
data.loading = true
uni.uploadFile({
url: host + '/Upload/UploadStuExamScore',
filePath: file[0].url,
......@@ -236,9 +239,7 @@
params:JSON.stringify(data.uploadParm)
},
success(res) {
data.loading = true
if(res.Code ==1){
uni.showToast({
title: '导入成功',
icon:'none',
......@@ -251,6 +252,8 @@
ExamName: ''
}
data.loading = false
// ctx.emit('change')
}else{
uni.showToast({
title: '导入失败',
......@@ -260,12 +263,12 @@
uni.hideLoading();
data.loading = false
}
this.$parent.getExamPageList();
},
fail(err) {
console.log("uploadErr", err)
}
});
this.$parent.getExamPageList();
}
};
let that = methods;
......
......@@ -82,6 +82,7 @@
},
//获取作业情况列表
getHomeWorkDetailsList(){
data.pageState = "loading";
proxy.$request("/Teacher/GetHomeWorkDetails", data.Msg).then(res => {
if(res){
data.jobDetails = res.Data
......
......@@ -45,7 +45,7 @@
>
<operation v-if="tabNme=='作业情况'" :dataList="dataList"></operation>
<studentList v-if="tabNme=='学生列表'" :dataList="dataList"></studentList>
<examList v-if="tabNme=='考试信息'" :dataList="dataList"></examList>
<examList v-if="tabNme=='考试信息'" :dataList="dataList" :change="getExamPageList"></examList>
</scroll-view>
<Loadmore :state="pageState" />
</view>
......
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