mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2025-08-23 20:44:58 +08:00
This commit is contained in:
parent
adc0b455e0
commit
cb46c02621
|
@ -0,0 +1,25 @@
|
|||
<template>
|
||||
<el-timeline>
|
||||
<el-timeline-item v-for="(item, index) in activities" :key="index" :timestamp="item.time">
|
||||
{{ item.title + '-' + item.ip }}
|
||||
</el-timeline-item>
|
||||
</el-timeline>
|
||||
</template>
|
||||
|
||||
<script lang='ts' setup>
|
||||
import { onMounted, reactive, ref, toRefs, watch } from 'vue'
|
||||
import { dateFormater } from '@/utils/date-util';
|
||||
|
||||
const activities: any = []
|
||||
|
||||
while (activities.length < 10) {
|
||||
activities.push({
|
||||
time: dateFormater('yyyy-MM-dd HH:mm:ss'),
|
||||
title: '登录成功',
|
||||
ip: '127.0.0.1'
|
||||
})
|
||||
}
|
||||
console.log(activities)
|
||||
</script>
|
||||
|
||||
<style lang='scss' scoped></style>
|
|
@ -2,8 +2,8 @@
|
|||
<div class="home-page">
|
||||
<div class="background-box">
|
||||
<div class="left-content">
|
||||
<div class="header-box">
|
||||
<div class="header-item">
|
||||
<div class="header-box move_4">
|
||||
<div class="header-item =">
|
||||
<span class="main-color f20" style="font-weight: 600;">{{ userInfo.name }}</span>
|
||||
<span class="text2-color f14">{{ userInfo.permissions }}</span>
|
||||
</div>
|
||||
|
@ -16,12 +16,17 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="echart-box">
|
||||
<div class="echart-item"><NumberChart/></div>
|
||||
<div class="echart-item"><TimeChart/></div>
|
||||
<div class="echart-item move_2"><NumberChart/></div>
|
||||
<div class="echart-item move_4"><TimeChart/></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right-content">
|
||||
<div class="week-calendar">
|
||||
|
||||
</div>
|
||||
<div class="system-logs">
|
||||
<SystemLogs/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -32,6 +37,7 @@ import { onMounted, reactive, ref, toRefs, watch } from 'vue'
|
|||
import { useLoginStore } from '@/stores/user-info-store'
|
||||
import NumberChart from "./number-chart.vue";
|
||||
import TimeChart from "./time-chart.vue";
|
||||
import SystemLogs from "@/components/system-logs.vue";
|
||||
|
||||
const userInfo = useLoginStore().getlogin()
|
||||
|
||||
|
@ -43,8 +49,6 @@ const total = ref(0) // 日历添加的记录提醒统计
|
|||
.home-page {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 15px;
|
||||
|
||||
.background-box {
|
||||
|
@ -52,6 +56,8 @@ const total = ref(0) // 日历添加的记录提醒统计
|
|||
height: 100%;
|
||||
background: white;
|
||||
padding: 20px 35px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.left-content {
|
||||
|
|
Loading…
Reference in New Issue
Block a user