设备管理和用户管理相关功能页面

This commit is contained in:
zhouyanli
2026-10-30 14:16:09 +08:00
parent febbb83dad
commit 87089fd310
30 changed files with 5429 additions and 233 deletions

View File

@@ -0,0 +1,42 @@
<template>
<div v-if="historyDevices.length" class="record-list">
<div v-for="item in historyDevices" :key="item.id" class="record-row">
<div class="record-main">
<div class="record-title">{{ item.deviceText }}</div>
<div class="record-sub">{{ item.roomNo }}</div>
</div>
<div class="record-side">
<span class="unbound-tag">已解绑</span>
<div class="record-amount">解绑时间:{{ item.unboundAt }}</div>
</div>
</div>
</div>
<el-empty v-else description="暂无历史设备" />
</template>
<script setup name="HistoryTab" lang="ts">
/** 历史设备行 */
interface HistoryDeviceItem {
id: string | number;
roomNo: string;
deviceText: string;
unboundAt: string;
}
/** TODO: 历史设备接口待接入,先用演示数据占位 */
const historyDevices = ref<HistoryDeviceItem[]>([
{
id: 1,
roomNo: '101室',
deviceText: '蓝牙水表 · NO20260101',
unboundAt: '2026年9月18日 09:03:12'
}
]);
</script>
<style lang="scss" scoped>
@use '@/assets/styles/components/detail-panels' as panels;
@include panels.record-list;
@include panels.unbound-tag;
</style>