This commit is contained in:
Pengxiansen
2025-02-27 16:40:43 +08:00
parent 1a69a04998
commit 1ffc097329
2 changed files with 62 additions and 53 deletions

View File

@@ -28,22 +28,22 @@
<div class="nav">
<div class="tabs">
<!-- <template v-if="selectGrowth.electiveTaskNum !== 0"> -->
<div
class="tabs-item"
:class="queryParams.type == 1 ? 'active' : ''"
@click="tabClick(1)"
>
<div class="tabs-text">必修</div>
<div class="tabs-line"></div>
</div>
<div
class="tabs-item"
:class="queryParams.type == 2 ? 'active' : ''"
@click="tabClick(2)"
>
<div class="tabs-text">选修</div>
<div class="tabs-line"></div>
</div>
<div
class="tabs-item"
:class="queryParams.type == 1 ? 'active' : ''"
@click="tabClick(1)"
>
<div class="tabs-text">必修</div>
<div class="tabs-line"></div>
</div>
<div
class="tabs-item"
:class="queryParams.type == 2 ? 'active' : ''"
@click="tabClick(2)"
>
<div class="tabs-text">选修</div>
<div class="tabs-line"></div>
</div>
<!-- </template> -->
</div>
<div style="display: flex">
@@ -220,9 +220,16 @@
</div>
<div class="rate" v-if="lastLearned">
<div class="ratetext">
上次学到:{{ lastLearned.taskName }}
</div>
<a-tooltip
placement="topLeft"
:title="lastLearned.taskName"
arrow-point-at-center
style="width: 75%;"
>
<div class="ratetext">
上次学到:{{ lastLearned.taskName }}
</div>
</a-tooltip>
<div
v-if="lastLearned"
class="ratebtn"
@@ -283,41 +290,41 @@
</div>
</div>
<!-- <template v-if="selectGrowth.electiveTaskNum !== 0"> -->
<div style="margin-top: 31px">
<div class="progressBox">
<div style="display: flex; align-items: center">
<div style="margin-right: 8px">选修进度</div>
<el-tooltip
class="item"
effect="light"
:content="`还需完成${selectGrowth.electivePoorNum}个选修任务`"
placement="top-start"
>
<el-icon color="#FE9100"><QuestionFilled /></el-icon>
</el-tooltip>
<div style="margin-top: 31px">
<div class="progressBox">
<div style="display: flex; align-items: center">
<div style="margin-right: 8px">选修进度</div>
<el-tooltip
class="item"
effect="light"
:content="`还需完成${selectGrowth.electivePoorNum}个选修任务`"
placement="top-start"
>
<el-icon color="#FE9100"><QuestionFilled /></el-icon>
</el-tooltip>
</div>
<div class="progress">
<div style="flex: 1">
<el-progress
:percentage="electiveProgress"
:show-text="false"
:stroke-width="8"
color="#FE9100"
/>
</div>
<div class="progress">
<div style="flex: 1">
<el-progress
:percentage="electiveProgress"
:show-text="false"
:stroke-width="8"
color="#FE9100"
/>
</div>
<div
style="
font-size: 14px;
font-weight: 500;
margin-left: 10px;
color: #677d86;
"
>
{{ electiveProgress }}%
</div>
<div
style="
font-size: 14px;
font-weight: 500;
margin-left: 10px;
color: #677d86;
"
>
{{ electiveProgress }}%
</div>
</div>
</div>
</div>
<!-- </template> -->
</div>
</div>
@@ -967,11 +974,14 @@ function toOffcoursePlanPage(item) {
}
.info .rate .ratetext {
// width: 259px;
font-size: 14px;
font-weight: 500;
color: #677d86;
line-height: 24px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
.info .rate .ratebtn {

View File

@@ -68,8 +68,7 @@
/>
<el-button
icon="Search"
style="margin-left: 20px"
type="primary"
style="margin-left: 20px; background-color: #0077ec; color: #fff"
@click="getList"
>搜索</el-button
>