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/status-record.vue | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/src/views/mdc/status-record.vue b/src/views/mdc/status-record.vue
index f1b7877..91971d6 100644
--- a/src/views/mdc/status-record.vue
+++ b/src/views/mdc/status-record.vue
@@ -72,7 +72,7 @@
</div>
</div>
<!-- setWork 鍏ュ弬 -->
- <record-charts-by-workstation :setWork="setWork" :select="select" :collectionstatus="collectionstatus" v-if="!isshowempty"></record-charts-by-workstation>
+ <record-charts-by-workstation :setWork="setWork" :select="select" :achievements="achievements" v-if="!isshowempty"></record-charts-by-workstation>
</div>
</div>
<save-dialog v-if="dialog.save" ref="saveDialog" @success="addfeedbackSuccess" :workstationId="lastLevelId" @closed="dialog.save=false"></save-dialog>
@@ -166,12 +166,19 @@
},
methods: {
addfeedbackSuccess() {
+ var workstationName = "";
+ this.btnGongweiList.forEach(item=> {
+ if(item.id == this.btnGongweiListActive) {
+ workstationName = item.name;
+ }
+ })
this.setWork = {
endDate: this.time[1],
startDate: this.time[0],
humanFeedback: true,
machineFeedback: true,
- workstationId: this.lastLevelId
+ workstationId: this.lastLevelId,
+ workstationName: workstationName
}
},
table_edit(){
@@ -206,12 +213,19 @@
changeTabGongwei(item) { //鎸夊伐浣嶆煡璇�
this.btnGongweiListActive = item.id;
this.lastLevelId = this.btnGongweiListActive;
+ var workstationName = "";
+ this.btnGongweiList.forEach(item=> {
+ if(item.id == this.btnGongweiListActive) {
+ workstationName = item.name;
+ }
+ })
this.setWork = {
endDate: this.time[1],
startDate: this.time[0],
humanFeedback: true,
machineFeedback: true,
- workstationId: item.id
+ workstationId: item.id,
+ workstationName: workstationName
}
},
getachievements() { //鐝鐘舵�佽褰曢噰闆嗙姸鎬�
@@ -272,7 +286,8 @@
startDate: this.time[0],
humanFeedback: true,
machineFeedback: true,
- workstationId: this.select[0].id
+ workstationId: this.select[0].id,
+ workstationName: this.btnGongweiList[0].name
}
this.isshowempty = false;
}
--
Gitblit v1.9.3