表格检索封装
This commit is contained in:
@@ -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:[]
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user