This commit is contained in:
‘937886381’
2024-06-17 16:59:41 +08:00
parent 0ef7c9808c
commit 14c782f112
5 changed files with 32 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-05-20 13:32:59
* @LastEditTime: 2024-06-14 09:44:42
* @LastEditTime: 2024-06-17 16:42:12
* @LastEditors: zhp
* @Description:
-->
@@ -118,13 +118,13 @@ export default {
items = [
{ label: `${yesterday}日累计`,},
{ label: `${year - 1}${yesterday}累计` },
{ label: `${month}${today}日目标`, },
{ label: `${yesterday}日目标`, },
];
} else if (this.period === '日' && this.than === '环比') {
items = [
{ label: `${yesterday}日累计`},
{ label: `${dayBeYes}日累计` },
{ label: `${month}${today}日目标`, },
{ label: `${yesterday}日目标`, },
];
} else if (this.period === '周' && this.than === '同比') {
items = [
@@ -243,13 +243,13 @@ function calculateItems(period, valueTuple, than) {
items = [
{ label: `${year - 1}${yesterday}累计`, value: valueTuple[0] },
{ label: `${yesterday}累计`, value: valueTuple[1] },
{ label: `${month}${today}日目标`, value: valueTuple[2] },
{ label: `${yesterday}日目标`, value: valueTuple[2] },
];
} else if (period === '日' && than === '环比') {
items = [
{ label: `${dayBeYes}日累计`, value: valueTuple[0] },
{ label: `${yesterday}日累计`, value: valueTuple[1] },
{ label: `${month}${today}日目标`, value: valueTuple[2] },
{ label: `${yesterday}日目标`, value: valueTuple[2] },
];
} else if (period === '周' && than === '同比') {
items = [