统计报表页面预留导出按钮
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 中 '/' 的个数
|
||||
|
||||
Reference in New Issue
Block a user