页面查询按钮添加函数
This commit is contained in:
parent
670e9c14db
commit
9c7af7e256
@ -21,7 +21,7 @@
|
|||||||
v-model="filter.name"
|
v-model="filter.name"
|
||||||
label="名称"
|
label="名称"
|
||||||
></q-input>
|
></q-input>
|
||||||
<q-btn flat round color="primary" icon="search" />
|
<q-btn flat round color="primary" icon="search" @click="searchQuery" />
|
||||||
<q-btn color="primary" label="新建" @click="createFormShow = true" />
|
<q-btn color="primary" label="新建" @click="createFormShow = true" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -362,4 +362,7 @@ async function deleteData(row: any) {
|
|||||||
operateDisabled.value = false;
|
operateDisabled.value = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function searchQuery() {
|
||||||
|
tableRef.value.requestServerInteraction();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
v-model="filter.name"
|
v-model="filter.name"
|
||||||
label="名称"
|
label="名称"
|
||||||
></q-input>
|
></q-input>
|
||||||
<q-btn flat round color="primary" icon="search" />
|
<q-btn flat round color="primary" icon="search" @click="searchQuery" />
|
||||||
<q-btn color="primary" label="新建" @click="createFormShow = true" />
|
<q-btn color="primary" label="新建" @click="createFormShow = true" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -267,4 +267,7 @@ function editData(row: any) {
|
|||||||
editInfo.config = row.config || '';
|
editInfo.config = row.config || '';
|
||||||
createFormShow.value = true;
|
createFormShow.value = true;
|
||||||
}
|
}
|
||||||
|
function searchQuery() {
|
||||||
|
tableRef.value.requestServerInteraction();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
v-model="filter.name"
|
v-model="filter.name"
|
||||||
label="名称"
|
label="名称"
|
||||||
></q-input>
|
></q-input>
|
||||||
<q-btn flat round color="primary" icon="search" />
|
<q-btn flat round color="primary" icon="search" @click="searchQuery" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:body-cell-operations="props">
|
<template v-slot:body-cell-operations="props">
|
||||||
@ -183,4 +183,7 @@ async function deleteData(row: any) {
|
|||||||
operateDisabled.value = false;
|
operateDisabled.value = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
function searchQuery() {
|
||||||
|
tableRef.value.requestServerInteraction();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
v-model="filter.name"
|
v-model="filter.name"
|
||||||
label="用户名"
|
label="用户名"
|
||||||
></q-input>
|
></q-input>
|
||||||
<q-btn flat round color="primary" icon="search" />
|
<q-btn flat round color="primary" icon="search" @click="searchQuery" />
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:body-cell-roles="props">
|
<template v-slot:body-cell-roles="props">
|
||||||
<q-td :props="props">
|
<q-td :props="props">
|
||||||
@ -289,4 +289,8 @@ function onReset() {
|
|||||||
userInfo.Rids = [];
|
userInfo.Rids = [];
|
||||||
myForm.value?.resetValidation();
|
myForm.value?.resetValidation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function searchQuery() {
|
||||||
|
tableRef.value.requestServerInteraction();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user