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(() => { // 如果是考勤修改模式,更新完成后不进入机台工作台