mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 10:56:44 +08:00
Merge branch 'stat' of https://codeup.aliyun.com/6265f483e4166464dc2f9c14/boeu/portal into stat
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
<div v-if="noteList.length > 0">
|
<div v-if="noteList.length > 0">
|
||||||
<div style="border-bottom:1px solid #4444;padding-bottom:25px;" v-for="note in noteList"
|
<div style="border-bottom:1px solid #4444;padding-bottom:25px;" v-for="note in noteList"
|
||||||
:key="note.id">
|
:key="note.id">
|
||||||
<span class="mycote-time">{{note.sysCreateTime}}
|
<span class="mycote-time">{{note.sysUpdateTime}}
|
||||||
<span class="sm">{{note.openType == 9?'公开':'私密'}}</span>
|
<span class="sm">{{note.openType == 9?'公开':'私密'}}</span>
|
||||||
<span class="more">
|
<span class="more">
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
|
|||||||
@@ -324,6 +324,8 @@ export function experienceValue(total) {
|
|||||||
data.endValue = 30000;
|
data.endValue = 30000;
|
||||||
data.percentage = parseFloat((total / 30000) * 100);
|
data.percentage = parseFloat((total / 30000) * 100);
|
||||||
}
|
}
|
||||||
|
console.log("&&&&&&&&&&&&&&&&&&&&&&&");
|
||||||
|
console.log(data);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
export function translate(field) {
|
export function translate(field) {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="exp-bar">
|
<div class="exp-bar">
|
||||||
<h6> {{current.total}}/{{current.endValue}}</h6>
|
<h6> {{current.total}}/{{current.endValue}}</h6>
|
||||||
<div class="exp-barbox" v-if="current.percentage">
|
<div class="exp-barbox">
|
||||||
<el-progress :percentage="current.percentage" color="#387DF7"></el-progress>
|
<el-progress :percentage="current.percentage" color="#387DF7"></el-progress>
|
||||||
<!-- <div class="exp-bar-cont"></div> -->
|
<!-- <div class="exp-bar-cont"></div> -->
|
||||||
</div>
|
</div>
|
||||||
@@ -261,19 +261,16 @@
|
|||||||
sex: null
|
sex: null
|
||||||
}
|
}
|
||||||
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
||||||
|
|
||||||
|
if(res.result.currentUserRankingData.weeks == undefined){res.result.currentUserRankingData.weeks = 0;}
|
||||||
|
if(res.result.currentUserRankingData.months == undefined){res.result.currentUserRankingData.months = 0;}
|
||||||
|
if(res.result.currentUserRankingData.years == undefined){res.result.currentUserRankingData.years = 0;}
|
||||||
|
|
||||||
this.currentUserRankingData = res.result.currentUserRankingData;
|
this.currentUserRankingData = res.result.currentUserRankingData;
|
||||||
if(res.result.currentUserRankingData.total) {
|
if(res.result.currentUserRankingData.total>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.total);}
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
if(res.result.currentUserRankingData.weeks>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.weeks);}
|
||||||
}
|
if(res.result.currentUserRankingData.months>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.months);}
|
||||||
if(res.result.currentUserRankingData.weeks) {
|
if(res.result.currentUserRankingData.years>=0) {this.current = this.experienceValue(res.result.currentUserRankingData.years);}
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.weeks);
|
|
||||||
}
|
|
||||||
if(res.result.currentUserRankingData.months) {
|
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.months);
|
|
||||||
}
|
|
||||||
if(res.result.currentUserRankingData.years) {
|
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.years);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const ids= [];
|
const ids= [];
|
||||||
|
|||||||
@@ -24,10 +24,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="edit-footer">
|
<div class="edit-footer">
|
||||||
<el-radio-group v-model="editdata.openType">
|
<el-radio-group v-if="editdata.openType == 9" v-model="editdata.openType"><el-radio :label="9">公开</el-radio><el-radio :label="1">私密</el-radio></el-radio-group>
|
||||||
<el-radio :label="9">公开</el-radio>
|
<el-radio-group v-if="editdata.openType == 1" v-model="editdata.openType"><el-radio :label="1">私密</el-radio></el-radio-group>
|
||||||
<el-radio :label="1">私密</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
<el-button style="margin-right:40%" type="primary" @click="savedata">保存</el-button>
|
<el-button style="margin-right:40%" type="primary" @click="savedata">保存</el-button>
|
||||||
<el-button @click="comeback">取消</el-button>
|
<el-button @click="comeback">取消</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -104,7 +102,7 @@ export default {
|
|||||||
this.editdata = res.result;
|
this.editdata = res.result;
|
||||||
this.editdata.openTypeBackups = res.result.openType;
|
this.editdata.openTypeBackups = res.result.openType;
|
||||||
this.histId = res.result.id;
|
this.histId = res.result.id;
|
||||||
|
|
||||||
this.hist();
|
this.hist();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -123,9 +121,9 @@ export default {
|
|||||||
this.$message({
|
this.$message({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
message: '已取消还原'
|
message: '已取消还原'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// apiNote.restore(item.id).then(res=>{
|
// apiNote.restore(item.id).then(res=>{
|
||||||
// this.$message({
|
// this.$message({
|
||||||
// message: '还原成功',
|
// message: '还原成功',
|
||||||
@@ -141,7 +139,7 @@ export default {
|
|||||||
res.result.forEach(item=>{
|
res.result.forEach(item=>{
|
||||||
item.beforeContent = item.beforeContent.split(',');
|
item.beforeContent = item.beforeContent.split(',');
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
this.histdata = res.result
|
this.histdata = res.result
|
||||||
})
|
})
|
||||||
@@ -156,7 +154,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(num == 1) {
|
if(num == 1) {
|
||||||
this.editdata.isAuto = true;
|
this.editdata.isAuto = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
if(this.imgContent.length > 0) {
|
if(this.imgContent.length > 0) {
|
||||||
this.editdata.content = this.imgContent.join();
|
this.editdata.content = this.imgContent.join();
|
||||||
@@ -197,7 +195,7 @@ export default {
|
|||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
this.timer = null
|
this.timer = null
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -257,7 +255,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
div{
|
div{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
@@ -267,7 +265,7 @@ export default {
|
|||||||
color: #387DF7;
|
color: #387DF7;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.hist-top{
|
.hist-top{
|
||||||
@@ -398,4 +396,4 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -327,17 +327,20 @@ export default {
|
|||||||
sex: null
|
sex: null
|
||||||
}
|
}
|
||||||
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
this.getUserData([res.result.currentUserRankingData.aid],[res.result.currentUserRankingData])
|
||||||
|
if(res.result.currentUserRankingData.weeks == undefined){res.result.currentUserRankingData.weeks = 0;}
|
||||||
|
if(res.result.currentUserRankingData.months == undefined){res.result.currentUserRankingData.months = 0;}
|
||||||
|
if(res.result.currentUserRankingData.years == undefined){res.result.currentUserRankingData.years = 0;}
|
||||||
this.experience.data = res.result.currentUserRankingData;
|
this.experience.data = res.result.currentUserRankingData;
|
||||||
if(res.result.currentUserRankingData.total) {
|
if(res.result.currentUserRankingData.total>=0) {
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
this.current = this.experienceValue(res.result.currentUserRankingData.total);
|
||||||
}
|
}
|
||||||
if(res.result.currentUserRankingData.weeks) {
|
if(res.result.currentUserRankingData.weeks>=0) {
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.weeks);
|
this.current = this.experienceValue(res.result.currentUserRankingData.weeks);
|
||||||
}
|
}
|
||||||
if(res.result.currentUserRankingData.months) {
|
if(res.result.currentUserRankingData.months>=0) {
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.months);
|
this.current = this.experienceValue(res.result.currentUserRankingData.months);
|
||||||
}
|
}
|
||||||
if(res.result.currentUserRankingData.years) {
|
if(res.result.currentUserRankingData.years>=0) {
|
||||||
this.current = this.experienceValue(res.result.currentUserRankingData.years);
|
this.current = this.experienceValue(res.result.currentUserRankingData.years);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user