| | |
| | | <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"> |
| | |
| | | class="source-trace" |
| | | v-model:factorType="factorType" |
| | | ></SourceTrace> |
| | | <UnderwayAdvice></UnderwayAdvice> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import RealTimeTrend from './component/RealTimeTrend.vue'; |
| | | import DeviceChange from './component/DeviceChange.vue'; |
| | | import SourceTrace from '@/views/sourcetrace/SourceTrace.vue'; |
| | | import UnderwayAdvice from '@/views/sourcetrace/UnderwayAdvice.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'; |
| | |
| | | // const mode = 'product'; |
| | | |
| | | export default { |
| | | components: { DashBoard, RealTimeTrend, DeviceChange, SourceTrace }, |
| | | components: { |
| | | DashBoard, |
| | | RealTimeTrend, |
| | | DeviceChange, |
| | | SourceTrace, |
| | | UnderwayAdvice |
| | | }, |
| | | setup() { |
| | | const { loading, fetchData } = useFetchData(10000); |
| | | return { loading, fetchData }; |
| | |
| | | // 新获取的监测数据 |
| | | factorDatas: new FactorDatas(), |
| | | // 全部监测数据 |
| | | allFactorDatas: new FactorDatas() |
| | | allFactorDatas: new FactorDatas(), |
| | | pause: false |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | 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: '2024-11-27 11:50:41', |
| | | endTime: '2025-01-16 11:51:41', |
| | | page, |
| | | perPage: 100 |
| | | perPage: 10 |
| | | } |
| | | : { |
| | | deviceCode: this.deviceCode, |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | pauseTask() { |
| | | this.pause = pauseTask(); |
| | | }, |
| | | clearFetchingTask() { |
| | | clearFetchingTask(); |
| | | }, |