From 963a2313f4f8959715293d38f69894078150d508 Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期五, 14 六月 2024 11:29:47 +0800
Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/smart-web

---
 src/views/mdc/components/recordChartsByWorkstation.vue |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/views/mdc/components/recordChartsByWorkstation.vue b/src/views/mdc/components/recordChartsByWorkstation.vue
index 930ecdd..2413dfa 100644
--- a/src/views/mdc/components/recordChartsByWorkstation.vue
+++ b/src/views/mdc/components/recordChartsByWorkstation.vue
@@ -13,14 +13,14 @@
 export default {
     props: ['setWork','achievements',"select"],
     watch: {
-        setWork(val) {
-            this.current = "1";
-            this.getCharts();
-        },
-        select(val) {
-            this.current = "1";
-            this.getCharts();
-        }
+        // setWork(val) {
+        //     this.current = "1";
+        //     this.getCharts();
+        // },
+        // select(val) {
+        //     this.current = "1";
+        //     this.getCharts();
+        // }
     },
     data() {
         return {
@@ -86,6 +86,7 @@
         },
         getCharts() {
             if(!this.setWork) return;
+            if(this.select.length == 0) return;
             this.$HTTP.post(`/api/blade-mdc/status-record/status-record-by-workstation?current=${this.current}&size=${this.size}`,this.setWork).then(res => {
                 if (res.code === 200) {
                     var yAxisData = [];

--
Gitblit v1.9.3