mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-08 10:26:43 +08:00
Merge branch 'zcwy_0806_paihangb' into dev0515
This commit is contained in:
@@ -206,7 +206,7 @@
|
||||
</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="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> -->
|
||||
@@ -429,14 +429,14 @@ export default {
|
||||
getDuration() {//学习时长
|
||||
let data = {
|
||||
aid:this.userInfo.aid,// #用户id
|
||||
statType:10, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
|
||||
statType:12, // #统计类型 10学习时长 11 学习天数 20表经验值 30表u币 40表获取天数
|
||||
field:this.learningDuration.field,// #统计周期 todays-当天,weeks-周,months-月,years-年 total-总计
|
||||
num:5,// #显示的条数
|
||||
}
|
||||
if(data.field == 'now'){
|
||||
data.statType = 12
|
||||
data.statType = 10
|
||||
data.field = 'total'
|
||||
this.experience.field = 'total'
|
||||
this.learningDuration.field = 'total'
|
||||
this.isStudyTime = true
|
||||
}
|
||||
apiStat.getRanking(data).then(res=>{
|
||||
@@ -485,7 +485,7 @@ export default {
|
||||
if(data.field == 'now'){
|
||||
data.statType = 13
|
||||
data.field = 'total'
|
||||
this.experience.field = 'total'
|
||||
this.learningDays.field = 'total'
|
||||
this.isStudyDay = true
|
||||
}
|
||||
apiStat.getRanking(data).then(res=>{
|
||||
|
||||
Reference in New Issue
Block a user