| | |
| | | @search="onSearch" |
| | | ></SearchBar> |
| | | <TrajectoryState v-show="status != 0" :status="status"></TrajectoryState> |
| | | <el-button |
| | | type="primary" |
| | | class="p-events-auto el-button-custom" |
| | | @click="handleClick" |
| | | > |
| | | 分析 |
| | | </el-button> |
| | | </el-row> |
| | | <el-row class="m-t-2"> |
| | | <FactorRadio |
| | |
| | | import DataSheet from './component/DataSheet.vue'; |
| | | import { ElMessage } from 'element-plus'; |
| | | import { fetchHistoryData } from '@/utils/factor/data'; |
| | | import dataAnalysisApi from '@/api/dataAnalysisApi'; |
| | | import { mapStores } from 'pinia'; |
| | | import { useSceneStore } from '@/stores/scene'; |
| | | |
| | |
| | | // 监测设备编号 |
| | | deviceCode: '', |
| | | // 监测因子的类型编号 |
| | | factorType: defaultOptions(TYPE0), |
| | | factorType: defaultOptions(TYPE0).value, |
| | | // 监测数据 |
| | | factorDatas: new FactorDatas(), |
| | | // 决定绘制3D图形时是否与原图像合并 |
| | |
| | | // 刷新图例 |
| | | const factor = this.factorDatas.factor[this.factorType]; |
| | | sector.clearSector(); |
| | | this.drawRoadLine(factor); |
| | | // this.drawRoadMap(factor); |
| | | // this.drawRoadLine(factor); |
| | | this.drawRoadMap(factor); |
| | | this.drawMassMarks(factor); |
| | | }, |
| | | // 绘制3D走行路线图 |
| | |
| | | }); |
| | | }, |
| | | onSearch(option) { |
| | | const { deviceType, deviceCode, timeArray } = option; |
| | | const { deviceType, deviceCode, timeArray, mission } = option; |
| | | this.deviceType = deviceType; |
| | | this.deviceCode = deviceCode; |
| | | this.mission = mission; |
| | | let startTime, endTime; |
| | | if (timeArray && timeArray.length == 2) { |
| | | startTime = moment(timeArray[0]).format('YYYY-MM-DD HH:mm:ss'); |
| | |
| | | perPage: pageSize |
| | | }).then((res) => this.onFetchData(deviceType, res.data)); |
| | | }); |
| | | }, |
| | | handleClick() { |
| | | const { missionCode } = this.mission; |
| | | dataAnalysisApi.pollutionTrace(missionCode).then((res) => { |
| | | res.data.forEach((e) => { |
| | | const fDatas = new FactorDatas(); |
| | | fDatas.setData(e.dataVoList, this.drawMode, () => { |
| | | fDatas.refreshHeight(this.factorType); |
| | | Layer.drawHighLight3DLayer(fDatas, fDatas.factor[this.factorType]); |
| | | console.log(e.dataVoList); |
| | | }); |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | | mounted() { |