|
@@ -43,7 +43,7 @@
|
|
|
:key="index"
|
|
|
class="Freezer_top_tabstitle"
|
|
|
:class="{ active: activeTab === index }"
|
|
|
- @click="selectTab(item)"
|
|
|
+ @click="selectTab(item, index)"
|
|
|
>
|
|
|
{{ item.thawName }}
|
|
|
</div>
|
|
@@ -285,8 +285,8 @@ const currentTime = ref<string>('');
|
|
|
const tabsdata = ref<any>([]);
|
|
|
const activeTab = ref(0);
|
|
|
|
|
|
-const selectTab = (item: any) => {
|
|
|
- activeTab.value = item.topic;
|
|
|
+const selectTab = (item: any, index: number) => {
|
|
|
+ activeTab.value = index;
|
|
|
// 取消订阅之前的 topic
|
|
|
unsubscribes();
|
|
|
// 添加当前选中的 topic
|
|
@@ -494,7 +494,7 @@ const progressbars = (datas: any) => {
|
|
|
return;
|
|
|
}
|
|
|
// 打印原始时间戳数组
|
|
|
- console.log(datas.warnEchars.echarsTime, '原始时间戳数组');
|
|
|
+ // console.log(datas.warnEchars.echarsTime, '原始时间戳数组');
|
|
|
const time = [];
|
|
|
// 将时间戳数组转换为格式化的日期时间字符串数组
|
|
|
datas.warnEchars.echarsTime.forEach((item: any) => {
|
|
@@ -503,7 +503,7 @@ const progressbars = (datas: any) => {
|
|
|
});
|
|
|
|
|
|
// 打印转换后的时间字符串数组
|
|
|
- console.log(time, '格式化后的时间字符串数组');
|
|
|
+ // console.log(time, '格式化后的时间字符串数组');
|
|
|
|
|
|
const chartElement = document.getElementById('chartstow');
|
|
|
|
|
@@ -1002,7 +1002,7 @@ body {
|
|
|
background-size: contain;
|
|
|
cursor: pointer;
|
|
|
&.active {
|
|
|
- color: #00befe; // 选中时文字颜色变为红色
|
|
|
+ color: #00befe !important; // 选中时文字颜色变为红色
|
|
|
}
|
|
|
}
|
|
|
}
|