| | |
| | | // 无数据配置时间段 |
| | | areaColor: [], |
| | | // 某站点的基本信息 |
| | | siteInfo:{} |
| | | siteInfo: {}, |
| | | |
| | | // 异常风险的值 |
| | | exceptionRisk: { |
| | | // 在线率风险 |
| | | onlineRisk: '', |
| | | // 有效率风险 |
| | | validRisk: '', |
| | | // 超标风险 |
| | | exceedRisk: '', |
| | | // 异常类型聚集度 |
| | | exceptionTypeAggregation: '', |
| | | // 典型异常复现率 |
| | | typicalExceptionRepetitionRate:'' |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | |
| | | |
| | | |
| | | // 查询站点统计信息 |
| | | async querySiteStaticsInfo(row) { |
| | | this.form.name = row.siteName |
| | |
| | | // 日统计数据 |
| | | this.fetchDayAnalysisData() |
| | | // 异常数据 |
| | | this.fetchExceptionAnalysisData() |
| | | // this.fetchExceptionAnalysisData() |
| | | }, |
| | | |
| | | findObjectByPropertyValue(array, property, value) { |
| | |
| | | |
| | | }, |
| | | |
| | | // 计算风险值 |
| | | |
| | | /** |
| | | * 得到数据风险值 ,并计算风险值 |
| | | * @param: |
| | | * @returns: |
| | | */ |
| | | calRiskValue() { |
| | | console.log('设备编码:',this.form.number) |
| | | riskApi.queryRiskValue(this.form.number, this.month, 'month').then((response) => { |
| | | this.weight = riskValue.calRiskValue(response.data.data[0]).toFixed(2) |
| | | |
| | | |
| | | const riskValue = response.data.data[0] |
| | | this.exceptionRisk.onlineRisk = riskValue.onlineRisk |
| | | this.exceptionRisk.validRisk = riskValue.validRisk |
| | | this.exceptionRisk.exceedRisk = riskValue.exceedRisk |
| | | this.exceptionRisk.exceptionTypeAggregation = riskValue.exceptionTypeAggregation |
| | | this.exceptionRisk.typicalExceptionRepetitionRate = riskValue.typicalExceptionRepetitionRate |
| | | |
| | | this.weight = riskValue.calRiskValue(riskValue).toFixed(2) |
| | | }) |
| | | }, |
| | | |
| | |
| | | // 无数据配置时间段 |
| | | this.areaColor = lineChart.getMarkArea(noDataTimeInteval) |
| | | this.setChart() |
| | | |
| | | |
| | | // 折线图数据 |
| | | let temp = index.calBillData(this.chartData, begin, end) |
| | | this.bill.min = temp['min'] |
| | |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <!-- <el-card class="site-info time-text" > |
| | | <span>{{form.name}}</span> |
| | | <br/> |
| | | <br/> |
| | | <span>数据统计时段:{{ form.beginTime }} ~ {{ form.endTime }}</span> |
| | | <el-tag class="mx-1" >场景</el-tag>{{siteInfo.typename}} |
| | | |
| | | <el-tag class="mx-1">运维商</el-tag>{{siteInfo.dutyCompany}} |
| | | <el-button type="primary" size="small" class="exception-button" @click="openDetail()"> |
| | | 异常详情 |
| | | </el-button> |
| | | </el-card> --> |
| | | |
| | | <div v-loading="screenLoading" class="wait-name"> |
| | | <div class="chart-container" v-show="!isNoData && !screenLoading"> |
| | | <!-- <div class="time-text"> |
| | | <span>数据统计时段:{{ form.beginTime }} ~ {{ form.endTime }}</span> |
| | | <span class="site-name"> |
| | | <el-button type="primary" text class="exception-button" @click="openDetail()"> |
| | | 异常详情 |
| | | </el-button> |
| | | |
| | | </span> |
| | | <el-tag class="mx-1" >场景</el-tag>{{siteInfo.typename}} |
| | | <el-tag class="mx-2">运维商</el-tag>{{siteInfo.dutyCompany}} |
| | | </div> --> |
| | | |
| | | <el-card class="time-text" > |
| | | <span>{{form.name}}</span> |
| | | <h4>{{form.name}}</h4> |
| | | <br/> |
| | | <br/> |
| | | <span>数据统计时段:{{ form.beginTime }} ~ {{ form.endTime }}</span> |
| | | <el-tag class="mx-1" >场景</el-tag>{{siteInfo.typename}} |
| | | |
| | | <el-tag class="mx-1">运维商</el-tag>{{siteInfo.dutyCompany}} |
| | | <el-button type="primary" size="small" class="exception-button" @click="openDetail"> |
| | | 异常详情 |
| | | <el-button type="primary" size="default" class="exception-button" @click="openDetail"> |
| | | 数据异常详情 |
| | | </el-button> |
| | | </el-card> |
| | | |
| | |
| | | '超标异常风险', |
| | | '数据在线风险' |
| | | ]" |
| | | :yData="[ |
| | | bill.valid, |
| | | bill.exceptionRecurrence, |
| | | bill.exceptionTypeAggregation, |
| | | bill.exceeding, |
| | | bill.online |
| | | ]" |
| | | :yData="exceptionRisk" |
| | | ></DustRadarChart> |
| | | </el-card> |
| | | </el-col> |
| | |
| | | <el-col :span="12"> |
| | | <el-card shadow="never" class="card-value"> |
| | | <LineChart |
| | | title="日在线率" |
| | | :chartData="chartData2" |
| | | yName="%" |
| | | seriesName="日在线率" |
| | | :areaColor="areaColor" |
| | | > |
| | | </LineChart> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-card shadow="never" class="card-value"> |
| | | <LineChart |
| | | title="日有效率" |
| | | :chartData="chartData3" |
| | | yName="%" |
| | |
| | | </LineChart> |
| | | </el-card> |
| | | </el-col> |
| | | |
| | | <el-col :span="12"> |
| | | <el-card shadow="never" class="card-value"> |
| | | <LineChart |
| | | title="日超标率" |
| | | :chartData="chartData4" |
| | | yName="%" |
| | | seriesName="日超标率" |
| | | :areaColor="areaColor" |
| | | > |
| | | </LineChart> |
| | | </el-card> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | <el-empty description="暂无数据" v-show="isNoData" :image-size="200" /> |