Commit 5d2331fa authored by liudong1993's avatar liudong1993

1

parent 24b90cb5
...@@ -40,11 +40,11 @@ ...@@ -40,11 +40,11 @@
</view> </view>
</view> </view>
</view> </view>
<view class="examDetailsComponents activeOne flex"> <view class="examDetailsComponents activeOne flex" v-for="(item,index) in ExamStu" :key="index">
<view class="examDetailsComponents-time-box flex"> <view class="examDetailsComponents-time-box flex">
<view class="examDetailsComponents-time flex"> <view class="examDetailsComponents-time flex">
<view></view> <view>{{item.StuName.substring(0,1)}}</view>
<text>潇潇</text> <text>{{item.StuName.substring(1,item.StuName.length)}}</text>
</view> </view>
<view class="examDetailsComponents-line"> <view class="examDetailsComponents-line">
<view class="examDetailsComponents-point"></view> <view class="examDetailsComponents-point"></view>
...@@ -52,22 +52,20 @@ ...@@ -52,22 +52,20 @@
</view> </view>
<view class="examDetailsComponents-center-box"> <view class="examDetailsComponents-center-box">
<view class="examDetailsComponents-center flex"> <view class="examDetailsComponents-center flex">
<view class="examDetailsComponents-left flex"> <view class="examDetailsComponents-right flex">
<view class="operation-state flex"> <view class="homework-score flex">
<view class="operation-state-img"></view> <view class="homework-score-title">
<view class="operation-state-text">批阅</view> 得分 <text>{{item.TScore}}</text>
</view> </view>
<view class="operation-name">2022-05-22</view>
</view> </view>
<view class="examDetailsComponents-right flex">
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title"> <view class="homework-score-title">
得分 <text>86</text> 排名 <text>{{item.Rank}}</text>
</view> </view>
</view> </view>
<view class="homework-score flex"> <view class="homework-score flex">
<view class="homework-score-title"> <view class="homework-score-title">
得分率 <text>86</text> 排名率 <text>{{item.RankRate * 100}}</text>%
</view> </view>
</view> </view>
</view> </view>
...@@ -87,7 +85,7 @@ ...@@ -87,7 +85,7 @@
export default { export default {
props: { props: {
ExamStu:[]
}, },
components: {}, components: {},
setup() { setup() {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</view> </view>
</view> </view>
<view class="index-student-information"> <view class="index-student-information">
<examDetailsComponents></examDetailsComponents> <examDetailsComponents :ExamStu="ExamStu"></examDetailsComponents>
</view> </view>
</view> </view>
</view> </view>
...@@ -47,16 +47,24 @@ ...@@ -47,16 +47,24 @@
examDetailsComponents examDetailsComponents
}, },
setup() { setup() {
let {
proxy
} = getCurrentInstance();
let data = reactive({ let data = reactive({
obj: { Msg:{
Name: '', ExamId:0,
Photo: '', StuName:""
}, },
showPhone: false, ExamStu:[]
showLogin: true, //多次点击
}); });
let methods = { let methods = {
//获取考试学生列表
getExamStuList(){
proxy.$request("/Exam/GetExamStuList", data.Msg).then(res => {
console.log(res.data);
data.ExamStu = res.Data;
})
},
back(){ back(){
uni.reLaunch({ uni.reLaunch({
url: '/pages/index/workSituation?tabNme=' + '考试信息' url: '/pages/index/workSituation?tabNme=' + '考试信息'
...@@ -67,6 +75,13 @@ ...@@ -67,6 +75,13 @@
...toRefs(data), ...toRefs(data),
...methods ...methods
}; };
},
onLoad(options){
this.Msg.ExamId = options.examId;
},
onShow() {
this.userData = uni.getStorageSync('userInfo');
this.getExamStuList();
} }
}; };
</script> </script>
......
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