人员选择器需求调整

This commit is contained in:
艾贤凌
2022-01-18 15:58:07 +08:00
parent 96f04bbdca
commit db905fa4e3
5 changed files with 31 additions and 10 deletions

View File

@@ -105,16 +105,16 @@ export default {
},
methods: {
...mapActions(['selectEnterpriseContact']),
...mapActions(['selectPrivilegedContact']),
handleSelectUser() {
if (this.clickedUserSelect) return this.$u.toast("正在打开人员选择器")
this.clickedUserSelect = true
this.selectEnterpriseContact({
this.selectPrivilegedContact({
fromDepartmentId: 0,
type: ["user"],
selectedUserIds: this.form.persons?.map(e => e.id)
selectedOpenUserIds: this.form.persons?.map(e => e.id)
}).then(res => {
this.form.persons = res?.userList || []
this.form.ticket = res?.selectedTicket
this.clickedUserSelect = false
}).catch(() => {
this.clickedUserSelect = false