表格检索封装

This commit is contained in:
龙运模
2024-07-12 17:46:32 +08:00
parent d6ad74cbb5
commit cfe3bba57f
8 changed files with 254 additions and 67 deletions
+4 -4
View File
@@ -18,7 +18,7 @@
export default {
name: "index",
props:{
select_params: {
activation_select: {
type: Object,
default: () => ({ operator: "in", value: [] })
},
@@ -26,7 +26,7 @@ export default {
placeholder:{type:String, default:"请选择"},
},
watch:{
select_params:{
activation_select:{
handler(val){
if(!val || val.value.length == 0){
this.localData = [];
@@ -52,8 +52,8 @@ export default {
this.emitActivationSelect();
},
emitActivationSelect() {
this.$emit('update:select_params', {
operator: this.select_params.operator,
this.$emit('update:activation_select', {
operator: this.activation_select.operator,
value: this.localData? this.localData:[]
});
}