暂存
This commit is contained in:
@@ -39,15 +39,15 @@
|
||||
<view class="otherItems flex_box userScore">
|
||||
<view>
|
||||
<text class="ciyao">作业得分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">3</i>分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.task0Score}}</i>分</text>
|
||||
</view>
|
||||
<view><text class="ciyao">医案得分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">6</i>分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.task1Score}}</i>分</text>
|
||||
</view>
|
||||
<view><text class="ciyao">心得得分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">10</i>分</text></view>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.experienceScore}}</i>分</text></view>
|
||||
<view><text class="ciyao">思考题分</text>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">2</i>分</text></view>
|
||||
<text class="ciyao"><i class="mainTxt PM_font">{{performanceScore.questionScore}}</i>分</text></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mainBox">
|
||||
@@ -159,7 +159,7 @@
|
||||
</view>
|
||||
<view class="leve3" >
|
||||
<view class="tips flex_box">
|
||||
<text>发布者:{{item.createUser.nickname != null && item.createUser.nickname != '' ? item.createUser.nickname : '匿名用户'}}</text>
|
||||
<!-- <text>发布者:{{item.createUser.nickname != null && item.createUser.nickname != '' ? item.createUser.nickname : '匿名用户'}}</text> -->
|
||||
<text style="" class="date">日期:{{item.createTime}}</text>
|
||||
</view>
|
||||
<view class="">
|
||||
@@ -223,7 +223,7 @@
|
||||
</view>
|
||||
<text v-else>暂未设置</text>
|
||||
</view>
|
||||
<view class="item arryItem"><text class="adminName">记分员:</text>
|
||||
<!-- <view class="item arryItem"><text class="adminName">记分员:</text>
|
||||
<template v-if="admins.counter.length > 0">
|
||||
<view class="arryItemSub" v-for="(item,index) in admins.counter" :key="index">
|
||||
<template v-if="item.user != null">
|
||||
@@ -233,7 +233,7 @@
|
||||
</view>
|
||||
</template>
|
||||
<text v-else>暂未设置</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="item arryItem"><text class="adminName">评分员:</text>
|
||||
<template v-if="admins.scorer.length > 0">
|
||||
<view class="arryItemSub" v-for="(item,index) in admins.scorer" :key="index">
|
||||
@@ -368,6 +368,12 @@
|
||||
taskList:[], // 任务列表
|
||||
taskHaveMore:false, // 是否还有更多
|
||||
myExperience:'0',
|
||||
performanceScore:{
|
||||
task1Score: 0,
|
||||
experienceScore: 0,
|
||||
task0Score: 0,
|
||||
questionScore: 0
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
@@ -395,7 +401,7 @@
|
||||
},
|
||||
onShow() {
|
||||
this.getClassInfo()
|
||||
|
||||
this.getScore()
|
||||
},
|
||||
computed: {
|
||||
...mapState(["userInfo"]),
|
||||
@@ -425,6 +431,35 @@
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 查询平时表现分
|
||||
getScore(){
|
||||
$http.request({
|
||||
url: "common/class/getUserScore",
|
||||
method: "POST",
|
||||
data: {
|
||||
"classId": this.classId
|
||||
},
|
||||
header: { //默认 无 说明:请求头
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
})
|
||||
.then((res) => {
|
||||
if(res.code == 0){
|
||||
this.performanceScore = res.result
|
||||
console.log('this.performanceScore-------',this.performanceScore);
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: '平时成绩获取失败',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: '平时成绩获取失败',
|
||||
icon: 'none'
|
||||
})
|
||||
});
|
||||
},
|
||||
editMyXinde(item){
|
||||
// var options = JSON.stringify(item)
|
||||
uni.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user