diff --git a/src/views/wpm_bx/mlog_form.vue b/src/views/wpm_bx/mlog_form.vue index 4532f636..b9cf8c6d 100644 --- a/src/views/wpm_bx/mlog_form.vue +++ b/src/views/wpm_bx/mlog_form.vue @@ -343,9 +343,10 @@ export default { this.userOptions = res.results; }); }, + //获取班组设备 getEquipment() { let that = this; - this.$API.em.equipment.list.req({ page: 0, type: 10,mgroup:that.mgroup}).then((res) => { + this.$API.em.equipment.list.req({ page: 0, type: 10,belong_dept:that.dept}).then((res) => { res.forEach((item) => { let obj = {}; Object.assign(obj, item); diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index d02325ed..395ab7f1 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -270,10 +270,10 @@ export default { this.routeOriginOptions = res; }); }, - //获取拉丝设备 + //获取班组设备 getEquipment() { let that = this; - this.$API.em.equipment.list.req({ page: 0, type: 10,mgroup:that.mgroup}).then((res) => { + this.$API.em.equipment.list.req({ page: 0, type: 10,belong_dept:that.dept}).then((res) => { res.forEach((item) => { let obj = {}; Object.assign(obj, item);