😎1、增加职位页面vxetable导出全量示例 2、统一默认vxetable页面支持导出

This commit is contained in:
zuohuaijun 2025-04-25 18:10:40 +08:00
parent 39ef29673c
commit 3c23498e61
27 changed files with 38 additions and 33 deletions

View File

@ -2,7 +2,7 @@
"name": "admin.net.pro",
"type": "module",
"version": "2.4.33",
"lastBuildTime": "2025.04.24",
"lastBuildTime": "2025.04.25",
"description": "Admin.NET 站在巨人肩膀上的 .NET 通用权限开发框架",
"author": "zuohuaijun",
"license": "MIT",
@ -30,7 +30,7 @@
"@wangeditor/editor-for-vue": "^5.1.12",
"animate.css": "^4.1.1",
"async-validator": "^4.2.5",
"axios": "^1.8.4",
"axios": "^1.9.0",
"countup.js": "^2.8.1",
"cropperjs": "^1.6.2",
"crypto-js": "^4.2.0",
@ -77,8 +77,8 @@
"vue-signature-pad": "^3.0.2",
"vue3-flag-icons": "^0.0.3",
"vue3-tree-org": "^4.2.2",
"vxe-pc-ui": "^4.5.29",
"vxe-table": "^4.13.9",
"vxe-pc-ui": "^4.5.30",
"vxe-table": "^4.13.11",
"vxe-table-plugin-element": "^4.0.4",
"vxe-table-plugin-export-xlsx": "^4.0.7",
"xe-utils": "^3.7.4",

View File

@ -138,7 +138,7 @@ const options = useVxeTable<SysNoticeUser>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -138,7 +138,7 @@ const options = useVxeTable<SysCodeGen>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -129,7 +129,7 @@ const options = useVxeTable<SysConfig>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -213,7 +213,7 @@ const optionsDictType = useVxeTable<SysDictType>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParamDictType.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
//
rowConfig: { isCurrent: true, isHover: true },
//
@ -320,7 +320,7 @@ const optionsDictData = useVxeTable<SysDictData>(
// //
// pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
//
loading: false,
//

View File

@ -235,7 +235,7 @@ const options = useVxeTable<SysFile>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
//
rowConfig: { height: 80 },
}

View File

@ -330,7 +330,7 @@ const optionsJob = useVxeTable<JobDetailOutput>(
//
pagerConfig: { pageSize: state.jobPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);
@ -563,7 +563,7 @@ const optionsRecord = useVxeTable<SysJobTriggerRecord>(
//
pagerConfig: { pageSize: state.jobPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -147,7 +147,7 @@ const options = useVxeTable<SysLdap>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -203,7 +203,7 @@ const options = useVxeTable<SysLogDiff>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -218,7 +218,7 @@ const options = useVxeTable<SysLogEx>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -237,7 +237,7 @@ const options = useVxeTable<SysLogMsg>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -276,7 +276,7 @@ const options = useVxeTable<SysLogOp>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -226,7 +226,7 @@ const options = useVxeTable<SysLogVis>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -129,7 +129,7 @@ const options = useVxeTable<SysMenu>(
//
pagerConfig: { enabled: false },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
//
treeConfig: { expandAll: false, reserve: true },
//

View File

@ -133,7 +133,7 @@ const options = useVxeTable<SysNotice>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -130,7 +130,7 @@ const options = useVxeTable<SysOAuthUser>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -124,7 +124,7 @@ const options = useVxeTable<SysOnlineUser>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -115,7 +115,7 @@ const options = useVxeTable<OpenAccessOutput>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -142,7 +142,7 @@ const options = useVxeTable<SysOrg>(
//
pagerConfig: { enabled: false },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
//
treeConfig: { expandAll: false },
}

View File

@ -109,7 +109,7 @@ const options = useVxeTable<SysPlugin>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -128,13 +128,13 @@ const options = useVxeTable<PagePosOutput>(
// vxeGrid()vxe-table
{
//
proxyConfig: { autoLoad: true, ajax: { query: ({ page, sort }) => handleQueryApi(page, sort) } },
proxyConfig: { autoLoad: true, ajax: { query: ({ page, sort }) => handleQueryApi(page, sort), queryAll: () => handleQueryAllApi() } },
//
sortConfig: { defaultSort: Local.get(localPageParamKey)?.defaultSort || state.localPageParam.defaultSort },
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);
@ -149,6 +149,11 @@ const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, s
return getAPI(SysPosApi).apiSysPosPagePost(params);
};
// api
const handleQueryAllApi = async () => {
return getAPI(SysPosApi).apiSysPosListGet();
};
//
const handleQuery = async (reset = false) => {
options.loading = true;

View File

@ -114,7 +114,7 @@ const options = useVxeTable<SysPrint>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -153,7 +153,7 @@ const options = useVxeTable<SysRegion>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -151,7 +151,7 @@ const options = useVxeTable<PageRoleOutput>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -167,7 +167,7 @@ const options = useVxeTable<TenantOutput>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);

View File

@ -76,7 +76,7 @@ const options = useVxeTable<SysUpgrade>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
//
rowConfig: { useKey: true, height: 120 },
columnConfig: { useKey: true },

View File

@ -185,7 +185,7 @@ const options = useVxeTable<UserOutput>(
//
pagerConfig: { pageSize: Local.get(localPageParamKey)?.pageSize || state.localPageParam.pageSize },
//
toolbarConfig: { export: false },
toolbarConfig: { export: true },
}
);