From bbc3b7e9f89369a26eb12deeb10cbd113e6dc02a Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期一, 30 六月 2025 17:29:08 +0800 Subject: [PATCH] fix:修改模板那 --- src/views/screen/index.vue | 230 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 225 insertions(+), 5 deletions(-) diff --git a/src/views/screen/index.vue b/src/views/screen/index.vue index 35ae653..7b55682 100644 --- a/src/views/screen/index.vue +++ b/src/views/screen/index.vue @@ -1,14 +1,88 @@ <template> <div class="home"> + <!-- 虚化盒子 --> + <div class="blurBox"></div> <!-- 顶部菜单占位符 --> <div class="home-t"></div> - <div class="home-content">11</div> + <div class="home-content"> + <div class="hc-info"> + <div class="shebei item"> + <div class="item-t">辖区内设备数统计</div> + <div class="item-c"> + <div class="shebei-head"> + <div>辖区位置</div> + <div>甲烷传感器</div> + <div>硫化氢传感器</div> + <div>中端控制器</div> + <div>风机设备</div> + <div>总设备数</div> + </div> + <div class="shebei-conetnt"> + <div class="list"> + <div class="listV"> + <div>龙城大道</div> + <div>5台</div> + <div>5台</div> + <div>5台</div> + <div>5台</div> + <div>5台</div> + </div> + <div class="listV"> + <div>龙城大道</div> + <div>5台</div> + <div>5台</div> + <div>5台</div> + <div>5台</div> + <div>5台</div> + </div> + </div> + </div> + </div> + </div> + <div class="gongdan item"> + <div class="item-t">未处理工单统计</div> + <div class="item-c"> + <div class="gongdan-head"> + <div class="no">工单号</div> + <div class="type">工单类型</div> + <div class="time">上报时间</div> + <div class="user">上报人</div> + <div class="address">所属地址</div> + <div class="status">工单状态</div> + </div> + <div class="gongdan-content"> + <div class="list"> + <div class="listV"> + <div class="no">001</div> + <div class="type">设备维修</div> + <div class="time">2025/06/23</div> + <div class="user">监测设备终端</div> + <div class="address"> + <el-tooltip + class="box-item" + effect="dark" + content="重庆市丰都县龙城大道288号" + placement="top" + > + 重庆市丰都县龙城大道288号 + </el-tooltip> + </div> + <div class="status"><el-button type="danger" size="small">未处理</el-button></div> + </div> + </div> + </div> + </div> + </div> + </div> + </div> </div> </template> <script setup> import { ref } from 'vue' + + </script> @@ -16,18 +90,164 @@ .home{ position: absolute; left: 0; - top: 0; + top: 7%; width: 100%; - height: 100%; + height: 93%; background-image: url('@/assets/images/map-bg.png'); background-size: 100% 100%; background-repeat: no-repeat; z-index: 10; + .blurBox{ //模糊背景盒子覆盖图片 + position: absolute; + top: -1rem; + left: 0; + width: 100%; + height: 3%; + background-color: #000; + filter: blur(10px); + } &-t{ - height: 10%; + height: 1%; } &-content{ - height: 90%; + height: 99%; + padding: 1rem 1.5rem 0; + position: relative; + .hc-info{ + position: absolute; + right: 0; + top: 1rem; + width: 30rem; + height: calc(100% - 1rem); + .item{ + width: 100%; + height: 48%; + background-image: url("@/assets/images/screen/ct-default.png"); + background-repeat: no-repeat; + background-size: 100% 100%; + &-t{ + color: #fff; + height: 3rem; + line-height: 3rem; + padding-left: 2.5rem; + } + &-c{ + color: #fff; + height: calc(100% - 3rem); + padding: 1rem 0.5rem; + } + } + .shebei{ + .shebei-head{ + height: 2rem; + line-height: 2rem; + display: flex; + justify-content: space-between; + font-size: 0.7rem; + >div{ + width: 16%; + flex-shrink: 0; + text-align: center; + } + } + .shebei-conetnt{ + height: calc(100% - 2rem); + .list{ + height: 100%; + overflow-y: scroll; + &::-webkit-scrollbar{ + display: none; + } + .listV{ + display: flex; + justify-content: space-between; + font-size: 0.7rem; + padding: 0.5rem 0; + background-color: #081C3F; + >div{ + width: 16%; + flex-shrink: 0; + text-align: center; + } + } + } + } + } + .gongdan{ + margin-top: 1rem; + .gongdan-head{ + height: 2rem; + line-height: 2rem; + display: flex; + justify-content: space-between; + font-size: 0.7rem; + >div{ + flex-shrink: 0; + text-align: center; + } + .no{ + width: 8%; + } + .type{ + width: 12%; + } + .time{ + width: 15%; + } + .user{ + width: 20%; + } + .address{ + width: 30%; + } + .status{ + width: 15%; + } + } + .gongdan-content{ + .list{ + height: 100%; + overflow-y: scroll; + &::-webkit-scrollbar{ + display: none; + } + .listV{ + display: flex; + justify-content: space-between; + align-items: center; + font-size: 0.7rem; + padding: 0.5rem 0; + background-color: #081C3F; + >div{ + flex-shrink: 0; + text-align: center; + } + .no{ + width: 8%; + } + .type{ + width: 12%; + } + .time{ + width: 15%; + } + .user{ + width: 20%; + } + .address{ + width: 30%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + .status{ + width: 15%; + } + } + } + } + } + } } } </style> \ No newline at end of file -- Gitblit v1.9.3