Commit c17236f7 authored by hubaoshan's avatar hubaoshan

解决一些显示bug

parent 3e5ca5ba
<script setup> <script setup>
import {reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import analysisImage from '@/assets/imgs/dengluanniu_wx.png' import analysisImage from '/imgs/default.png'
import {getListHistoryData} from "../../../api/AIStation/Extinguisher.js"; import {getListHistoryData} from "../../../api/AIStation/Extinguisher.js";
let HistoryData = ref([]) let HistoryData = ref([])
......
<script setup> <script setup>
import {onMounted, reactive, ref, toRefs, watch} from "vue"; import {onMounted, reactive, ref, toRefs, watch} from "vue";
import analysisImage from '@/assets/imgs/dengluanniu_wx.png'; import analysisImage from '/imgs/default.png'
import {getListNewData} from "../../../api/AIStation/Extinguisher.js"; import {getListNewData} from "../../../api/AIStation/Extinguisher.js";
import {useRoute} from "vue-router"; import {useRoute} from "vue-router";
import {handleGetAIToken} from "../AItoken.js"; import {handleGetAIToken} from "../AItoken.js";
......
...@@ -257,8 +257,9 @@ watch( ...@@ -257,8 +257,9 @@ watch(
() => route.path, // 只监听路径变化 () => route.path, // 只监听路径变化
() => { () => {
if(route.path === '/AIStation/Extinguisher') { if(route.path === '/AIStation/Extinguisher') {
// selectedComponent.value = ExtinguisherNewDataPage selectedComponent.value = ExtinguisherNewDataPage
activeName.value = ExtinguisherNewDataPage activeName.value = ExtinguisherNewDataPage
selectedBtn.value = 1
// 路由变化,执行相应操作 // 路由变化,执行相应操作
handleGetAIToken(); handleGetAIToken();
const checkAIToken = setInterval(() => { const checkAIToken = setInterval(() => {
......
<script setup> <script setup>
import {reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import analysisImage from '@/assets/imgs/dengluanniu_wx.png' import analysisImage from '/imgs/default.png'
import {getListHistoryData} from "../../../api/AIStation/Extinguisher.js"; import {getListHistoryData} from "../../../api/AIStation/Extinguisher.js";
import {getMoveListAlarmNewData, getMoveListHistoryData} from "../../../api/AIStation/MoveMonitor.js"; import {getMoveListAlarmNewData, getMoveListHistoryData} from "../../../api/AIStation/MoveMonitor.js";
import store from "../../../store/index.js"; import store from "../../../store/index.js";
......
<script setup> <script setup>
import {onMounted, reactive, ref, watch} from "vue"; import {onMounted, reactive, ref, watch} from "vue";
import analysisImage from '@/assets/imgs/dengluanniu_wx.png'; import analysisImage from '/imgs/default.png'
import {getListNewData} from "../../../api/AIStation/Extinguisher.js"; import {getListNewData} from "../../../api/AIStation/Extinguisher.js";
import {getMoveListHistoryData, getMoveListNewData} from "../../../api/AIStation/MoveMonitor.js"; import {getMoveListHistoryData, getMoveListNewData} from "../../../api/AIStation/MoveMonitor.js";
import store from "../../../store/index.js"; import store from "../../../store/index.js";
......
...@@ -258,7 +258,9 @@ watch( ...@@ -258,7 +258,9 @@ watch(
() => route.path, // 只监听路径变化 () => route.path, // 只监听路径变化
() => { () => {
if(route.path === '/AIStation/MoveMonitor') { if(route.path === '/AIStation/MoveMonitor') {
selectedComponent.value = MoveMonitorNewDataPage
activeName.value = MoveMonitorNewDataPage activeName.value = MoveMonitorNewDataPage
selectedBtn.value = 1
// 路由变化,执行相应操作 // 路由变化,执行相应操作
handleGetAIToken(); handleGetAIToken();
// 轮询检测 localStorage 是否更新 // 轮询检测 localStorage 是否更新
......
...@@ -283,7 +283,9 @@ watch( ...@@ -283,7 +283,9 @@ watch(
() => route.path, // 只监听路径变化 () => route.path, // 只监听路径变化
() => { () => {
if(route.path === '/AIStation/PipelineTemp') { if(route.path === '/AIStation/PipelineTemp') {
selectedComponent.value = PipelineTempNewDataPage
activeName.value = PipelineTempNewDataPage activeName.value = PipelineTempNewDataPage
selectedBtn.value = 1
// 路由变化,执行相应操作 // 路由变化,执行相应操作
handleGetAIToken(); handleGetAIToken();
// 轮询检测 localStorage 是否更新 // 轮询检测 localStorage 是否更新
......
...@@ -182,7 +182,9 @@ watch( ...@@ -182,7 +182,9 @@ watch(
() => route.path, // 只监听路径变化 () => route.path, // 只监听路径变化
() => { () => {
if(route.path === '/AIStation/RecyclePump') { if(route.path === '/AIStation/RecyclePump') {
selectedComponent.value = RecyclePumpNewDataPage
activeName.value = RecyclePumpNewDataPage activeName.value = RecyclePumpNewDataPage
selectedBtn.value = 1
// 路由变化,执行相应操作 // 路由变化,执行相应操作
handleGetAIToken(); handleGetAIToken();
// 轮询检测 localStorage 是否更新 // 轮询检测 localStorage 是否更新
......
<script setup> <script setup>
import {ref, defineProps, defineEmits, computed, isRef, onMounted, watchEffect, reactive, watch} from "vue"; import {ref, defineProps, defineEmits, computed, isRef, onMounted, watchEffect, reactive, watch} from "vue";
import analysisImage from '@/assets/imgs/dengluanniu_wx.png'; import analysisImage from '/imgs/default.png'
import {getTransListAlarmData} from "../../../api/AIStation/TransTemp.js"; import {getTransListAlarmData} from "../../../api/AIStation/TransTemp.js";
import store from "../../../store/index.js"; import store from "../../../store/index.js";
......
<script setup> <script setup>
import {reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import analysisImage from '@/assets/imgs/dengluanniu_wx.png'; import analysisImage from '/imgs/default.png'
import {getTransListHistoryData} from "../../../api/AIStation/TransTemp.js"; import {getTransListHistoryData} from "../../../api/AIStation/TransTemp.js";
import store from "../../../store/index.js"; import store from "../../../store/index.js";
......
<script setup> <script setup>
import {reactive, ref, watch} from "vue"; import {reactive, ref, watch} from "vue";
import analysisImage from '@/assets/imgs/dengluanniu_wx.png'; import analysisImage from '/imgs/default.png'
import {getTransListNewData} from "../../../api/AIStation/TransTemp.js"; import {getTransListNewData} from "../../../api/AIStation/TransTemp.js";
import store from "../../../store/index.js"; import store from "../../../store/index.js";
......
...@@ -291,7 +291,9 @@ watch( ...@@ -291,7 +291,9 @@ watch(
() => route.path, // 只监听路径变化 () => route.path, // 只监听路径变化
() => { () => {
if(route.path === '/AIStation/TransTemp') { if(route.path === '/AIStation/TransTemp') {
selectedComponent.value = TransTempNewDataPage
activeName.value = TransTempNewDataPage; activeName.value = TransTempNewDataPage;
selectedBtn.value = 1
// 路由变化,执行相应操作 // 路由变化,执行相应操作
handleGetAIToken(); handleGetAIToken();
// 轮询检测 localStorage 是否更新 // 轮询检测 localStorage 是否更新
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment