feat: wpm_gx mlog_form user添加筛选条件

This commit is contained in:
zty 2024-07-30 14:15:11 +08:00
parent 733b43786b
commit 8896a3927c
2 changed files with 13 additions and 1 deletions

View File

@ -217,6 +217,15 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
dept: {
type: String,
default: "",
},
},
computed: {
title() {
return this.titleMap[this.mode];
}
}, },
emits: ["success", "closed"], emits: ["success", "closed"],
data() { data() {
@ -283,7 +292,7 @@ export default {
methods: { methods: {
// //
getUser() { getUser() {
this.$API.system.user.list.req().then((res) => { this.$API.system.user.list.req({depts: this.dept}).then((res) => {
this.userOptions = res.results; this.userOptions = res.results;
}); });
}, },

View File

@ -124,6 +124,7 @@
ref="saveDialog" ref="saveDialog"
:process="processId" :process="processId"
:mgroup="mgroupId" :mgroup="mgroupId"
:dept="deptId"
@success="handleSaveSuccess" @success="handleSaveSuccess"
@closed="dialog.save = false" @closed="dialog.save = false"
> >
@ -167,6 +168,7 @@ export default {
selection: [], selection: [],
mtask: "", mtask: "",
mlogId: "", mlogId: "",
deptId: null,
processId: "", processId: "",
processCate: "", processCate: "",
}; };
@ -177,6 +179,7 @@ export default {
.req({ page: 0, search: that.mgroupName }) .req({ page: 0, search: that.mgroupName })
.then((res) => { .then((res) => {
that.mgroupId = res[0].id; that.mgroupId = res[0].id;
that.deptId = res[0].belong_dept;
that.processId = res[0].process; that.processId = res[0].process;
that.processCate = res[0].process_cate; that.processCate = res[0].process_cate;
that.params.mgroup = res[0].id; that.params.mgroup = res[0].id;