|
@@ -32,12 +32,6 @@
|
|
:columns="columns"
|
|
:columns="columns"
|
|
:data="loadData"
|
|
:data="loadData"
|
|
bordered>
|
|
bordered>
|
|
- <!-- 箱体投放比例 -->
|
|
|
|
- <template slot="boxOnePercent" slot-scope="text, record">{{ record.boxOnePercent ? record.boxOnePercent + '%' : '--' }}</template>
|
|
|
|
- <template slot="boxTwoPercent" slot-scope="text, record">{{ record.boxTwoPercent ? record.boxTwoPercent + '%' : '--' }}</template>
|
|
|
|
- <template slot="boxThreePercent" slot-scope="text, record">{{ record.boxThreePercent ? record.boxThreePercent + '%' : '--' }}</template>
|
|
|
|
- <template slot="boxFourPercent" slot-scope="text, record">{{ record.boxFourPercent ? record.boxFourPercent + '%' : '--' }}</template>
|
|
|
|
- <template slot="boxFivePercent" slot-scope="text, record">{{ record.boxFivePercent ? record.boxFivePercent + '%' : '--' }}</template>
|
|
|
|
<!-- 设备状态 -->
|
|
<!-- 设备状态 -->
|
|
<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>
|
|
@@ -88,15 +82,6 @@ export default {
|
|
{ title: '设备编号', dataIndex: 'srcDeviceCode', width: 200, align: 'center' },
|
|
{ title: '设备编号', dataIndex: 'srcDeviceCode', width: 200, align: 'center' },
|
|
{ title: '箱体类型', dataIndex: 'deviceTypeName', width: 200, align: 'center' },
|
|
{ title: '箱体类型', dataIndex: 'deviceTypeName', width: 200, align: 'center' },
|
|
{ title: '内置箱体数', dataIndex: 'boxNum', width: 200, align: 'center' },
|
|
{ title: '内置箱体数', dataIndex: 'boxNum', width: 200, align: 'center' },
|
|
- { title: '内置各箱体已投放比例(%)',
|
|
|
|
- children: [
|
|
|
|
- { title: '1号箱', scopedSlots: { customRender: 'boxOnePercent' }, width: 100, align: 'center' },
|
|
|
|
- { title: '2号箱', scopedSlots: { customRender: 'boxTwoPercent' }, width: 100, align: 'center' },
|
|
|
|
- { title: '3号箱', scopedSlots: { customRender: 'boxThreePercent' }, width: 100, align: 'center' },
|
|
|
|
- { title: '4号箱', scopedSlots: { customRender: 'boxFourPercent' }, width: 100, align: 'center' },
|
|
|
|
- { title: '5号箱', scopedSlots: { customRender: 'boxFivePercent' }, width: 100, align: 'center' }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
{ title: '版本', dataIndex: 'boxVersion', width: 200, align: 'center' },
|
|
{ title: '版本', dataIndex: 'boxVersion', width: 200, align: 'center' },
|
|
{ title: '设备状态', scopedSlots: { customRender: 'onlineFlag' }, width: 150, align: 'center' },
|
|
{ title: '设备状态', scopedSlots: { customRender: 'onlineFlag' }, width: 150, align: 'center' },
|
|
{ title: '工作状态', scopedSlots: { customRender: 'state' }, width: 150, align: 'center' },
|
|
{ title: '工作状态', scopedSlots: { customRender: 'state' }, width: 150, align: 'center' },
|