|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="bg-box">
|
|
|
+ <div class="bg-box" style="padding-top: 0;">
|
|
|
<!-- 搜索栏 -->
|
|
|
<div class="bg-card" style="margin-bottom: 18px;">
|
|
|
<el-form :inline="true" :model="formInline" class="demo-form-inline">
|
|
@@ -373,8 +373,9 @@ import { bmyDoctorRanking } from '@/api/excel'
|
|
|
qxxqData: {
|
|
|
radio: 2,
|
|
|
dep_id: '',
|
|
|
- level: ''
|
|
|
+ type: ''
|
|
|
},
|
|
|
+ qxPieDom: null,
|
|
|
tableData: [],
|
|
|
paginationData: {
|
|
|
page: 1,
|
|
@@ -511,7 +512,7 @@ import { bmyDoctorRanking } from '@/api/excel'
|
|
|
// 缺陷详情列表
|
|
|
toPage(row) {
|
|
|
const { start_time, end_time } = this.formInline
|
|
|
- this.$router.push({ name: 'EncoderErrors', query: { rule_id: row.error_rule, start_time, end_time }})
|
|
|
+ this.$router.push({ name: 'EncoderErrors', query: { rule_id: row.error_rule, start_time, end_time, ...this.qxxqData }})
|
|
|
},
|
|
|
// 全局筛选
|
|
|
async onGobalSearch() {
|
|
@@ -523,11 +524,11 @@ import { bmyDoctorRanking } from '@/api/excel'
|
|
|
},
|
|
|
// 获取缺陷数据
|
|
|
getQuexianData() {
|
|
|
- const { dep_id, level } = this.qxxqData
|
|
|
+ const { dep_id, type } = this.qxxqData
|
|
|
const { page, size } = this.paginationData
|
|
|
const params = {
|
|
|
dep_id,
|
|
|
- level,
|
|
|
+ type,
|
|
|
page,
|
|
|
page_size: size,
|
|
|
...this.formInline
|
|
@@ -653,7 +654,7 @@ import { bmyDoctorRanking } from '@/api/excel'
|
|
|
},
|
|
|
// 缺陷环图
|
|
|
qxxqPie() {
|
|
|
- this.tongjiDom = this.$echarts.init(
|
|
|
+ this.qxPieDom = this.$echarts.init(
|
|
|
document.getElementById('qxxq_pie')
|
|
|
)
|
|
|
const option = {
|
|
@@ -699,10 +700,10 @@ import { bmyDoctorRanking } from '@/api/excel'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
- this.tongjiDom.setOption(option)
|
|
|
+ this.qxPieDom.setOption(option)
|
|
|
// 窗口大小改变 重新渲染
|
|
|
window.addEventListener('resize', () => {
|
|
|
- this.tongjiDom.resize()
|
|
|
+ this.qxPieDom.resize()
|
|
|
})
|
|
|
},
|
|
|
qxxqPieUpdate() {
|
|
@@ -738,7 +739,7 @@ import { bmyDoctorRanking } from '@/api/excel'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
- this.tongjiDom.setOption(option)
|
|
|
+ this.qxPieDom.setOption(option)
|
|
|
},
|
|
|
// 分页
|
|
|
handleSizeChange(val) {
|