修改bug
This commit is contained in:
		@@ -65,21 +65,26 @@ export default {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `${year - 1}年${yesterday}日`, color: "#12f7f1" },
 | 
			
		||||
          { label: `${yesterday}日`, color: "#58adfa" },
 | 
			
		||||
          { label: `${yesterday}日目标`, color: "#58adfa" },
 | 
			
		||||
 | 
			
		||||
        ];
 | 
			
		||||
      } else if (this.period === '日' && this.than === '环比') {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `${dayBeYes}日`, color: "#12f7f1" },
 | 
			
		||||
          { label: `${yesterday}日`, color: "#58adfa" },
 | 
			
		||||
          { label: `${yesterday}日目标`, color: "#58adfa" },
 | 
			
		||||
        ];
 | 
			
		||||
      } else if (this.period === '周' && this.than === '同比') {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `${year-1}年本周`, color: "#12f7f1" },
 | 
			
		||||
          { label: `本周`, color: "#58adfa" },
 | 
			
		||||
          { label: `本周目标`, color: "#58adfa" },
 | 
			
		||||
        ];
 | 
			
		||||
      } else if (this.period === '周' && this.than === '环比') {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `上周`, color: "#12f7f1" },
 | 
			
		||||
          { label: `本周`, color: "#58adfa" },
 | 
			
		||||
          { label: `本周目标`, color: "#58adfa" },
 | 
			
		||||
        ];
 | 
			
		||||
      } else if (this.period === '月' && this.than === '同比') {
 | 
			
		||||
        items = [
 | 
			
		||||
@@ -112,17 +117,9 @@ export default {
 | 
			
		||||
    series() {
 | 
			
		||||
      // console.log('aaaaaaaa', this.$store.getters.copilot.efficiency.chipOee);
 | 
			
		||||
      const transformRate = this.transformRate
 | 
			
		||||
      // console.log('chipOee', chipOeeRate)
 | 
			
		||||
      console.log('chipOee', transformRate)
 | 
			
		||||
      let dataList = null;
 | 
			
		||||
      switch (this.period) {
 | 
			
		||||
        case "日":
 | 
			
		||||
          dataList = [];
 | 
			
		||||
          dataList[0] = transformRate.previous;
 | 
			
		||||
          dataList[1] = transformRate.current;
 | 
			
		||||
        case "周":
 | 
			
		||||
          dataList = [];
 | 
			
		||||
          dataList[0] = transformRate.previous;
 | 
			
		||||
          dataList[1] = transformRate.current;
 | 
			
		||||
        default:
 | 
			
		||||
          dataList = [];
 | 
			
		||||
          dataList[0] = transformRate.previous;
 | 
			
		||||
@@ -182,6 +179,11 @@ function getTemplate(period, dataList,than) {
 | 
			
		||||
        data: dataList ? dataList[1] : [],
 | 
			
		||||
        // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)),
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        name: `${yesterday}日目标`,
 | 
			
		||||
        data: dataList ? dataList[2] : [],
 | 
			
		||||
        // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)),
 | 
			
		||||
      },
 | 
			
		||||
    ];
 | 
			
		||||
  } else if (period === '日' && than === '环比') {
 | 
			
		||||
    items = [
 | 
			
		||||
@@ -194,6 +196,11 @@ function getTemplate(period, dataList,than) {
 | 
			
		||||
        data: dataList ? dataList[1] : [],
 | 
			
		||||
        // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)),
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        name: `${yesterday}日目标`,
 | 
			
		||||
        data: dataList ? dataList[2] : [],
 | 
			
		||||
        // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)),
 | 
			
		||||
      },
 | 
			
		||||
    ];
 | 
			
		||||
  } else if (period === '周' && than === '同比') {
 | 
			
		||||
    items = [
 | 
			
		||||
@@ -206,6 +213,11 @@ function getTemplate(period, dataList,than) {
 | 
			
		||||
        data: dataList ? dataList[1] : [],
 | 
			
		||||
        // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)),
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        name: `本周目标`,
 | 
			
		||||
        data: dataList ? dataList[2] : [],
 | 
			
		||||
        // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)),
 | 
			
		||||
      },
 | 
			
		||||
    ];
 | 
			
		||||
  } else if (period === '周' && than === '环比') {
 | 
			
		||||
    items = [
 | 
			
		||||
@@ -218,6 +230,11 @@ function getTemplate(period, dataList,than) {
 | 
			
		||||
        data: dataList ? dataList[1] : [],
 | 
			
		||||
        // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)),
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        name: `本周目标`,
 | 
			
		||||
        data: dataList ? dataList[2] : [],
 | 
			
		||||
        // : Array.from({ length: 7 }, () => Math.floor(Math.random() * 1000)),
 | 
			
		||||
      },
 | 
			
		||||
    ];
 | 
			
		||||
  } else if (period === '月' && than === '同比') {
 | 
			
		||||
    items = [
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user