123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <script setup lang="ts">
- import ItemWrap from "@/components/item-wrap";
- import LeftTop from "./left-top.vue";
- import LeftCenter from "./left-center.vue";
- import LeftBottom from "./left-bottom.vue";
- import CenterMap from "./center-map.vue";
- import CenterBottom from "./center-bottom.vue";
- import RightTop from "./right-top.vue";
- import RightCenter from "./right-center.vue";
- import RightBottom from "./right-bottom.vue";
- import User from "./user.vue";
- </script>
- <template>
- <div class="index-box">
- <div class="contetn_left">
- <!-- <div class="pagetab">
- <div class="item">实时监测</div>
- <div class="item">统计分析</div>
- </div> -->
- <ItemWrap class="contetn_left-top contetn_lr-item" title="档案在位情况">
- <LeftTop />
- </ItemWrap>
- <ItemWrap class="contetn_left-center contetn_lr-item" title="馆藏统计">
- <LeftCenter />
- </ItemWrap>
- <ItemWrap class="contetn_left-bottom contetn_lr-item" title="设备提醒" style="padding: 0 10px 16px 10px">
- <LeftBottom />
- </ItemWrap>
- </div>
- <div class="contetn_center">
- <!-- <CenterMap class="contetn_center_top" title="设备分布图" />
- <ItemWrap class="contetn_center-bottom" title="安装计划">
- <CenterBottom />
- </ItemWrap> -->
- </div>
- <div class="contetn_bottom">
- <el-button type="primary" @click="this.$router.push('/')" class="tech-button">数据中心</el-button>
- <el-button type="primary" class="tech-button">消息中心</el-button>
- <el-button type="primary" class="tech-button">档案管理</el-button>
- <el-button type="primary" class="tech-button">设备管理</el-button>
- <el-button type="primary" class="tech-button">实时监控</el-button>
- <el-button type="primary" class="tech-button">报表管理</el-button>
- <el-button type="primary" class="tech-button" @click="this.$router.push('/user')">用户管理</el-button>
- <el-button type="primary" class="tech-button">系统设置</el-button>
- </div>
- <div class="contetn_right">
- <ItemWrap class="contetn_left-bottom contetn_lr-item" title="温湿度实时曲线">
- <RightTop />
- </ItemWrap>
- <ItemWrap class="contetn_left-bottom contetn_lr-item" title="实时环境" style="padding: 0 10px 16px 10px">
- <RightCenter />
- </ItemWrap>
- <ItemWrap class="contetn_left-bottom contetn_lr-item" title="系统消息">
- <RightBottom />
- </ItemWrap>
- </div>
- </div>
- </template>
- <style scoped lang="scss">
- .index-box {
- width: 100%;
- display: flex;
- min-height: calc(100% - 64px);
- justify-content: space-between;
- align-items: stretch;
- }
- //左边 右边 结构一样
- .contetn_left,
- .contetn_right {
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- position: relative;
- width: 440px;
- box-sizing: border-box;
- flex-shrink: 0;
- margin: 0 -20px;
- }
- .contetn_center {
- flex: 1;
- margin: 0 54px;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- .contetn_center-bottom {
- height: 315px;
- }
- }
- .contetn_lr-item {
- height: 310px;
- }
- .contetn_bottom {
- width: 100%;
- /* 占据整个宽度 */
- margin-top: auto;
- /* 使用margin-top:auto来将内容推到最底部 */
- position: absolute;
- bottom: 0;
- left: 24%;
- }
- .tech-button {
- transition: all 0.3s;
- background-color: rgba(41, 58, 151, 0.5);
- /* 使用RGBA,降低不透明度 */
- color: #31abe3;
- border: 2px solid transparent;
- /* 添加透明边框 */
- padding: 10px 20px;
- min-width: 56px;
- min-height: 48px;
- font-size: large;
- text-shadow: 0 0 10px rgb(0, 204, 255, 0.5), 0 0 20px rgba(13, 91, 247, 0.5);
- &:hover {
- background-color: rgba(48, 63, 159, 0.8);
- /* 同样使用RGBA */
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
- }
- &::before {
- content: "";
- position: absolute;
- z-index: -1;
- width: calc(100% + 4px);
- /* 边框宽度的两倍 */
- height: calc(100% + 4px);
- left: -2px;
- top: -2px;
- background: linear-gradient(to right, rgba(65, 91, 237, 0.8), rgba(48, 63, 159, 0.8));
- /* 渐变也使用RGBA */
- transform: scale3d(1, 1, 1);
- transition: transform 0.3s ease-out;
- }
- &:hover::before {
- transform: scale3d(1.2, 1.2, 1);
- }
- }
- </style>
|