Commit c864abe9 authored by zhengke's avatar zhengke

Merge branch 'master' of http://gitlab.oytour.com/youjie/thinkapp

parents b37e7ed0 dde660a2
<template>
<view class="examDetailsComponents-box">
<view class="examDetailsComponents activeOne flex" v-for="(item,index) in ExamStu" :key="index" :class="item.StuId ==0?'mismatchActive':''">
<view class="examDetailsComponents-time-box flex">
<view class="examDetailsComponents-time-box flex" @click="goStuScoreDetail(item)">
<view class="examDetailsComponents-time flex">
<view>{{item.StuName.substring(0,1)}}</view>
<text>{{item.StuName.substring(1,item.StuName.length)}}</text>
......@@ -10,7 +10,7 @@
<view class="examDetailsComponents-point"></view>
</view>
</view>
<view class="examDetailsComponents-center-box">
<view class="examDetailsComponents-center-box" @click="goStuScoreDetail(item)">
<view class="Mismatch-box" v-if="item.StuId ===0">
<view class="Mismatch-title flex">
<van-icon name="warning" />
......@@ -72,7 +72,11 @@
showLogin: true, //多次点击
});
let methods = {
goStuScoreDetail(item){
uni.reLaunch({
url: '/pages/index/scoreDetails?examId='+item.ExamId+"&stuId="+item.StuId
});
}
}
return {
...toRefs(data),
......
......@@ -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.ExamId)">
<view class="examList-center-box" @click="examDetails(item)">
<view class="examList-center-line"></view>
<view class="examList-center flex">
<view class="examList-left">
......@@ -111,7 +111,7 @@
let methods = {
examDetails(item){
uni.reLaunch({
url: '/pages/index/examDetails?examId=' + item
url: '/pages/index/examDetails?examId=' + item.ExamId+'&createTime='+item.CreateTime+'&examName='+item.ExamName+'&examNum='+item.StuNum+'&avgScore='+item.AvgScore
});
},
closepopup(){
......
......@@ -10,17 +10,17 @@
<view class="jobDetails-content">
<view class="jobDetails-content-header">
<view class="jobDetails-conten-title flex">
<text>2022年5月28日</text>
<view>化学第一次测试</view>
<text>{{CreateTime}}</text>
<view>{{ExamName}}</view>
</view>
<view class="jobDetails-num-box flex">
<view class="jobDetails-num flex">
<text>人数</text>
<view>15</view>
<view>{{ExamNum}}</view>
</view>
<view class="jobDetails-num flex">
<text>平均得分</text>
<view>12</view>
<view>{{AvgScore}}</view>
</view>
</view>
</view>
......@@ -56,6 +56,10 @@
ExamId:0,
StuName:""
},
CreateTime:"2022-05-30",
ExamName:"测试需要绑",
ExamNum:0,
AvgScore:0,
ExamStu:[]
});
let methods = {
......@@ -79,6 +83,10 @@
},
onLoad(options){
this.Msg.ExamId = options.examId;
this.CreateTime = options.createTime;
this.ExamName = options.examName;
this.ExamNum = options.examNum;
this.AvgScore = options.avgScore;
},
onShow() {
this.userData = uni.getStorageSync('userInfo');
......
......@@ -128,7 +128,8 @@
userData: {},
Msg:{
ExamId:0,
StuUId:0
StuUId:0,
StuId:0
},
ExamScore:{},
Loading :true
......@@ -160,6 +161,7 @@
onLoad(options){
this.Msg.ExamId = options.examId;
this.Msg.StuUId = options.stuUId;
this.Msg.StuId = options.stuId;
},
onShow() {
this.userData = uni.getStorageSync('userInfo');
......
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