统计报表页面预留导出按钮

This commit is contained in:
2026-09-30 17:14:16 +08:00
parent 3a08d062ad
commit 8cc5f07883
2 changed files with 6 additions and 3 deletions
+6 -2
View File
@@ -51,6 +51,11 @@ const jumpTo = (key: string, qid: number = 0) => {
}
}
// 导出数据
const exportData = () => {
window.$message?.info('待确定')
}
// 获取数据
const getData = async () => {
loading.value = true;
@@ -60,7 +65,6 @@ const getData = async () => {
});
if(!error){
homeData.value = data;
console.log(data)
}
loading.value = false;
}
@@ -85,7 +89,7 @@ onMounted(() => {
:ghost="range === p.value ? false : true"
:type="range === p.value ? 'primary' : 'default'"
>{{ p.label }}</NButton>
<NButton size="small" class="text-xs ml-1">
<NButton size="small" class="text-xs ml-1" @click="exportData">
<Icon icon="material-symbols:download" class="size-14px mr-1" />导出
</NButton>
</div>
-1
View File
@@ -185,7 +185,6 @@ const filterRoutes = (routes:any) => {
const getAllRoutes = () => {
// 过滤路由
const result = filterRoutes(router.getRoutes());
console.log(router.getRoutes());
// 过滤一级路由
const filtered = result.filter((route:any) => {
// 计算 path 中 '/' 的个数