From 4d2ea0374502ccc3066307ff67e4c38adb3ccecc Mon Sep 17 00:00:00 2001
From: lzhe <181968431@qq.com>
Date: 星期日, 03 十一月 2024 13:36:13 +0800
Subject: [PATCH] 1
---
src/views/mdc/components/recordChartsByWorkstation.vue | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/views/mdc/components/recordChartsByWorkstation.vue b/src/views/mdc/components/recordChartsByWorkstation.vue
index 930ecdd..f8cdab3 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,7 +86,8 @@
},
getCharts() {
if(!this.setWork) return;
- this.$HTTP.post(`/api/blade-mdc/status-record/status-record-by-workstation?current=${this.current}&size=${this.size}`,this.setWork).then(res => {
+ if(this.select.length == 0) return;
+ this.$HTTP.post(`/api/mdc/status-record/status-record-by-workstation?current=${this.current}&size=${this.size}`,this.setWork).then(res => {
if (res.code === 200) {
var yAxisData = [];
var newData = [];
--
Gitblit v1.9.3