From fe3021f42431476c06501bf810f07380ea4e7a6f Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 6 Jan 2026 17:14:28 +0800 Subject: [PATCH] =?UTF-8?q?2026-01-06=20=E8=BF=87=E7=AB=99=E9=87=87?= =?UTF-8?q?=E9=9B=86=E9=87=8C=E6=93=8D=E4=BD=9C=E5=91=98=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E3=80=90=E4=BF=9D=E5=AD=98=E3=80=91=E6=97=B6=E4=B8=80=E5=AE=9A?= =?UTF-8?q?=E8=A6=81=E6=9C=89=E4=B8=8A=E5=B2=97=E4=BA=BA=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/yieldReport/com_switch_operator.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/modules/yieldReport/com_switch_operator.vue b/src/views/modules/yieldReport/com_switch_operator.vue index e1742be..2af2a9b 100644 --- a/src/views/modules/yieldReport/com_switch_operator.vue +++ b/src/views/modules/yieldReport/com_switch_operator.vue @@ -317,7 +317,7 @@ export default { // 设置是否为考勤修改模式 this.isAttendanceMode = isAttendanceMode; - + // 设置关闭时是否导航(从过站采集页面打开时传false,从机台工作台打开时传true) this.navigateOnClose = navigateOnClose; @@ -542,6 +542,10 @@ export default { }, // 保存并进入机台工作台(或批量更新考勤时间) saveOperatorData() { + if (!this.operatorList || this.operatorList.length === 0) { + this.$message.warning('请上岗人员!') + return + } // 先批量更新所有行的上下岗时间 this.batchUpdateOperatorTimeSync().then(() => { // 如果是考勤修改模式,更新完成后不进入机台工作台