Browse Source

vue3.0初始化

master
ahbmz 2 years ago
parent
commit
6e185752f0
  1. 11
      src/views/system/user/index.vue

11
src/views/system/user/index.vue

@ -11,7 +11,8 @@
:datasource="datasource"
:show-overflow-tooltip="true"
v-model:selections="selections"
highlight-current-row
:highlight-current-row="true"
:export-config="{ fileName: '用户数据' }"
cache-key="systemUserTable"
>
<template #toolbar>
@ -184,7 +185,9 @@
label: '操作',
width: 200,
align: 'center',
slot: 'action'
slot: 'action',
hideInPrint: true,
hideInExport: true
}
]);
@ -201,8 +204,8 @@
const showImport = ref(false);
/** 表格数据源 */
const datasource: DatasourceFunction = ({ page, limit, where, orders }) => {
return pageUsers({ ...where, ...orders, page, limit });
const datasource: DatasourceFunction = ({ pages, where, orders }) => {
return pageUsers({ ...where, ...orders, ...pages });
};
/** 搜索 */

Loading…
Cancel
Save