| | |
| | | > |
| | | 下载报告 |
| | | </el-button> |
| | | <!-- <el-button |
| | | <el-button |
| | | type="primary" |
| | | class="el-button-custom" |
| | | @click="handleGenerateImg" |
| | | :loading="docLoading" |
| | | > |
| | | 生成图片 |
| | | </el-button> --> |
| | | </el-button> |
| | | </el-form-item> |
| | | <!-- <el-form-item> |
| | | <el-image :src="base64Url" fit="fill" :preview-src-list="[base64Url]" /> |
| | | </el-form-item> --> |
| | | <el-form-item> |
| | | <!-- <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | class="el-button-custom" |
| | |
| | | /> |
| | | </el-form-item> |
| | | </el-form-item> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | </CardDialog> |
| | | </template> |
| | |
| | | mainFactor: '', |
| | | _abnormalFactors: '', |
| | | sceneCount: 0, |
| | | _kilometres: '1000' |
| | | _kilometres: '1000', |
| | | _keyScene: '1个国控点(静安监测站)和2个市控点(和田中学、市北高新)', |
| | | exceptionCount: 0, |
| | | _focusScene: '' |
| | | } |
| | | ], |
| | | missionDetailList: [ |
| | | { |
| | | _index: 1, |
| | | missionCode: '', |
| | | _startTime: '2025年07月29日', |
| | | _time: '09:00至14:30', |
| | | _kilometres: '1000', |
| | | _keyScene: '1个国控点(静安监测站)和2个市控点(和田中学、市北高新)', |
| | | _dataStatistics: [ |
| | | { |
| | | factor: 'PM10', |
| | |
| | | }; |
| | | |
| | | const handleGenerateImg = () => { |
| | | generateClueByRiskArea(params.value).then(() => {}); |
| | | generateClueByRiskArea(params.value).then(() => { |
| | | generateDocx(); |
| | | }); |
| | | }; |
| | | |
| | | function generateMissionSummary(param) { |
| | |
| | | return { |
| | | _index: index + 1, |
| | | // _area: `${item.sceneInfo.type}${item.sceneInfo.name}周边`, |
| | | _area: `${item.address}`, |
| | | _area: `${item.township}`, |
| | | clueByFactorList: item.clueByFactorList.map((cbf) => { |
| | | return { |
| | | factor: cbf.factor, |
| | | clues: cbf.clues.map((clue) => { |
| | | const _riskRegion = []; |
| | | if (clue.pollutedArea.address) { |
| | | _riskRegion.push(clue.pollutedArea.address); |
| | | } |
| | | if (clue.pollutedArea.streetNumber) { |
| | | _riskRegion.push(clue.pollutedArea.streetNumber); |
| | | } |
| | | if (clue.pollutedArea.roadinter) { |
| | | _riskRegion.push(clue.pollutedArea.roadinter); |
| | | } |
| | | return { |
| | | _factorNames: Object.keys(clue.pollutedData.statisticMap) |
| | | .map((e) => e) |
| | |
| | | ) + |
| | | ' - ' + |
| | | moment(clue.pollutedData.endTime).format('HH:mm:ss'), |
| | | _riskRegion: clue.pollutedArea.address |
| | | ? clue.pollutedArea.address |
| | | : '', |
| | | _riskRegion: _riskRegion.join(','), |
| | | _exceptionType: clue.pollutedData.exception, |
| | | _images: generateChartImg(clue.pollutedData), |
| | | _conclusion: clue.pollutedSource.conclusion, |
| | | _hasScene: clue.pollutedSource.sceneList.length > 0, |
| | | _scenes: |
| | | clue.pollutedSource.sceneList.length > 0 |
| | | ? clue.pollutedSource.sceneList |