Commit 31a8e6ea89a08ca5c3460e6158b3d635dddef0ac
1 parent
9ce6045f
优化位置信息展示
Showing
1 changed file
with
2 additions
and
1 deletions
web_src/src/components/channelList.vue
| ... | ... | @@ -63,7 +63,8 @@ |
| 63 | 63 | </el-table-column> |
| 64 | 64 | <el-table-column label="位置信息" align="center"> |
| 65 | 65 | <template slot-scope="scope"> |
| 66 | - <span>{{ scope.row.longitude }},{{ scope.row.latitude }}</span> | |
| 66 | + <span v-if="scope.row.longitude*scope.row.latitude > 0">{{ scope.row.longitude }},<br>{{ scope.row.latitude }}</span> | |
| 67 | + <span v-if="scope.row.longitude*scope.row.latitude === 0">无</span> | |
| 67 | 68 | </template> |
| 68 | 69 | </el-table-column> |
| 69 | 70 | <el-table-column prop="ptztypeText" label="云台类型"/> | ... | ... |