lcw
This commit is contained in:
@ -106,6 +106,15 @@ const handleChange = (e) => {
|
||||
if (props.multiple === true) {
|
||||
const data = e.map((item) => {return item[item.length - 1];});
|
||||
emits("update:modelValue", data);
|
||||
const obj= data.map(items=>{
|
||||
return {
|
||||
... depList.value.find(item=>{ return item.orgCode == items})
|
||||
}
|
||||
})
|
||||
console.log(obj);
|
||||
|
||||
emits("getDepValue", obj);
|
||||
|
||||
} else {
|
||||
const data = e ? e[e.length - 1] : "";
|
||||
emits("update:modelValue", data);
|
||||
|
||||
Reference in New Issue
Block a user