fix🛠️: 金额显示bug
This commit is contained in:
parent
0d4e4ca149
commit
7afb38b831
|
@ -4,5 +4,5 @@ docker push registry.cn-hangzhou.aliyuncs.com/fadinglight/bill-react:dev
|
|||
|
||||
ssh aliyun "cd /root/docker/bill-sys/;
|
||||
docker compose down;
|
||||
docker pull registry.cn-hangzhou.aliyuncs.com/fadinglight/bill-go:dev;
|
||||
docker pull registry.cn-hangzhou.aliyuncs.com/fadinglight/bill-react:dev;
|
||||
docker compose up -d"
|
||||
|
|
|
@ -80,7 +80,14 @@ export class Bill {
|
|||
}
|
||||
|
||||
getTotalMoney(type?: BillType) {
|
||||
return !type ? this.totalMoney : type === BillType.income ? this.incomeMoney : this.consumeMoney
|
||||
switch (type) {
|
||||
case BillType.income:
|
||||
return this.incomeMoney
|
||||
case BillType.consume:
|
||||
return this.consumeMoney
|
||||
default:
|
||||
return this.totalMoney
|
||||
}
|
||||
}
|
||||
|
||||
get meanMoneyByDate() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user