mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 04:22:25 +09:00
remove : 2명으로 제한 로직 풀기
This commit is contained in:
@@ -69,23 +69,27 @@ const onKeyup = async (e: any) => {
|
||||
const res = await getUserList({params:{name : e.target.value}})
|
||||
|
||||
if (res.length > 0) {
|
||||
res.forEach(u => {
|
||||
if (model.value?.length > 0) {
|
||||
const ignore = model.value.reduce((a: Person, b: Person) => {
|
||||
return a.sabun + '|' + b.sabun
|
||||
})
|
||||
|
||||
if (typeof ignore !== 'object') {
|
||||
if (ignore.includes(u.sabun)) {
|
||||
u['disabled'] = true
|
||||
}
|
||||
} else {
|
||||
if (ignore.sabun.includes(u.sabun)) {
|
||||
u['disabled'] = true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
// res.forEach(u => { 2명으로 제한 로직 풀기 25.05.29
|
||||
// if (model.value?.length > 0) {
|
||||
// const ignore = model.value.reduce((a: Person, b: Person) => {
|
||||
// console.log("aaaaa",a.sabun)
|
||||
// console.log("bbbbbb",b.sabun)
|
||||
// return a.sabun + '|' + b.sabun
|
||||
// })
|
||||
//
|
||||
// if (typeof ignore !== 'object') {
|
||||
// if (ignore.includes(u.sabun)) {
|
||||
// console.log("ignore 처리",u.sabun)
|
||||
// u['disabled'] = true
|
||||
// }
|
||||
// } else {
|
||||
// if (ignore.sabun.includes(u.sabun)) {
|
||||
// console.log("ignore 처리222",u.sabun)
|
||||
// u['disabled'] = true
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
tagsOptions.value = res
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user