10/10
1. 设备管理界面完成 2. 用户管理界面完成 3. 会话列表完成
This commit is contained in:
@@ -13,7 +13,10 @@ function backList() {
|
||||
|
||||
function editDevice() {
|
||||
router.push({
|
||||
path: '/device/deviceEdit'
|
||||
path: '/device/deviceEdit',
|
||||
query: {
|
||||
id: form.value.deviceId,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -76,7 +79,7 @@ init()
|
||||
|
||||
<template>
|
||||
<div class="Main">
|
||||
<nav class="flex justify-between">
|
||||
<nav class="flex justify-between" style="padding-top: 22px;">
|
||||
<Pagecrumb></Pagecrumb>
|
||||
<div>
|
||||
<el-button plain type="info" @click="backList">返回设备列表</el-button>
|
||||
@@ -98,7 +101,7 @@ init()
|
||||
<div class="info-list">
|
||||
<div class="info-list-item">
|
||||
<div class="title">设备ID</div>
|
||||
<div class="value">{{ form.deviceid }}</div>
|
||||
<div class="value">{{ form.deviceId }}</div>
|
||||
</div>
|
||||
<div class="info-list-item">
|
||||
<div class="title">MAC地址</div>
|
||||
@@ -117,7 +120,7 @@ init()
|
||||
</div>
|
||||
<div class="timeBox">
|
||||
<div class="title">最后上报时间</div>
|
||||
<div class="time">{{ form.lastReportTime }}</div>
|
||||
<div class="time">{{ form.updateTime }}</div>
|
||||
<div class="tip">
|
||||
<i class="circle"></i>
|
||||
<span>每30s自动刷新</span>
|
||||
@@ -161,7 +164,7 @@ init()
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="readTimeBox">
|
||||
<div v-if="form.purifier" class="readTimeBox">
|
||||
<cardNav line-color="#14b8a6" subTitle="设备蓝牙上报 · 只读 · 每 30 秒自动刷新"
|
||||
title="设备实时运行状态"></cardNav>
|
||||
<div class="flexBox">
|
||||
@@ -228,17 +231,17 @@ init()
|
||||
<div class="ageBox">
|
||||
<div class="title">滤芯寿命</div>
|
||||
<div class="processInfo">
|
||||
<span class="num">76</span>
|
||||
<span class="num">{{ form.filterLife }}</span>
|
||||
<span class="unit">%</span>
|
||||
</div>
|
||||
<el-progress :percentage="30" :show-text="false"></el-progress>
|
||||
<el-progress :percentage="form.filterLife" :show-text="false"></el-progress>
|
||||
<div class="tip">
|
||||
<span>预计剩余可用128天</span>
|
||||
<span>预计剩余可用{{ form.filterRemainDays }}天</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<div class="ageBox BatteryBox">
|
||||
<div class="title">滤芯寿命</div>
|
||||
<div class="title">电池电量</div>
|
||||
<div class="processInfo">
|
||||
<span class="num">76</span>
|
||||
<span class="unit">%</span>
|
||||
@@ -274,6 +277,8 @@ init()
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
overflow-x: hidden;
|
||||
|
||||
|
||||
.infoBox {
|
||||
padding: 24px;
|
||||
@@ -461,7 +466,7 @@ init()
|
||||
margin-top: 44px;
|
||||
gap: 20px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(381px, 1fr));
|
||||
grid-template-columns: repeat(2, minmax(360px, 1fr));
|
||||
@media (max-width: 900px) {
|
||||
grid-template-columns: repeat(1, minmax(381px, 1fr));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user