1
0
forked from dyf/dyf-vue-ui

控制中心,添加设备绑定状态字段

This commit is contained in:
fengerli
2025-10-07 15:40:33 +08:00
parent 4a4902ab72
commit 492d43c709
3 changed files with 14 additions and 1 deletions

View File

@ -124,6 +124,12 @@
</div>
</template>
</el-table-column>
<el-table-column label="绑定状态" align="center" prop="bindingStatus">
<template #default="scope">
<div class="normal green" v-if="scope.row.bindingStatus == 1">已绑定</div>
<div class="normal red" v-if="scope.row.bindingStatus == 0">未绑定</div>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="180" class-name="small-padding fixed-width">
<template #default="scope">

View File

@ -106,6 +106,13 @@
{{ scope.row.bindingStatus === 1 ? '已绑定' : '未绑定' }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="onlineStatus" label="设备状态">
<template #default="scope">
<el-tag :type="scope.row.onlineStatus === 1 ? 'success' : 'info'">
{{ scope.row.onlineStatus === 1 ? '在线' : '离线' }}
</el-tag>
</template>
</el-table-column>
<el-table-column prop="deviceStatus" label="设备状态" v-hasPermi="['equipment:devices:allocate']">
<template #default="scope">

View File

@ -113,7 +113,7 @@ const initChart = () => {
name: '使用频次',
type: 'bar',
data: [], // 初始空数据
barWidth: '10px',
barWidth: '9px',
stack: 'total',
label: {
show: true,