Commit 2667e5d0 authored by zhengke's avatar zhengke

no message

parent cab5cd30
...@@ -191,6 +191,8 @@ ...@@ -191,6 +191,8 @@
margin-left: 4rpx; margin-left: 4rpx;
} }
.jobDetailsComponents-time{ .jobDetailsComponents-time{
width: 95rpx;
flex-shrink: 0;
color: #282828; color: #282828;
font-size: 36rpx; font-size: 36rpx;
font-weight: bold; font-weight: bold;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<text>导入考试信息</text> <text>导入考试信息</text>
</view> </view>
<view class="examList activeOne" v-for="(item,index) in dataList" :key="index"> <view class="examList activeOne" v-for="(item,index) in dataList" :key="index">
<view class="examList-center-box" @click="examDetails(item)"> <view class="examList-center-box" @click="examDetails(item.ExamId)">
<view class="examList-center-line"></view> <view class="examList-center-line"></view>
<view class="examList-center flex"> <view class="examList-center flex">
<view class="examList-left"> <view class="examList-left">
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<van-icon class="examList-popup-closure" name="cross" @click="closepopup"/> <van-icon class="examList-popup-closure" name="cross" @click="closepopup"/>
<view class="examList-popup-title">导入考试信息</view> <view class="examList-popup-title">导入考试信息</view>
<view class="examList-popup-content"> <view class="examList-popup-content">
<input v-model="uploadParm.ExamName" class="examList-popup-name" placeholder="请输入考试名称"> <input v-model="uploadParm.ExamName" class="examList-popup-name" placeholder="请输入考试名称"/>
<van-uploader <van-uploader
class="examList-popup-fil-box flex" class="examList-popup-fil-box flex"
multiple multiple
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
preview-size="120rpx" preview-size="120rpx"
:before-read="beforeRead" :before-read="beforeRead"
@after-read="customUpload" @after-read="customUpload"
:disabled="loading"
> >
<view class="examList-popup-fil"> <view class="examList-popup-fil">
<van-image class="img" width="32rpx" height="32rpx" fit="cover" <van-image class="img" width="32rpx" height="32rpx" fit="cover"
...@@ -75,7 +76,8 @@ ...@@ -75,7 +76,8 @@
toRefs, toRefs,
onMounted, onMounted,
getCurrentInstance, getCurrentInstance,
inject inject,
watch
} from "vue"; } from "vue";
import { uploadFile } from "@/utils/index"; import { uploadFile } from "@/utils/index";
export default { export default {
...@@ -105,13 +107,14 @@ ...@@ -105,13 +107,14 @@
PageSize: 10, PageSize: 10,
ExamName:'' ExamName:''
}, },
dataList: props.dataList dataList: props.dataList,
loading: false,
}); });
let methods = { let methods = {
examDetails(item){ examDetails(item){
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/examDetails?examId=' + item.ExamId+'&createTime='+item.CreateTime+'&examName='+item.ExamName+'&examNum='+item.StuNum+'&avgScore='+item.AvgScore url: '/pages/index/examDetails?examId=' + item
}); });
}, },
closepopup(){ closepopup(){
...@@ -224,7 +227,6 @@ ...@@ -224,7 +227,6 @@
CourseId:data.uploadParm.CourseId, CourseId:data.uploadParm.CourseId,
ExamName: data.uploadParm.ExamName ExamName: data.uploadParm.ExamName
} }
console.log(data.uploadParm,'-----')
uni.uploadFile({ uni.uploadFile({
url: host + '/Upload/UploadStuExamScore', url: host + '/Upload/UploadStuExamScore',
filePath: file[0].url, filePath: file[0].url,
...@@ -234,6 +236,7 @@ ...@@ -234,6 +236,7 @@
params:JSON.stringify(data.uploadParm) params:JSON.stringify(data.uploadParm)
}, },
success(res) { success(res) {
data.loading = true
if(res.Code ==1){ if(res.Code ==1){
uni.showToast({ uni.showToast({
...@@ -247,6 +250,7 @@ ...@@ -247,6 +250,7 @@
CourseId:'', CourseId:'',
ExamName: '' ExamName: ''
} }
data.loading = false
}else{ }else{
uni.showToast({ uni.showToast({
title: '导入失败', title: '导入失败',
...@@ -254,6 +258,7 @@ ...@@ -254,6 +258,7 @@
duration: 500 duration: 500
}) })
uni.hideLoading(); uni.hideLoading();
data.loading = false
} }
this.$parent.getExamPageList(); this.$parent.getExamPageList();
}, },
......
...@@ -46,8 +46,8 @@ ...@@ -46,8 +46,8 @@
<operation v-if="tabNme=='作业情况'" :dataList="dataList"></operation> <operation v-if="tabNme=='作业情况'" :dataList="dataList"></operation>
<studentList v-if="tabNme=='学生列表'" :dataList="dataList"></studentList> <studentList v-if="tabNme=='学生列表'" :dataList="dataList"></studentList>
<examList v-if="tabNme=='考试信息'" :dataList="dataList"></examList> <examList v-if="tabNme=='考试信息'" :dataList="dataList"></examList>
<Loadmore :state="pageState" />
</scroll-view> </scroll-view>
<Loadmore :state="pageState" />
</view> </view>
</view> </view>
</template> </template>
...@@ -134,6 +134,7 @@ ...@@ -134,6 +134,7 @@
}, },
//获取学生列表 //获取学生列表
getCourseStuList(){ getCourseStuList(){
data.pageState = "loading";
proxy.$request("/Teacher/GetCourseStu", data.OperationMsg).then(res => { proxy.$request("/Teacher/GetCourseStu", data.OperationMsg).then(res => {
if(res){ if(res){
data.titleList.forEach(item => { data.titleList.forEach(item => {
...@@ -148,6 +149,7 @@ ...@@ -148,6 +149,7 @@
}, },
//获取作业情况列表 //获取作业情况列表
getCourseHomeWorkList(){ getCourseHomeWorkList(){
data.pageState = "loading";
proxy.$request("/Teacher/GetCourseHomeWork", data.OperationMsg).then(res => { proxy.$request("/Teacher/GetCourseHomeWork", data.OperationMsg).then(res => {
if(res){ if(res){
data.titleList.forEach(item => { data.titleList.forEach(item => {
...@@ -162,6 +164,7 @@ ...@@ -162,6 +164,7 @@
}, },
//获取考试信息列表 //获取考试信息列表
getExamPageList(){ getExamPageList(){
data.pageState = "loading";
proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => { proxy.$request("/Exam/GetExamPageList", data.Msg).then(res => {
if(res){ if(res){
data.titleList.forEach(item => { data.titleList.forEach(item => {
......
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