Commit 55efa978 by 胡悦

fix(studyDetail): Update progress display and improve superior text styling

- Changed progress display to show "已完成" when completeStatus is 1.
- Updated score display to show actual score instead of "已完成" or "待考核".
- Enhanced styling for superior text to handle overflow and improve readability.
1 parent 15944771
......@@ -16,9 +16,10 @@
<view class="course-title">{{ rowData.taskTitle || rowData.taskName }}</view>
<view class="course-info course-progress">
<view class="info-label">任务进度</view>
<view class="info-progress">
<view class="info-progress-bar" :style="{ width: Math.floor(rowData.taskProgress) + '%' }"></view>
<view class="info-progress-text">{{ Math.floor(rowData.taskProgress) }}%</view>
<view v-if="completeStatus == 1" class="info-progress-text">已完成</view>
<view class="info-progress" v-else>
<view class="info-progress-bar" :style="{ width: Math.floor(rowData.taskProgress) + '%' }"></view>
<view class="info-progress-text">{{ Math.floor(rowData.taskProgress) }}%</view>
</view>
</view>
<view class="course-info">
......@@ -70,7 +71,7 @@
</view>
<view class="item-info">
<view class="item-info-label">考试成绩</view>
<view class="item-info-value">{{ item.totalScore ? '已完成' : '待考核' }}</view>
<view class="item-info-value">{{ item.totalScore ? item.totalScore : '未考核' }}</view>
</view>
<view class="item-info">
<view class="item-info-label">课程时长</view>
......
......@@ -26,7 +26,12 @@
</view>
<view class="top-box-info">
<view class="top-box-info-item">驻店时间:{{ courseDetail.residentTimeTag || '-' }}</view>
<view class="top-box-info-item">直属上级:{{ courseDetail.superior || '-' }}</view>
<view class="top-box-info-item">
直属上级:
<text class="superior-text">
{{ courseDetail.superior || '-' }}
</text>
</view>
</view>
</view>
<view class="bottom-box">
......@@ -579,6 +584,14 @@ export default {
color: #79859e;
font-size: toRpx(24);
font-weight: 400;
.superior-text {
max-width: toRpx(200);
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!