修改检索封装组件输入框模糊检索问题
This commit is contained in:
parent
be2c2a6b12
commit
6563381593
@ -27,7 +27,7 @@ export default {
|
|||||||
activation_text:{
|
activation_text:{
|
||||||
handler(val){
|
handler(val){
|
||||||
if(val){
|
if(val){
|
||||||
this.localText = val.value;
|
this.localText = val.value.replace(/%/g, "");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deep:true
|
deep:true
|
||||||
@ -49,7 +49,7 @@ export default {
|
|||||||
emitActivationText() {
|
emitActivationText() {
|
||||||
this.$emit('update:activation_text', {
|
this.$emit('update:activation_text', {
|
||||||
operator: this.activation_text.operator,
|
operator: this.activation_text.operator,
|
||||||
value: this.localText? this.localText:""
|
value: this.localText? '%'+this.localText+'%':""
|
||||||
});
|
});
|
||||||
this.$emit('fetchData');
|
this.$emit('fetchData');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user