Skip to content

Commit

Permalink
添加字典中实体过滤
Browse files Browse the repository at this point in the history
  • Loading branch information
PPzXiao committed Jun 1, 2020
1 parent 3d404cb commit 25791dd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/views/label/labeling.vue
Original file line number Diff line number Diff line change
Expand Up @@ -860,25 +860,25 @@ const carouselPrefix = '?imageView2/2/h/440'
},
dicinputfilter(){
var filterArr =[]
setTimeout(() => {
// setTimeout(() => {
// if (this.options.length>0) {
console.log('awdawd');
// if (JSON.stringify(this.labeledevent1) != "{}") {
console.log('awdawd',this.labeledevent1);
if (JSON.stringify(this.labeledevent1) != "{}"&&this.labeledevent1.name!="") {
var eventname = this.labeledevent1.name.split(this.labeledevent1.id)
for (let i = 0; i < this.options.length; i++) {
// if (this.options[i].children) {
for (let j = 0; j < this.options[i].children.length; j++) {
this.options[i].children[j].groupname = this.options[i].label
// if (this.options[i].label===eventname[0]) {
if (this.options[i].label===eventname[0]) {
filterArr.push(this.options[i].children[j])
// }
}
}
// }
}
// }
}
console.log('addregular',filterArr);
// }
}, 1000);
// }, 1000);
return filterArr
},
dicoptionfilter(){
Expand Down

0 comments on commit 25791dd

Please sign in to comment.