| | |
| | | |
| | | 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" /> |