school_website/ruoyi-ui/src/views/index.vue

57 lines
1.1 KiB
Vue
Raw Normal View History

2024-07-22 11:21:29 +08:00
<template>
2024-07-29 16:42:21 +08:00
<div class="dashboard-editor-container">
<el-row :gutter="10">
<el-col :span="24">
<user-info></user-info>
2024-07-22 11:21:29 +08:00
</el-col>
2024-07-29 19:21:36 +08:00
<el-col :span="24">
<cms-info></cms-info>
</el-col>
2024-07-29 16:42:21 +08:00
<el-col :span="24">
<shortcut></shortcut>
2024-07-22 11:21:29 +08:00
</el-col>
2024-07-29 19:21:36 +08:00
<el-col :span="24">
<server-info></server-info>
</el-col>
2024-07-22 11:21:29 +08:00
</el-row>
</div>
</template>
<script>
2024-07-29 16:42:21 +08:00
import SysUserInfo from '@/views/dashboard/userInfo'
import SysShortcut from '@/views/dashboard/shortcut'
2024-07-29 19:21:36 +08:00
import CmsInfo from '@/views/dashboard/cmsInfo'
import ServerInfo from '@/views/dashboard/serverInfo'
2024-07-29 16:42:21 +08:00
2024-07-22 11:21:29 +08:00
export default {
2024-07-29 16:42:21 +08:00
name: 'Index',
components: {
'user-info': SysUserInfo,
'shortcut': SysShortcut,
2024-07-29 19:21:36 +08:00
'cms-info': CmsInfo,
'server-info': ServerInfo
2024-07-22 11:21:29 +08:00
},
2024-07-29 16:42:21 +08:00
}
2024-07-22 11:21:29 +08:00
</script>
2024-07-29 16:42:21 +08:00
<style lang="scss" scoped>
.dashboard-editor-container {
padding: 32px;
background-color: rgb(240, 242, 245);
position: relative;
2024-07-22 11:21:29 +08:00
2024-07-29 16:42:21 +08:00
.chart-wrapper {
background: #fff;
padding: 16px 16px 0;
margin-bottom: 32px;
2024-07-22 11:21:29 +08:00
}
2024-07-29 16:42:21 +08:00
}
2024-07-22 11:21:29 +08:00
2024-07-29 16:42:21 +08:00
@media (max-width:1024px) {
.chart-wrapper {
padding: 8px;
2024-07-22 11:21:29 +08:00
}
}
</style>