修改ui
This commit is contained in:
		@@ -63,49 +63,47 @@ export default {
 | 
			
		||||
      const year = new Date().getFullYear();
 | 
			
		||||
      if (this.period === '日' && this.than === '同比') {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `${yesterday}日目标`, color: "#58adfa" },
 | 
			
		||||
          { label: `${year - 1}年${yesterday}日`, color: "#12f7f1" },
 | 
			
		||||
          { label: `${yesterday}日`, color: "#58adfa" },
 | 
			
		||||
          { label: `${yesterday}日目标`, color: "#58adfa" },
 | 
			
		||||
        ];
 | 
			
		||||
      } else if (this.period === '日' && this.than === '环比') {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `${yesterday}日目标`, color: "#58adfa" },
 | 
			
		||||
          { 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" },
 | 
			
		||||
 | 
			
		||||
          { label: `${year - 1}年本周`, color: "#12f7f1" },
 | 
			
		||||
          { label: `本周`, color: "#58adfa" },
 | 
			
		||||
        ];
 | 
			
		||||
      } else if (this.period === '周' && this.than === '环比') {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `本周目标`, color: "#58adfa" },
 | 
			
		||||
          { label: `上周`, color: "#12f7f1" },
 | 
			
		||||
          { label: `本周`, color: "#58adfa" },
 | 
			
		||||
          { label: `本周目标`, color: "#58adfa" },
 | 
			
		||||
        ];
 | 
			
		||||
      } else if (this.period === '月' && this.than === '同比') {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `${year-1}年${month}月`, color: "#12f7f1" },
 | 
			
		||||
          { label: `${month}月`, color: "#58adfa" },
 | 
			
		||||
          { label: `${month}月目标`, color: "#58adfa" },
 | 
			
		||||
          { label: `${year - 1}年${month}月`, color: "#12f7f1" },
 | 
			
		||||
          { label: `${month}月`, color: "#58adfa" },
 | 
			
		||||
          // { label: `${month}月目标`, value: valueTuple[2] },
 | 
			
		||||
        ];
 | 
			
		||||
      } else if (this.period === '月' && this.than === '环比') {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `${month}月目标`, color: "#58adfa" },
 | 
			
		||||
          { label: `${lastMonth}月`, color: "#12f7f1" },
 | 
			
		||||
          { label: `${month}月`, color: "#58adfa" },
 | 
			
		||||
          { label: `${month}月目标`, color: "#58adfa" },
 | 
			
		||||
          // { label: `${month}月目标`, value: valueTuple[2] },
 | 
			
		||||
        ];
 | 
			
		||||
      } else {
 | 
			
		||||
        items = [
 | 
			
		||||
          { label: `${year}年目标`, color: "#58adfa" },
 | 
			
		||||
          { label: `${year - 1}年`, color: "#12f7f1" },
 | 
			
		||||
          { label: `${year}年`, color: "#58adfa" },
 | 
			
		||||
          { label:  `${year}年目标`, color: "#58adfa" },
 | 
			
		||||
 | 
			
		||||
          // { label: `${year}年目标`, value: valueTuple[2] },
 | 
			
		||||
        ];
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user