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,
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;
});
},

View File

@ -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;