fix:日志提交时班组默认
This commit is contained in:
parent
50ec90045a
commit
ad3f90c293
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue