-- 授课老师

This commit is contained in:
yuping
2022-12-07 12:01:29 +08:00
parent 0fd2267286
commit a5c3238625

View File

@@ -122,9 +122,9 @@ const searchMember = (keyWord) => {
};
function change(e, l) {
selectOptions.value = l
isOpen.value = false
emit('onChange', e, l, selectOptions.value.find(e => e.deptId)?.deptId)
Array.isArray(l) && (selectOptions.value = l)
Array.isArray(selectOptions.value) && emit('onChange', e, l, selectOptions.value.find(e => e.deptId)?.deptId)
if (Array.isArray(l)) {
emit('update:name', l.map(t => t.label).join(','))
emit('update:value', l.map(t => t.value).join(','))