mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 09:56:42 +08:00
Merge branch 'zcwy_0806_paihangb' into dev0515
This commit is contained in:
@@ -206,7 +206,6 @@
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item command="total">累计</el-dropdown-item>
|
||||
<el-dropdown-item command="now">当前</el-dropdown-item>
|
||||
<!-- <el-dropdown-item command="weeks">本周</el-dropdown-item>
|
||||
<el-dropdown-item command="months">本月</el-dropdown-item>
|
||||
<el-dropdown-item command="years">本年</el-dropdown-item> -->
|
||||
@@ -216,10 +215,10 @@
|
||||
</div>
|
||||
<div class="myselftext">
|
||||
<div class="myranking">
|
||||
{{isStudyDay ? '当前' : '累计'}}排名 : <span> {{learningDaysTotalData.rankNo}}</span>
|
||||
累计排名 : <span> {{learningDaysTotalData.rankNo}}</span>
|
||||
</div>
|
||||
<div class="myexperience">
|
||||
{{isStudyDay ? '当前' : '累计'}}学习天数 : <span>{{learningDaysTotalData.rankValue}}</span>
|
||||
累计学习天数 : <span>{{learningDaysTotalData.rankValue}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="exp-table" style="margin-top:20px;">
|
||||
@@ -346,7 +345,6 @@ export default {
|
||||
},
|
||||
isNow: false,
|
||||
isStudyTime: false,
|
||||
isStudyDay: false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -372,7 +370,6 @@ export default {
|
||||
},
|
||||
// 学习天数(下拉框事件)
|
||||
daysCommand(e) {
|
||||
this.isStudyDay = false
|
||||
this.learningDays.field = e;
|
||||
this.learningDays.name = this.translate(e)
|
||||
this.getDays();
|
||||
@@ -482,12 +479,6 @@ export default {
|
||||
field:this.learningDays.field,// #统计周期 todays-当天,weeks-周,months-月,years-年 total-总计
|
||||
num:5,// #显示的条数
|
||||
}
|
||||
if(data.field == 'now'){
|
||||
data.statType = 13
|
||||
data.field = 'total'
|
||||
this.experience.field = 'total'
|
||||
this.isStudyDay = true
|
||||
}
|
||||
apiStat.getRanking(data).then(res=>{
|
||||
if(res.status==200){
|
||||
if(res.result.currentUserRankingData) {
|
||||
|
||||
Reference in New Issue
Block a user