From 55900c9b6519dbe3d0f02f914a1cb2b2be22a6a9 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期三, 15 五月 2024 09:45:21 +0800
Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/smart-web

---
 src/views/mdc/components/recordChartsByDate.vue |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/views/mdc/components/recordChartsByDate.vue b/src/views/mdc/components/recordChartsByDate.vue
index 90f7f05..f541500 100644
--- a/src/views/mdc/components/recordChartsByDate.vue
+++ b/src/views/mdc/components/recordChartsByDate.vue
@@ -14,7 +14,7 @@
 import * as echarts from 'echarts';
 export default {
     components: {saveDialog},
-    props: ['collectionstatus','date','workstationInfoList'],
+    props: ['achievements','date','workstationInfoList'],
     watch: {
         date(val) {
             this.current = "1";
@@ -75,8 +75,8 @@
         },
         getColor(name) {
             var color = '';
-            this.collectionstatus.forEach(item=> {
-                if(item.name == name) {
+            this.achievements.forEach(item=> {
+                if(item.code == name) {
                     color = item.color;
                 }
             })
@@ -103,7 +103,7 @@
                             var startTime = moment(item1.startTime).diff(moment(initstart + " 00:00:00"), 'minutes');
                             var endTime = moment(item1.endTime).diff(moment(initstart + " 00:00:00"), 'minutes');
                             var diff = moment(item1.endTime).diff(moment(item1.startTime), 'minutes') //寮�濮嬩簡澶氫箙
-                            var color = this.getColor(item1.wcsDesc);
+                            var color = this.getColor(item1.wcs);
                             item1.value = [index,startTime,endTime,diff];
                             item1.itemStyle = {"normal": {"color": color}};
                             item1.code = item.workstationInfo.code;

--
Gitblit v1.9.3