chore: 默认值
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user