修改bug

This commit is contained in:
‘937886381’
2024-06-07 11:13:59 +08:00
parent 1e8d60696b
commit ef618a4abb
27 changed files with 643 additions and 214 deletions

View File

@@ -1,7 +1,7 @@
<!--
* @Author: zhp
* @Date: 2024-05-29 14:48:06
* @LastEditTime: 2024-05-30 10:54:00
* @LastEditTime: 2024-06-07 09:30:17
* @LastEditors: zhp
* @Description:
-->
@@ -41,7 +41,7 @@ export default {
},
data() {
// 城市数组的顺序必须是固定的
const cities = ["fto投入", "芯片产量", "标准组件产量"];
const cities = ["FTO投入", "芯片产量", "标准组件产量"];
return {
// xAxis: cities,
};
@@ -67,7 +67,7 @@ export default {
const year = new Date().getFullYear();
if (this.period === 1 && this.than === '同比') {
items = [
{ label: `${month}${today}`, color: "#12f7f1" },
{ label: `${year-1}${month}${today}`, color: "#12f7f1" },
{ label: `${month}${today}`, color: "#58adfa" },
];
} else if (this.period ===1 && this.than === '环比') {
@@ -77,7 +77,7 @@ export default {
];
} else if (this.period === 2 && this.than === '同比') {
items = [
{ label: `年本周`, color: "#12f7f1" },
{ label: `${year-1}年本周`, color: "#12f7f1" },
{ label: `本周`, color: "#58adfa" },
];
} else if (this.period === 2 && this.than === '环比') {
@@ -87,7 +87,7 @@ export default {
];
} else if (this.period === 3 && this.than === '同比') {
items = [
{ label: `${month}`, color: "#12f7f1" },
{ label: `${year-1}${month}`, color: "#12f7f1" },
{ label: `${month}`, color: "#58adfa" },
{ label: `${month}月目标`, color: "#58adfa" },
// { label: `${month}月目标`, value: valueTuple[2] },
@@ -172,7 +172,7 @@ function getTemplate(period, dataList, than) {
if (period === 1 && than === '同比') {
items = [
{
name: `${month}${today}`,
name: `${year-1}${month}${today}`,
data: dataList ? dataList[0] : [],
},
{
@@ -196,7 +196,7 @@ function getTemplate(period, dataList, than) {
} else if (period === 2 && than === '同比') {
items = [
{
name: `年本周`,
name: `${year-1}年本周`,
data: dataList ? dataList[0] : [],
},
{
@@ -220,7 +220,7 @@ function getTemplate(period, dataList, than) {
} else if (period === 3 && than === '同比') {
items = [
{
name: `${month}`,
name: `${year-1}${month}`,
data: dataList ? dataList[0] : [],
},
{