|
|
|
|
@ -26,10 +26,15 @@ |
|
|
|
|
<dict-tag :options="dict.type.dev_model_dict" :value="scope.row.devModel"/> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="runStatus" label="运行状态"> |
|
|
|
|
<!-- <el-table-column prop="runStatus" label="运行状态">--> |
|
|
|
|
<!-- <template slot-scope="scope">--> |
|
|
|
|
<!-- <!– 如果 runStatus 是 0,则显示红色标签,“离线”,否则显示绿色标签,“在线” –>--> |
|
|
|
|
<!-- <el-tag :type="[scope.row.runStatus === '0' ? 'danger' : 'success']">{{ scope.row.runStatus === '0' ? '离线' : '在线' }}</el-tag>--> |
|
|
|
|
<!-- </template>--> |
|
|
|
|
<!-- </el-table-column>--> |
|
|
|
|
<el-table-column label="运行状态" prop="runStatus"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<!-- 如果 runStatus 是 0,则显示红色标签,“离线”,否则显示绿色标签,“在线” --> |
|
|
|
|
<el-tag :type="[scope.row.runStatus === '0' ? 'danger' : 'success']">{{ scope.row.runStatus === '0' ? '离线' : '在线' }}</el-tag> |
|
|
|
|
<dict-tag :options="dict.type.operating_state" :value="scope.row.runStatus"/> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
@ -49,7 +54,7 @@ |
|
|
|
|
export default { |
|
|
|
|
name: "video-list", |
|
|
|
|
props: ['listData','total','interfacePath','dataType'], |
|
|
|
|
dicts: ['dev_brand_dict','dev_model_dict'], |
|
|
|
|
dicts: ['dev_brand_dict','dev_model_dict','operating_state'], |
|
|
|
|
data(){ |
|
|
|
|
return{ |
|
|
|
|
resourcePage:0, |
|
|
|
|
|