修改显示问题

This commit is contained in:
daihh
2023-01-11 11:25:16 +08:00
parent b87afcbd78
commit fb93e1947c
3 changed files with 4 additions and 4 deletions

View File

@@ -27,8 +27,8 @@
<el-menu-item index="/examine/notapproved">
<span class="textl"><el-badge :value="messagesBeReviewed" class="item" :hidden="messagesBeReviewed == 0">待审核的课程</el-badge></span>
</el-menu-item>
<!-- 毛继禹 110858,只有这个人才可以看到这个菜单当前-->
<el-menu-item index="/course/opencourse/audit">
<!-- 毛继禹 110858,只有这个人才可以看到这个菜单如果是本地开发测试把这个先去掉-->
<el-menu-item v-if="userInfo.userNo=='110858'" index="/course/opencourse/audit">
<span class="textl">公开课审核</span>
</el-menu-item>
</el-submenu>

View File

@@ -278,7 +278,7 @@ export function testType(type) { //此方法移到tools中
}
export function toScoreTow(score) {// 返回两位小数
if (!score) {
return '';
return '0';
}
if((''+score).indexOf('.')>-1){
return score.toFixed(2);

View File

@@ -40,7 +40,7 @@
<div><span style="color: #999999;">时间</span> <span>{{ item.startTime}} {{ item.endTime}}</span></div>
<div><span style="color: #999999;">时长</span>{{item.testDuration}}分钟</div>
<div><span style="color: #999999;">总分</span>100</div>
<div><span style="color: #999999;">成绩</span><span style="color: #366fff;">{{toScoreTow(item.score)}}</span></div>
<div><span style="color: #999999;">成绩</span><span style="color: #366fff;">{{item.score==0? '无':toScoreTow(item.score)}}</span></div>
</div>
</div>
<div class="task-btns" >