Commit 29e43eaa authored by renjintao's avatar renjintao

userSelect Add Data

parent d5772c8a
...@@ -228,6 +228,14 @@ export default { ...@@ -228,6 +228,14 @@ export default {
} }
} else { } else {
//复选时返回 //复选时返回
if (this.datas && this.datas.length > 0) {
this.value.forEach(v => {
var item3 = this.dic.filter(u => u.value == v);
if (item3 && item3[0]) {
items.push(item3[0]);
}
});
} else {
this.value.forEach(v => { this.value.forEach(v => {
var item = this.dic.filter(u => u.value == v); var item = this.dic.filter(u => u.value == v);
if (item && item[0]) { if (item && item[0]) {
...@@ -236,6 +244,7 @@ export default { ...@@ -236,6 +244,7 @@ export default {
}); });
} }
} }
}
return items; return items;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment