# up device

This commit is contained in:
xianfuxing 2018-08-18 17:34:16 +08:00
parent 781bc88e47
commit b6fc576b26
1 changed files with 15 additions and 6 deletions

View File

@ -14,12 +14,12 @@
<el-table-column <el-table-column
prop="device_id" prop="device_id"
label="设备ID" label="设备ID"
min-width="180"> min-width="120">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="status" prop="status"
label="状态" label="状态"
min-width="100"> min-width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.status==0" style="color: #F56C6C">离线</span> <span v-if="scope.row.status==0" style="color: #F56C6C">离线</span>
<span v-if="scope.row.status==1" style="color: #67C23A">在线</span> <span v-if="scope.row.status==1" style="color: #67C23A">在线</span>
@ -28,22 +28,31 @@
<el-table-column <el-table-column
prop="count" prop="count"
label="计数" label="计数"
min-width="120"> min-width="80">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="signal" prop="signal"
label="信号" label="信号"
min-width="120"> min-width="80">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="energy" prop="energy"
label="电量" label="电量"
min-width="120"> min-width="80">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="time" prop="time"
label="时间" label="时间"
min-width="120"> min-width="100">
</el-table-column>
<el-table-column
fixed="right"
label="操作"
min-width="100">
<template slot-scope="scope">
<el-button type="primary" size="mini">详情</el-button>
<el-button type="success" size="mini">地图</el-button>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>