This commit is contained in:
2021-02-09 16:28:27 +00:00
parent 0f80f4f95a
commit c2f7c17c8b

View File

@@ -1,10 +1,10 @@
<template> <template>
<div> <div>
<!-- <div> <div>
tagSearchEntry: tagSearchEntry:
{{ tagSearchEntry }}<br /> {{ tagSearchEntry }}<br />
value:{{ value }} value:{{ value }}
</div> --> </div>
<span class="v-label v-label--active theme--light"> <span class="v-label v-label--active theme--light">
{{ title }} {{ title }}
</span> </span>
@@ -23,7 +23,7 @@
deletable-chips deletable-chips
cache-items cache-items
> >
<template slot="no-data" v-if="tagSearchEntry"> <template slot="no-data" v-if="offerAdd()">
<v-chip color="primary" text-color="white" class="display-1"> <v-chip color="primary" text-color="white" class="display-1">
{{ this.normalizeTag(tagSearchEntry) }}</v-chip {{ this.normalizeTag(tagSearchEntry) }}</v-chip
> >
@@ -105,8 +105,16 @@ export default {
if(this.tagSearchEntry==null || this.tagSearchEntry==""){ if(this.tagSearchEntry==null || this.tagSearchEntry==""){
return false; return false;
} }
let searchTag=this.normalizeTag(tagSearchEntry); let searchTag=this.normalizeTag(this.tagSearchEntry);
if (
!editItem.filter.items.some(
z => z.op == filterItem.op && z.value == filterItem.value
)
console.log("offerAdd",{searchtag:searchTag,val:this.value}); console.log("offerAdd",{searchtag:searchTag,val:this.value});
if(this.value.some)
return true; return true;
}, },