Commit 6bbac849b3aac49263898e1aa41d40c4b51965ff
1 parent
d0083447
修复设备列表状态显示
Showing
2 changed files
with
4 additions
and
4 deletions
web_src/src/components/DeviceList.vue
| @@ -41,8 +41,8 @@ | @@ -41,8 +41,8 @@ | ||
| 41 | <el-table-column label="状态" min-width="120"> | 41 | <el-table-column label="状态" min-width="120"> |
| 42 | <template slot-scope="scope"> | 42 | <template slot-scope="scope"> |
| 43 | <div slot="reference" class="name-wrapper"> | 43 | <div slot="reference" class="name-wrapper"> |
| 44 | - <el-tag size="medium" v-if="scope.row.online == 1">在线</el-tag> | ||
| 45 | - <el-tag size="medium" type="info" v-if="scope.row.online == 0">离线</el-tag> | 44 | + <el-tag size="medium" v-if="scope.row.onLine">在线</el-tag> |
| 45 | + <el-tag size="medium" type="info" v-if="!scope.row.onLine">离线</el-tag> | ||
| 46 | </div> | 46 | </div> |
| 47 | </template> | 47 | </template> |
| 48 | </el-table-column> | 48 | </el-table-column> |
web_src/src/components/channelList.vue
| @@ -79,8 +79,8 @@ | @@ -79,8 +79,8 @@ | ||
| 79 | <el-table-column label="状态" min-width="120"> | 79 | <el-table-column label="状态" min-width="120"> |
| 80 | <template slot-scope="scope"> | 80 | <template slot-scope="scope"> |
| 81 | <div slot="reference" class="name-wrapper"> | 81 | <div slot="reference" class="name-wrapper"> |
| 82 | - <el-tag size="medium" v-if="scope.row.status === 1">在线</el-tag> | ||
| 83 | - <el-tag size="medium" type="info" v-if="scope.row.status === 0">离线</el-tag> | 82 | + <el-tag size="medium" v-if="scope.row.status === true">在线</el-tag> |
| 83 | + <el-tag size="medium" type="info" v-if="scope.row.status === false">离线</el-tag> | ||
| 84 | </div> | 84 | </div> |
| 85 | </template> | 85 | </template> |
| 86 | </el-table-column> | 86 | </el-table-column> |