设备监控-指标详情添加devId

This commit is contained in:
zhujiyan
2024-08-08 15:38:59 +08:00
parent 6a6239c488
commit a28a61c8e4
3 changed files with 41 additions and 46 deletions

View File

@@ -238,7 +238,7 @@
<div v-if="!tableData" style="height: 42px"></div>
</el-tabs>
</div>
<el-empty v-else description="请选择设备" class="device-control-right"/>
<el-empty v-else description="请选择设备" class="device-control-right" />
<Detail ref="detailRef" :detail="detail" @close="detail = null" v-if="detail"></Detail>
<!-- 离线数据导入组件 -->
<offLineDataImport ref="offLineDataImportRef"></offLineDataImport>
@@ -417,8 +417,8 @@ const timer: any = ref()
//tab点击事件
const handleClick = async (tab?: any) => {
//点击tab时更新dataSet最新值
if(tab&&tab.props&&tab.props.name&&dataSet.value!=tab.props.name){
dataSet.value = tab.props.name
if (tab && tab.props && tab.props.name && dataSet.value != tab.props.name) {
dataSet.value = tab.props.name
}
tableLoading.value = true