| | |
| | | |
| | | import DustRadarChart from '@/views/risk_assessment/components/DustRadarChart.vue' |
| | | import FYLineChart from '@/components/chart/FYLineChart.vue' |
| | | |
| | | import time from '@/utils/time.js' |
| | | import index from '@/utils/risk_estimate_common_function/index.js' |
| | | import ButtonClick from '@/sfc/ButtonClick.vue' |
| | | import dayjs from 'dayjs' |
| | |
| | | import riskValue from '@/utils/risk_estimate_common_function/riskValue.js' |
| | | import lineChart from '@/utils/chartFunction/lineChart.js' |
| | | import siteInfo from '@/api/site/siteInfo.js' |
| | | import CompDailyStatistic from '@/views/risk_assessment/riskModel/components/CompDailyStatistic.vue' |
| | | export default { |
| | | props: { |
| | | // ç¹ä½åå |
| | |
| | | AreaAndmonitorType, |
| | | DustRadarChart, |
| | | ButtonClick, |
| | | MonthSelect |
| | | MonthSelect, |
| | | CompDailyStatistic |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | this.screenLoading = false |
| | | }) |
| | | } |
| | | |
| | | } |
| | | }, |
| | | |
| | |
| | | this.isNoData = true |
| | | return |
| | | } |
| | | this.chartData.sort(time.compareByScore) |
| | | // åææ°æ®ä¸çææ©æ¶é´ |
| | | let begin = this.chartData[0].lst |
| | | // åææ°æ®ä¸çæææ¶é´ |
| | |
| | | |
| | | // ç§»é¤ç©ºæ°æ®ç¶æ |
| | | this.isNoData = false |
| | | |
| | | // æ æ°æ®çæ¶é´æ®µ |
| | | let noDataTimeInteval = lineChart.backNoDataInteval(begin, end) |
| | | // æ æ°æ®é
ç½®æ¶é´æ®µ |
| | | this.areaColor = lineChart.getMarkArea(noDataTimeInteval) |
| | | this.setChart() |
| | | |
| | | // æçº¿å¾æ°æ® |
| | | let temp = index.calBillData(this.chartData, begin, end) |
| | |
| | | this.bill.exceedingNearCount = obj['exceedingNearCount'] |
| | | this.bill.exceedingCriticalDegree = obj['exceedingCriticalDegree'] |
| | | }) |
| | | }, |
| | | |
| | | // éæ©å
¶ä»å¼ç±»åæ¶ |
| | | setChart() { |
| | | if (this.chartData.length) { |
| | | // æå»ºæçº¿å¾x,yæ°æ® |
| | | let obj = lineChart.getLineChartXYData( |
| | | this.chartData, |
| | | this.form.beginTime, |
| | | this.form.endTime |
| | | ) |
| | | |
| | | this.chartData1 = { |
| | | x: obj.xData, |
| | | y: obj.yAvg |
| | | } |
| | | this.chartData2 = { |
| | | x: obj.xData, |
| | | y: obj.yOnline |
| | | } |
| | | this.chartData3 = { |
| | | x: obj.xData, |
| | | y: obj.yValid |
| | | } |
| | | this.chartData4 = { |
| | | x: obj.xData, |
| | | y: obj.yExceed |
| | | } |
| | | } |
| | | }, |
| | | |
| | | // å¾å°å10é£é©æåæ¸
å |
| | |
| | | <MonthSelect @submit-value="giveMonth"></MonthSelect> |
| | | </el-form-item> |
| | | |
| | | |
| | | <el-form-item v-show="showAll"> |
| | | <ButtonClick |
| | | content="é£é©è¯ä¼°" |
| | |
| | | <el-tag class="mx-1">åºæ¯</el-tag>{{ siteInfo.typename }} |
| | | |
| | | <el-tag class="mx-1">è¿ç»´å</el-tag>{{ siteInfo.dutyCompany }} |
| | | <el-button type="primary" size="default" class="exception-button" v-show="showAll" @click="openDetail"> |
| | | <el-button |
| | | type="primary" |
| | | size="default" |
| | | class="exception-button" |
| | | v-show="showAll" |
| | | @click="openDetail" |
| | | > |
| | | æ°æ®å¼å¸¸è¯¦æ
|
| | | </el-button> |
| | | </el-card> |
| | |
| | | <el-col :span="showAll ?4: 5" > |
| | | <el-card shadow="never" class="card-height risk-card"> |
| | | <template #header> |
| | | <span class="title-16"> é£é©å¼(0~1)ï¼ </span> |
| | | <span |
| | | class="title-16" |
| | | > |
| | | é£é©å¼(0~1)ï¼ |
| | | </span> |
| | | <span :class="{ |
| | | :class="{ |
| | | 'weightColor-low': weight < 0.15, |
| | | 'weightColor-medium': weight >= 0.15 && weight <= 0.6, |
| | | 'weightColor-heigh': weight > 0.6 |
| | | }"> {{ weight }}</span> |
| | | }" |
| | | > |
| | | {{ weight }}</span |
| | | > |
| | | </template> |
| | | <div class="risk-text-container"> |
| | | <div class="risk-grade"> |
| | | <h1 class="sub-title">é£é©ç级ï¼</h1> |
| | | <span :class="{ |
| | | <span |
| | | :class="{ |
| | | 'weightColor-low': weight < 0.15, |
| | | 'weightColor-medium': weight >= 0.15 && weight <= 0.6, |
| | | 'weightColor-heigh': weight > 0.6 |
| | | }" >{{ riskGradeAndAdvice.riskGrade }} </span> |
| | | }" |
| | | >{{ riskGradeAndAdvice.riskGrade }} |
| | | </span> |
| | | </div> |
| | | |
| | | <div class="risk-advice"> |
| | |
| | | {{ exceptionRisk.exceptionTypeAggregation * 100 }}% |
| | | </el-form-item> |
| | | |
| | | <el-tag :size="small" v-show="bill.exception">å
±åºç°äº{{ bill.exception }}ç±»å¼å¸¸</el-tag> |
| | | <el-tag size="small" v-show="bill.exception" |
| | | >å
±åºç°äº{{ bill.exception }}ç±»å¼å¸¸</el-tag |
| | | > |
| | | |
| | | <el-form-item label="å
¸åå¼å¸¸å¤ç°çï¼"> |
| | | {{ exceptionRisk.typicalExceptionRepetitionRate * 100 }}% |
| | | </el-form-item> |
| | | |
| | | <div> |
| | | <el-tag :size="small" v-show="bill.mutationCount">é级çªåå¼å¸¸:{{ bill.mutationCount }}æ¡</el-tag> |
| | | <el-tag size="small" v-show="bill.mutationCount" |
| | | >é级çªåå¼å¸¸:{{ bill.mutationCount }}æ¡</el-tag |
| | | > |
| | | </div> |
| | | |
| | | <div> |
| | | <el-tag :size="small" v-show="bill.exceedingNearCount">临è¿è¶
æ å¼å¸¸:{{ bill.exceedingNearCount }}æ¡</el-tag> |
| | | <el-tag size="small" v-show="bill.exceedingNearCount" |
| | | >临è¿è¶
æ å¼å¸¸:{{ bill.exceedingNearCount }}æ¡</el-tag |
| | | > |
| | | </div> |
| | | |
| | | <div> |
| | | <el-tag :size="small" |
| | | v-show="bill.exceedingCriticalDegree" |
| | | <el-tag size="small" v-show="bill.exceedingCriticalDegree" |
| | | >忥è¶
æ æ¬¡æ°ä¸´çå¼å¸¸:{{ bill.exceedingCriticalDegree }}æ¡</el-tag |
| | | > |
| | | </div> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-card shadow="never" class="card-value"> |
| | | <FYLineChart |
| | | title="æ¥åå¼" |
| | | :chartData="chartData1" |
| | | yName="mg/m³" |
| | | seriesName="æ¥åå¼" |
| | | :areaColor="areaColor" |
| | | > |
| | | </FYLineChart> |
| | | </el-card> |
| | | </el-col> |
| | | |
| | | <el-col :span="12"> |
| | | <el-card shadow="never" class="card-value"> |
| | | <FYLineChart |
| | | title="æ¥ææç" |
| | | :chartData="chartData3" |
| | | yName="%" |
| | | seriesName="æ¥ææç" |
| | | :areaColor="areaColor" |
| | | > |
| | | </FYLineChart> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | <CompDailyStatistic :fetch-params="form" /> |
| | | </div> |
| | | </div> |
| | | <el-empty description="ææ æ°æ®" v-show="isNoData" :image-size="200" /> |