控制中心,添加设备绑定状态字段
This commit is contained in:
@ -124,6 +124,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<el-table-column label="操作" fixed="right" width="180" class-name="small-padding fixed-width">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
|||||||
@ -106,6 +106,13 @@
|
|||||||
{{ scope.row.bindingStatus === 1 ? '已绑定' : '未绑定' }}
|
{{ scope.row.bindingStatus === 1 ? '已绑定' : '未绑定' }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</template>
|
</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>
|
||||||
<el-table-column prop="deviceStatus" label="设备状态" v-hasPermi="['equipment:devices:allocate']">
|
<el-table-column prop="deviceStatus" label="设备状态" v-hasPermi="['equipment:devices:allocate']">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
|||||||
@ -113,7 +113,7 @@ const initChart = () => {
|
|||||||
name: '使用频次',
|
name: '使用频次',
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
data: [], // 初始空数据
|
data: [], // 初始空数据
|
||||||
barWidth: '10px',
|
barWidth: '9px',
|
||||||
stack: 'total',
|
stack: 'total',
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user