From dcc4992bd51e9ee4a97099cd3a15085f7e247f23 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 03 十一月 2024 20:21:41 +0800
Subject: [PATCH] update

---
 src/views/mdc/components/recordChartsByDate.vue |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/views/mdc/components/recordChartsByDate.vue b/src/views/mdc/components/recordChartsByDate.vue
index 80303b2..9d87f86 100644
--- a/src/views/mdc/components/recordChartsByDate.vue
+++ b/src/views/mdc/components/recordChartsByDate.vue
@@ -14,16 +14,8 @@
 import * as echarts from 'echarts';
 export default {
     components: {saveDialog},
-    props: ['achievements','date','workstationInfoList'],
+    props: ['achievements','date','workstationInfoList','humanFeedback'],
     watch: {
-        date(val) {
-            this.current = "1";
-            this.getCharts();
-        },
-        workstationInfoList(val) {
-            this.current = "1";
-            this.getCharts();
-        }
     },
     data() {
         return {
@@ -93,13 +85,14 @@
             return stauts;
         },
         getCharts() {
+            if(this.date == "") return;
             var obj = {
                 date: this.date,
-                humanFeedback: true,
+                humanFeedback: this.humanFeedback,
                 machineFeedback: true,
                 workstationInfoList: this.workstationInfoList
             }
-            this.$HTTP.post(`/api/blade-mdc/status-record/status-record-by-date?current=${this.current}&size=${this.size}`,obj).then(res => {
+            this.$HTTP.post(`/api/mdc/status-record/status-record-by-date?current=${this.current}&size=${this.size}`,obj).then(res => {
                 if (res.code === 200) {
                     var yAxisData = [];
                     var newData = [];
@@ -107,6 +100,7 @@
                     res.data.records.reverse();
                     res.data.records.forEach((item,index)=> {
                         yAxisData.push(item.workstationInfo.name);
+                        if(item.statusRecordList == null) item.statusRecordList = [];
                         //璁$畻寮�濮嬫椂闂达紝鏄剧ず鏃堕棿
                         item.statusRecordList.forEach(item1=> {
                             var initstart = item1.startTime.split(" ")[0];  //鏍规嵁鏃ユ湡璁$畻宸��

--
Gitblit v1.9.3