提交 f07ee38f authored 作者: 王鹏飞's avatar 王鹏飞

chore: 更新首页显示内容

上级 2d05d23e
......@@ -20,10 +20,15 @@ use([
TitleComponent,
TooltipComponent,
LegendComponent,
GridComponent
GridComponent,
])
const props = defineProps<{ title?: string; options?: any; loading?: boolean }>()
const props = withDefaults(
defineProps<{ title?: string; options?: any; loading?: boolean; hasFullscreen?: boolean }>(),
{
hasFullscreen: true,
}
)
const el = ref<HTMLElement | null>(null)
const { isFullscreen, toggle } = useFullscreen(el)
......@@ -42,7 +47,7 @@ const color = ['#af1c40', '#c17933', '#8f0034', '#d45548', '#ab3259', '#dec34c',
</slot>
<div class="tools">
<slot name="tools"></slot>
<el-tooltip effect="dark" :content="isFullscreen ? '退出全屏' : '全屏'">
<el-tooltip effect="dark" :content="isFullscreen ? '退出全屏' : '全屏'" v-if="hasFullscreen">
<el-icon class="icon-fullscreen" @click="toggle"><FullScreen /></el-icon>
</el-tooltip>
</div>
......
......@@ -14,3 +14,13 @@ export function getMembersList() {
export function getEventList(params: { member_id: string; page?: number; 'per-page'?: number }) {
return httpRequest.get('/api/lab/v1/experiment/index/events', { params })
}
// 获取用户来源
export function getMemberConnections(params: { sso_id: string }) {
return httpRequest.get('/api/lab/v1/experiment/analyse/connections', { params })
}
// 获取热门标签
export function getHotTags(params: { sso_id: string; number?: number }) {
return httpRequest.get('/api/lab/v1/experiment/analyse/hot-tags', { params })
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论