修改问题
This commit is contained in:
@@ -24,9 +24,7 @@
|
||||
<div class="realtrend_table" v-if="Object.keys(tableData).length != 0">
|
||||
<div class="thead_left">
|
||||
<p>次数</p>
|
||||
<p>
|
||||
{{ item.groupName }}{{ item.unit?'('+item.unit+')':'' }}
|
||||
</p>
|
||||
<p>{{ item.groupName }}{{ item.unit ? '(' + item.unit + ')' : '' }}</p>
|
||||
</div>
|
||||
<div class="thead_right">
|
||||
<div class="right_cell" v-for="(value, key, index) in tableData" :key="index">
|
||||
@@ -206,6 +204,7 @@ const init = () => {
|
||||
}
|
||||
|
||||
const handleClick = (tab: any, event: any) => {
|
||||
loading.value = true
|
||||
params.value.groupId = tabsList.value[tab.index].id
|
||||
emit('changeTrendType', tab.index)
|
||||
activeName.value = tab.index
|
||||
@@ -215,6 +214,9 @@ const handleClick = (tab: any, event: any) => {
|
||||
const mqttMessage: any = ref()
|
||||
const tableData: any = ref({})
|
||||
const setRealTrendData = (val: any) => {
|
||||
if(!val){
|
||||
return
|
||||
}
|
||||
loading.value = true
|
||||
console.log(val, '谐波频谱')
|
||||
tableData.value = {}
|
||||
@@ -222,7 +224,7 @@ const setRealTrendData = (val: any) => {
|
||||
for (let key in val) {
|
||||
if (String(key).includes('data') && String(key) != 'dataLevel' && String(key) != 'dataTime') {
|
||||
tableData.value[key] = val[key]
|
||||
if(tabsList.value[activeName.value].groupName.includes("间")==false){
|
||||
if (tabsList.value[activeName.value].groupName.includes('间') == false) {
|
||||
delete tableData.value.data1
|
||||
}
|
||||
}
|
||||
@@ -369,14 +371,13 @@ defineExpose({ open, setRealTrendData, setOverLimitData })
|
||||
|
||||
.tab_info {
|
||||
width: 100%;
|
||||
height: calc(100vh - 450px);
|
||||
|
||||
// height: calc(100vh - 450px);
|
||||
// overflow: auto;
|
||||
// padding-bottom: 20px;
|
||||
.charts {
|
||||
width: 100%;
|
||||
margin-top: 10px;
|
||||
height: calc(100vh - 600px);
|
||||
height: calc(100vh - 560px);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user