rax-medical/src/views/home/home.vue

105 lines
3.1 KiB
Vue
Raw Normal View History

2023-12-14 18:29:40 +08:00
<template>
2023-12-15 18:08:45 +08:00
<div class="home-page">
<div class="background-box">
<div class="left-content">
2023-12-15 18:27:23 +08:00
<div class="header-box move_4">
<div class="header-item =">
2023-12-15 18:08:45 +08:00
<span class="main-color f20" style="font-weight: 600;">{{ userInfo.name }}</span>
<span class="text2-color f14">{{ userInfo.permissions }}</span>
</div>
<div class="header-item">
<el-icon class="text1-color" style="font-size: 26px;margin-right: 20px;"><Calendar /></el-icon>
<div>
<p class="text1-color f14">待办任务</p>
<p class="main-color f20">{{ total }}</p>
</div>
</div>
</div>
<div class="echart-box">
2023-12-15 18:27:23 +08:00
<div class="echart-item move_2"><NumberChart/></div>
<div class="echart-item move_4"><TimeChart/></div>
2023-12-15 18:08:45 +08:00
</div>
</div>
<div class="right-content">
2023-12-15 18:27:23 +08:00
<div class="week-calendar">
2023-12-15 18:08:45 +08:00
2023-12-15 18:27:23 +08:00
</div>
<div class="system-logs">
<SystemLogs/>
</div>
2023-12-15 18:08:45 +08:00
</div>
</div>
2023-12-14 18:29:40 +08:00
</div>
</template>
<script lang='ts' setup>
import { onMounted, reactive, ref, toRefs, watch } from 'vue'
2023-12-15 18:08:45 +08:00
import { useLoginStore } from '@/stores/user-info-store'
import NumberChart from "./number-chart.vue";
import TimeChart from "./time-chart.vue";
2023-12-15 18:27:23 +08:00
import SystemLogs from "@/components/system-logs.vue";
2023-12-15 18:08:45 +08:00
const userInfo = useLoginStore().getlogin()
const total = ref(0) // 日历添加的记录提醒统计
2023-12-14 18:29:40 +08:00
</script>
<style lang='scss' scoped>
2023-12-15 18:08:45 +08:00
.home-page {
width: 100%;
height: 100%;
padding: 15px;
.background-box {
width: 100%;
height: 100%;
background: white;
padding: 20px 35px;
2023-12-15 18:27:23 +08:00
display: flex;
justify-content: space-between;
2023-12-15 18:08:45 +08:00
}
.left-content {
width: calc(100% - 550px);
height: 100%;
.header-box {
width: 100%;
height: 140px;
display: flex;
justify-content: space-between;
.header-item {
width: calc(50% - 10px);
height: 100%;
border: 1px solid $border-color;
border-radius: 5px;
padding: 0 90px;
line-height: 1.5;
display: flex;
flex-direction: column;
justify-content: center;
& ~ .header-item {
flex-direction: row;
justify-content: flex-start;
align-items: center;
}
}
}
.echart-box {
width: 100%;
height: calc(100% - 160px);
margin-top: 20px;
.echart-item {
width: 100%;
height: calc(50% - 20px);
margin-top: 20px;
}
}
}
2023-12-14 18:29:40 +08:00
2023-12-15 18:08:45 +08:00
.right-content {
width: 530px;
height: 100%;
}
}</style>