修改检索封装组件输入框模糊检索问题

This commit is contained in:
龙运模 2024-07-12 19:44:45 +08:00
parent be2c2a6b12
commit 6563381593

View File

@ -27,7 +27,7 @@ export default {
activation_text:{
handler(val){
if(val){
this.localText = val.value;
this.localText = val.value.replace(/%/g, "");
}
},
deep:true
@ -49,7 +49,7 @@ export default {
emitActivationText() {
this.$emit('update:activation_text', {
operator: this.activation_text.operator,
value: this.localText? this.localText:""
value: this.localText? '%'+this.localText+'%':""
});
this.$emit('fetchData');
}