优化模板

Signed-off-by: 帮帮 <3102509561@qq.com>
This commit is contained in:
帮帮 2023-08-19 15:05:07 +00:00 committed by Gitee
parent 151331e36d
commit 1d1cf99df7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 7 additions and 5 deletions

View File

@ -120,10 +120,12 @@ export default class Ledger extends base {
ledgerInfo.color = []
ledgerInfo.month_data.group_by.forEach((item) => {
if (this.e.isSr)
if (this.e.isSr){
item.color = this.color[this.action[item.action]]
else
item.action_name = item.action_name.slice(0, 4)
} else {
item.color = this.color[item.action_id]
}
ledgerInfo.color.push(item.color)
})
@ -412,7 +414,7 @@ export default class Ledger extends base {
if (this.e.isSr)
groupBy.forEach((item) => {
item.action_id = this.action[item.action]
item.action = item.action_name
item.action = item.action_name.slice(0, 4)
})
let pieData = {}

View File

@ -260,7 +260,7 @@ img {
width: 440px;
height: 440px;
background: url(../../img/other/chart.png) no-repeat 50% / cover;
margin-left: 60px;
margin-left: 70px;
}
.tooltip {
@ -284,7 +284,7 @@ img {
}
.tooltip li .action {
width: 300px;
width: 250px;
}
.tooltip li em {