会员 + 工会小组

This commit is contained in:
Paidax
2025-09-30 15:41:26 +08:00
parent 9da91e75eb
commit 3e46682706
6 changed files with 32 additions and 12 deletions
@@ -113,8 +113,10 @@ const branchUnionGroupManage = {
async onEdit(row) {
this.formData = { ...row }
this.formData.unitIds = JSON.parse(row.unitIds)
this.formData.leaders = JSON.parse(row.leaders)
await this.getUnits(row.id)
this.getUserOptions(row.leaderUserName)
this.getUserOptions(null, this.formData.leaders)
this.dialogFormVisible = true
this.$nextTick(() => {
this.$refs.formRef.clearValidate()
@@ -166,8 +168,12 @@ const branchUnionGroupManage = {
})
},
getUserOptions(keyword) {
$.get("/platform/sys/unionGroup/listUser", { keyword, unionId: this.union_id }).then((res) => {
getUserOptions(keyword, userIds = null) {
$.get("/platform/sys/unionGroup/listUser", {
keyword,
unionId: this.union_id,
userIds: JSON.stringify(userIds)
}).then((res) => {
if (res.code === 0) {
this.userOptions = res.data
}