chore: 默认值

This commit is contained in:
dap
2024-10-06 09:53:00 +08:00
parent da4c612481
commit 60ae7cc0cc
15 changed files with 103 additions and 100 deletions

View File

@@ -37,7 +37,7 @@ const gridOptions: VxeGridProps = {
pagerConfig: {},
proxyConfig: {
ajax: {
query: async ({ page }, formValues) => {
query: async ({ page }, formValues = {}) => {
// 区间选择器处理
if (formValues?.createTime) {
formValues.params = {
@@ -100,7 +100,7 @@ async function handleEdit(record: Recordable<any>) {
async function handleDelete(row: Recordable<any>) {
await noticeRemove(row.noticeId);
await tableApi.reload();
await tableApi.query();
}
function handleMultiDelete() {
@@ -112,7 +112,7 @@ function handleMultiDelete() {
content: `确认删除选中的${ids.length}条记录吗?`,
onOk: async () => {
await noticeRemove(ids);
await tableApi.reload();
await tableApi.query();
},
});
}
@@ -170,6 +170,6 @@ function handleMultiDelete() {
</Popconfirm>
</template>
</BasicTable>
<NoticeModal @reload="tableApi.reload()" />
<NoticeModal @reload="tableApi.query()" />
</Page>
</template>