|
@@ -50,6 +50,7 @@ export default {
|
|
|
// this.getList();
|
|
|
// console.log(this.value)
|
|
|
this.getOptions(this.value|| '' )
|
|
|
+ // console.log(this.multiple)
|
|
|
|
|
|
|
|
|
},
|
|
@@ -75,7 +76,8 @@ export default {
|
|
|
throttle(this.getOptions, 800)(query);
|
|
|
},
|
|
|
async getOptions(query) {
|
|
|
- if (query) {
|
|
|
+
|
|
|
+ if (query&&query.length>0) {
|
|
|
let flag;
|
|
|
this.options = this.list.filter((item) => {
|
|
|
flag =
|
|
@@ -99,7 +101,9 @@ export default {
|
|
|
this.options.push(valueItem)
|
|
|
this.options = uniqBy(this.options, 'userId')
|
|
|
}
|
|
|
- console.log( this.options)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}catch(e){
|
|
|
// console.log(e)
|
|
|
}
|
|
@@ -128,7 +132,8 @@ export default {
|
|
|
|
|
|
if (this.multiple) {
|
|
|
if (val?.length > 0 && this.isFirst) {
|
|
|
- this.getOptions('')
|
|
|
+
|
|
|
+ this.getOptions()
|
|
|
}
|
|
|
} else {
|
|
|
if (val && this.isFirst) {
|