|
|
@ -263,41 +263,41 @@ |
|
|
|
|
|
|
|
|
<!-- AGV状态表格 --> |
|
|
<!-- AGV状态表格 --> |
|
|
<el-table :data="agvList" border style="width: 100%;" height="300" class="zxClass"> |
|
|
<el-table :data="agvList" border style="width: 100%;" height="300" class="zxClass"> |
|
|
<el-table-column prop="id" label="AGV编号" width="100" align="center"></el-table-column> |
|
|
|
|
|
<el-table-column prop="soc" label="电量" width="120" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column prop="id" label="AGV编号" min-width="100" align="center"></el-table-column> |
|
|
|
|
|
<el-table-column prop="soc" label="电量" min-width="120" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-progress :percentage="scope.row.soc" :color="getBatteryColor(scope.row.soc)"></el-progress> |
|
|
<el-progress :percentage="scope.row.soc" :color="getBatteryColor(scope.row.soc)"></el-progress> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="agvStat" label="状态" width="120" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column prop="agvStat" label="状态" min-width="120" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-tag :type="getAgvStatusType(scope.row.agvStat)"> |
|
|
<el-tag :type="getAgvStatusType(scope.row.agvStat)"> |
|
|
{{ getAgvStatusText(scope.row.agvStat) }} |
|
|
{{ getAgvStatusText(scope.row.agvStat) }} |
|
|
</el-tag> |
|
|
</el-tag> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="cargo" label="载货状态" width="100" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column prop="cargo" label="载货状态" min-width="100" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-tag :type="scope.row.cargo ? 'success' : 'info'"> |
|
|
<el-tag :type="scope.row.cargo ? 'success' : 'info'"> |
|
|
{{ scope.row.cargo ? '有货' : '空载' }} |
|
|
{{ scope.row.cargo ? '有货' : '空载' }} |
|
|
</el-tag> |
|
|
</el-tag> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="offline" label="连接状态" width="100" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column prop="offline" label="连接状态" min-width="100" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-tag :type="scope.row.offline ? 'danger' : 'success'"> |
|
|
<el-tag :type="scope.row.offline ? 'danger' : 'success'"> |
|
|
{{ scope.row.offline ? '离线' : '在线' }} |
|
|
{{ scope.row.offline ? '离线' : '在线' }} |
|
|
</el-tag> |
|
|
</el-tag> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="位置信息" width="200" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column label="位置信息" min-width="200" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div>X: {{ scope.row.x }}mm</div> |
|
|
<div>X: {{ scope.row.x }}mm</div> |
|
|
<div>Y: {{ scope.row.y }}mm</div> |
|
|
<div>Y: {{ scope.row.y }}mm</div> |
|
|
<div>角度: {{ (scope.row.theta / 1000).toFixed(1) }}°</div> |
|
|
<div>角度: {{ (scope.row.theta / 1000).toFixed(1) }}°</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column prop="offPlat" label="控制模式" width="100" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column prop="offPlat" label="控制模式" min-width="100" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-tag :type="scope.row.offPlat ? 'warning' : 'primary'"> |
|
|
<el-tag :type="scope.row.offPlat ? 'warning' : 'primary'"> |
|
|
{{ scope.row.offPlat ? '手动' : '自动' }} |
|
|
{{ scope.row.offPlat ? '手动' : '自动' }} |
|
|
|