diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue index 33b831b4..c2e6a6ae 100644 --- a/src/views/wpm_gx/mlog_form.vue +++ b/src/views/wpm_gx/mlog_form.vue @@ -217,6 +217,15 @@ export default { type: String, default: "", }, + dept: { + type: String, + default: "", + }, + }, + computed: { + title() { + return this.titleMap[this.mode]; + } }, emits: ["success", "closed"], data() { @@ -283,7 +292,7 @@ export default { methods: { //获取 getUser() { - this.$API.system.user.list.req().then((res) => { + this.$API.system.user.list.req({depts: this.dept}).then((res) => { this.userOptions = res.results; }); }, diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue index a6ef3802..51e8b217 100644 --- a/src/views/wpm_gx/mlogs.vue +++ b/src/views/wpm_gx/mlogs.vue @@ -124,6 +124,7 @@ ref="saveDialog" :process="processId" :mgroup="mgroupId" + :dept="deptId" @success="handleSaveSuccess" @closed="dialog.save = false" > @@ -167,6 +168,7 @@ export default { selection: [], mtask: "", mlogId: "", + deptId: null, processId: "", processCate: "", }; @@ -177,6 +179,7 @@ export default { .req({ page: 0, search: that.mgroupName }) .then((res) => { that.mgroupId = res[0].id; + that.deptId = res[0].belong_dept; that.processId = res[0].process; that.processCate = res[0].process_cate; that.params.mgroup = res[0].id;