Commit 2667e5d0 authored by zhengke's avatar zhengke

no message

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