取消勾选,默认分页

This commit is contained in:
BOE\10867418
2023-04-04 18:02:38 +08:00
parent 4abc6cd2fc
commit 77b95429b0

View File

@@ -39,7 +39,7 @@
</a-cascader> </a-cascader>
</div> </div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<div class="btnzx btnzx1" @click="getTableData"> <div class="btnzx btnzx1" @click="searchData">
<div class="search"></div> <div class="search"></div>
<div class="btnzText">搜索</div> <div class="btnzText">搜索</div>
</div> </div>
@@ -135,6 +135,7 @@ export default {
const reset = async () => { const reset = async () => {
state.createName = ""; state.createName = "";
state.testName = ""; state.testName = "";
state.selectedRowKeys = [];
state.orgId = state.resetOrgId; state.orgId = state.resetOrgId;
getTableData(); getTableData();
}; };
@@ -364,6 +365,11 @@ export default {
}, },
}, },
]); ]);
const searchData=async()=>{
state.pageNo=1
state.pageSize=10
getTableData()
}
const getTableData = async () => { const getTableData = async () => {
state.tableLoading = true; state.tableLoading = true;
const params = { const params = {
@@ -448,6 +454,7 @@ export default {
}); });
return { return {
reset, reset,
searchData,
exportDetail, exportDetail,
exportDetils, exportDetils,
...toRefs(state), ...toRefs(state),