在转办旁回显所选人员

认证清单--认证目录-添加,字符长度限制提示
This commit is contained in:
范强强
2023-03-28 15:09:31 +08:00
parent 7b0b44d95e
commit e2e1f35c8f
3 changed files with 93 additions and 40 deletions
+11 -4
View File
@@ -67,7 +67,8 @@
departId: '',
defaultExpandedKeys: [],
submitLoading: false,
visibleTree: false
visibleTree: false,
userName: []
}
},
mounted() {
@@ -110,7 +111,7 @@
}
if (this.userIds && this.userIds.length > 0) {
this.submitLoading = true
this.$emit('SelectedByForm', this.userIds.join(','))
this.$emit('SelectedByForm', this.userIds.join(','),this.userName.join(','))
} else {
this.$message.warning(this.$t('selectLeastOne'))
}
@@ -142,7 +143,7 @@
postAction('sys/user/queryDepartUserTreeList', {
departId: this.departId,
json: gData,
flag:'1'
flag: '1'
}).then((res) => {
this.confirmLoading = false
if (res.success) {
@@ -155,8 +156,14 @@
}
})
},
checkChange(e) {
checkChange(e, name) {
this.userName = []
this.userIds = e
if (name.checkedNodes && name.checkedNodes.length > 0) {
name.checkedNodes.forEach(res => {
this.userName.push(res.data.props.dataRef.title)
})
}
}
}
}