|
@@ -57,14 +57,6 @@
|
|
<template slot="onlineFlag" slot-scope="text, record">
|
|
<template slot="onlineFlag" slot-scope="text, record">
|
|
<span :class="record.onlineFlag==0 ? 'red' : record.onlineFlag==1 ? 'green' : ''">{{ record.onlineFlag == 0 ? '离线' : record.onlineFlag == 1 ? '在线' : '--' }}</span>
|
|
<span :class="record.onlineFlag==0 ? 'red' : record.onlineFlag==1 ? 'green' : ''">{{ record.onlineFlag == 0 ? '离线' : record.onlineFlag == 1 ? '在线' : '--' }}</span>
|
|
</template>
|
|
</template>
|
|
- <!-- 投放情况 -->
|
|
|
|
- <template slot="situation" slot-scope="text, record">
|
|
|
|
- [{{ record.boxOnePercent ? record.boxOnePercent + '%' : '--' }}] --
|
|
|
|
- [{{ record.boxTwoPercent ? record.boxTwoPercent + '%' : '--' }}] -
|
|
|
|
- [{{ record.boxThreePercent ? record.boxThreePercent + '%' : '--' }}] -
|
|
|
|
- [{{ record.boxFourPercent ? record.boxFourPercent + '%' : '--' }}] -
|
|
|
|
- [{{ record.boxFivePercent ? record.boxFivePercent + '%' : '--' }}]
|
|
|
|
- </template>
|
|
|
|
<!-- 工作状态 -->
|
|
<!-- 工作状态 -->
|
|
<template slot="state" slot-scope="text, record">
|
|
<template slot="state" slot-scope="text, record">
|
|
<span :class="record.state==0 ? 'red' : record.state==1 ? 'green' : ''">{{ record.state == 0 ? '已禁用' : record.state == 1 ? '已启用' : '--' }}</span>
|
|
<span :class="record.state==0 ? 'red' : record.state==1 ? 'green' : ''">{{ record.state == 0 ? '已禁用' : record.state == 1 ? '已启用' : '--' }}</span>
|
|
@@ -102,7 +94,6 @@ export default {
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
{ title: '设备编号', dataIndex: 'deviceNo', width: 200, align: 'center' },
|
|
{ title: '设备编号', dataIndex: 'deviceNo', width: 200, align: 'center' },
|
|
{ title: '设备状态', scopedSlots: { customRender: 'onlineFlag' }, width: 200, align: 'center' },
|
|
{ title: '设备状态', scopedSlots: { customRender: 'onlineFlag' }, width: 200, align: 'center' },
|
|
- { title: '投放情况', scopedSlots: { customRender: 'situation' }, width: 200, align: 'center' },
|
|
|
|
{ title: '工作状态', scopedSlots: { customRender: 'state' }, width: 200, align: 'center' },
|
|
{ title: '工作状态', scopedSlots: { customRender: 'state' }, width: 200, align: 'center' },
|
|
{ title: '箱体类型', dataIndex: 'deviceTypeName', width: 200, align: 'center' }
|
|
{ title: '箱体类型', dataIndex: 'deviceTypeName', width: 200, align: 'center' }
|
|
],
|
|
],
|