From 08ffcf9d7ffafaa82d8de7f9b5fcfdb49e9c3688 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 05 十一月 2025 17:33:54 +0800
Subject: [PATCH] 动态溯源 1. 修复CO因子文本没有正常显示的问题;
---
src/views/realtimemode/RealtimeMode.vue | 51 +++++++++++++++++++++++++++++++++++++--------------
1 files changed, 37 insertions(+), 14 deletions(-)
diff --git a/src/views/realtimemode/RealtimeMode.vue b/src/views/realtimemode/RealtimeMode.vue
index 7ebb66b..7b00711 100644
--- a/src/views/realtimemode/RealtimeMode.vue
+++ b/src/views/realtimemode/RealtimeMode.vue
@@ -5,9 +5,9 @@
<el-button
type="primary"
class="p-events-auto el-button-custom"
- @click="clearFetchingTask"
+ @click="pauseTask"
>
- 鍋滄
+ {{ pause ? '缁х画' : '鏆傚仠' }}
</el-button>
</el-row>
<el-row class="m-t-2">
@@ -19,7 +19,7 @@
</el-col>
<el-col span="1"> </el-col>
</el-row>
- <DashBoard class="dash-board" :factor-datas="factorDatas"></DashBoard>
+ <!-- <DashBoard class="dash-board" :factor-datas="factorDatas"></DashBoard> -->
<RealTimeTrend
class="real-time-trend"
:factor-datas="factorDatas"
@@ -28,8 +28,9 @@
<SourceTrace
class="source-trace"
v-model:factorType="factorType"
+ :deviceCode="deviceCode"
></SourceTrace>
- <UnderwayAdvice></UnderwayAdvice>
+ <!-- <PollutedClueItem></PollutedClueItem> -->
</div>
</template>
@@ -45,11 +46,13 @@
import DeviceChange from './component/DeviceChange.vue';
import SourceTrace from '@/views/sourcetrace/SourceTrace.vue';
import UnderwayAdvice from '@/views/sourcetrace/UnderwayAdvice.vue';
+import PollutedClueItem from '@/views/sourcetrace/component/PollutedClueItem.vue';
import { realTimeMapAnimation } from '@/utils/map/animation';
import {
fetchHistoryData,
startLoopFetchRealTimeData,
- clearFetchingTask
+ clearFetchingTask,
+ pauseTask
} from '@/utils/factor/data';
import thirdPartyDataApi from '@/api/thirdPartyDataApi';
import websocket from '@/api/websocket';
@@ -57,11 +60,18 @@
// const mapAnimation = new MapAnimation();
// 璋冭瘯妯″紡
-const mode = 'debug';
-// const mode = 'product';
+// const mode = 'debug';
+const mode = 'product';
export default {
- components: { DashBoard, RealTimeTrend, DeviceChange, SourceTrace, UnderwayAdvice },
+ components: {
+ DashBoard,
+ RealTimeTrend,
+ DeviceChange,
+ SourceTrace,
+ UnderwayAdvice,
+ PollutedClueItem
+ },
setup() {
const { loading, fetchData } = useFetchData(10000);
return { loading, fetchData };
@@ -76,7 +86,8 @@
// 鏂拌幏鍙栫殑鐩戞祴鏁版嵁
factorDatas: new FactorDatas(),
// 鍏ㄩ儴鐩戞祴鏁版嵁
- allFactorDatas: new FactorDatas()
+ allFactorDatas: new FactorDatas(),
+ pause: false
};
},
watch: {
@@ -127,10 +138,19 @@
mode == 'debug'
? {
deviceCode: this.deviceCode,
- startTime: '2025-01-16 11:34:00',
- endTime: '2025-01-16 11:35:00',
+ // startTime: '2025-01-16 11:34:00',
+ // endTime: '2025-01-16 11:35:00',
+ // startTime: '2025-01-20 12:40:00',
+ // startTime: '2024-12-27 08:30:00',
+ // startTime: '2024-12-13 16:35:00',
+ // startTime: '2024-11-27 11:50:41', // Pm, 涓窛绂诲伐鍦�
+ // startTime: '2024-08-30 15:27:00', // voc 杩戣窛绂绘苯淇�
+ // startTime: '2024-07-23 15:21:30',
+ // startTime: '2024-07-23 14:39:00',
+ startTime: '2025-11-04 14:30:00',
+ endTime: '2025-12-31 11:51:41',
page,
- perPage: 100
+ perPage: 10
}
: {
deviceCode: this.deviceCode,
@@ -144,6 +164,9 @@
thirdPartyDataApi.fetchLatestData(this.deviceType, this.deviceCode);
});
});
+ },
+ pauseTask() {
+ this.pause = pauseTask();
},
clearFetchingTask() {
clearFetchingTask();
@@ -198,7 +221,7 @@
<style scoped>
.dash-board {
position: absolute;
- left: 0;
+ right: 0;
bottom: 0px;
}
.real-time-trend {
@@ -208,7 +231,7 @@
}
.source-trace {
position: absolute;
- right: 0;
+ left: 0;
bottom: 0px;
}
</style>
--
Gitblit v1.9.3