2024-11-12 15:44:05 +08:00
|
|
|
<template>
|
|
|
|
<div class="container">
|
|
|
|
<div class="left-side">
|
2024-12-26 11:08:15 +08:00
|
|
|
<div class="panel">
|
|
|
|
<Banner />
|
|
|
|
<DataPanel />
|
|
|
|
</div>
|
|
|
|
<a-grid :cols="24" :col-gap="16" :row-gap="16" style="margin-top: 16px">
|
|
|
|
<a-grid-item
|
|
|
|
:span="{ xs: 24, sm: 24, md: 24, lg: 12, xl: 12, xxl: 12 }"
|
|
|
|
>
|
|
|
|
</a-grid-item>
|
|
|
|
<a-grid-item
|
|
|
|
:span="{ xs: 24, sm: 24, md: 24, lg: 12, xl: 12, xxl: 12 }"
|
|
|
|
>
|
|
|
|
</a-grid-item>
|
|
|
|
</a-grid>
|
|
|
|
</div>
|
2025-03-02 17:53:03 +08:00
|
|
|
<!-- <div class="right-side">-->
|
|
|
|
<!-- <a-grid :cols="24" :row-gap="16">-->
|
|
|
|
<!-- <a-grid-item :span="24">-->
|
|
|
|
<!-- <div class="panel moduler-wrap">-->
|
|
|
|
<!--<!– <QuickOperation />–>-->
|
|
|
|
<!--<!– <RecentlyVisited />–>-->
|
|
|
|
<!-- </div>-->
|
|
|
|
<!-- </a-grid-item>-->
|
|
|
|
<!-- <a-grid-item class="panel" :span="24">-->
|
|
|
|
<!-- <Announcement />-->
|
|
|
|
<!-- </a-grid-item>-->
|
|
|
|
<!-- <a-grid-item class="panel" :span="24">-->
|
|
|
|
<!-- <Announcement />-->
|
|
|
|
<!-- </a-grid-item>-->
|
|
|
|
<!-- <a-grid-item class="panel" :span="24"> </a-grid-item>-->
|
|
|
|
<!-- </a-grid>-->
|
|
|
|
<!-- </div>-->
|
2024-11-12 15:44:05 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2024-12-26 11:08:15 +08:00
|
|
|
import Banner from './components/banner.vue';
|
|
|
|
import DataPanel from './components/data-panel.vue';
|
|
|
|
import RecentlyVisited from './components/recently-visited.vue';
|
|
|
|
import QuickOperation from './components/quick-operation.vue';
|
|
|
|
import Announcement from './components/announcement.vue';
|
2024-11-12 15:44:05 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2024-12-26 11:08:15 +08:00
|
|
|
export default {
|
|
|
|
name: 'Dashboard', // If you want the include property of keep-alive to take effect, you must name the component
|
|
|
|
};
|
2024-11-12 15:44:05 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
2024-12-26 11:08:15 +08:00
|
|
|
.container {
|
2025-03-02 17:53:03 +08:00
|
|
|
//background-color: var(--color-fill-2);
|
2024-12-26 11:08:15 +08:00
|
|
|
padding: 16px 20px;
|
|
|
|
padding-bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
}
|
2024-11-12 15:44:05 +08:00
|
|
|
|
2024-12-26 11:08:15 +08:00
|
|
|
.left-side {
|
|
|
|
flex: 1;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
2024-11-12 15:44:05 +08:00
|
|
|
|
2024-12-26 11:08:15 +08:00
|
|
|
.right-side {
|
|
|
|
width: 280px;
|
|
|
|
margin-left: 16px;
|
|
|
|
}
|
2024-11-12 15:44:05 +08:00
|
|
|
|
2024-12-26 11:08:15 +08:00
|
|
|
.panel {
|
2025-03-02 17:53:03 +08:00
|
|
|
//background-color: var(--color-bg-2);
|
2024-12-26 11:08:15 +08:00
|
|
|
border-radius: 4px;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
:deep(.panel-border) {
|
|
|
|
margin-bottom: 0;
|
|
|
|
border-bottom: 1px solid rgb(var(--gray-2));
|
2024-11-12 15:44:05 +08:00
|
|
|
}
|
2024-12-26 11:08:15 +08:00
|
|
|
.moduler-wrap {
|
|
|
|
border-radius: 4px;
|
2025-03-02 17:53:03 +08:00
|
|
|
//background-color: var(--color-bg-2);
|
2024-12-26 11:08:15 +08:00
|
|
|
:deep(.text) {
|
|
|
|
font-size: 12px;
|
|
|
|
text-align: center;
|
|
|
|
color: rgb(var(--gray-8));
|
|
|
|
}
|
2024-11-12 15:44:05 +08:00
|
|
|
|
2024-12-26 11:08:15 +08:00
|
|
|
:deep(.wrapper) {
|
|
|
|
margin-bottom: 8px;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
2024-11-12 15:44:05 +08:00
|
|
|
|
2024-12-26 11:08:15 +08:00
|
|
|
&:last-child {
|
|
|
|
.text {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2024-11-12 15:44:05 +08:00
|
|
|
}
|
2024-12-26 11:08:15 +08:00
|
|
|
&:hover {
|
|
|
|
.icon {
|
|
|
|
color: rgb(var(--arcoblue-6));
|
|
|
|
background-color: #e8f3ff;
|
|
|
|
}
|
|
|
|
.text {
|
|
|
|
color: rgb(var(--arcoblue-6));
|
|
|
|
}
|
2024-11-12 15:44:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-12-26 11:08:15 +08:00
|
|
|
:deep(.icon) {
|
|
|
|
display: inline-block;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
color: rgb(var(--dark-gray-1));
|
|
|
|
line-height: 32px;
|
|
|
|
font-size: 16px;
|
|
|
|
text-align: center;
|
|
|
|
background-color: rgb(var(--gray-1));
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
2024-11-12 15:44:05 +08:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
2024-12-26 11:08:15 +08:00
|
|
|
// responsive
|
|
|
|
.mobile {
|
|
|
|
.container {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.right-side {
|
|
|
|
// display: none;
|
|
|
|
width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 16px;
|
|
|
|
}
|
2024-11-12 15:44:05 +08:00
|
|
|
}
|
|
|
|
</style>
|