修改问题

This commit is contained in:
zhujiyan
2024-10-22 15:01:41 +08:00
parent 28c0e2d23c
commit 25ffc10857
3 changed files with 129 additions and 120 deletions

View File

@@ -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>