From ad3f90c2932c285abe70f9d64d1fbe161aa28a6e Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 11 Apr 2024 17:31:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=97=A5=E5=BF=97=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=97=B6=E7=8F=AD=E7=BB=84=E9=BB=98=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm/worktask_form.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue index d0ab1496..cb9dbf62 100644 --- a/src/views/wpm/worktask_form.vue +++ b/src/views/wpm/worktask_form.vue @@ -1092,7 +1092,6 @@ export default { getShiftOptions() { let that = this; let req_dict = { page: 0 }; - console.log(this.mgroupShiftRule); if ( this.mgroupShiftRule != null && this.mgroupShiftRule != undefined @@ -1101,7 +1100,9 @@ export default { } this.$API.mtm.shift.list.req(req_dict).then((res) => { that.shiftOptions = res; - let list = res.filter((item) => item.rule == "长白班"); + let list = res.filter( + (item) => item.name.indexOf("长白班") > -1 + ); if (that.activeType !== "10车间" && list.length > 0) { that.form.shift = list[0].id; }