|
@@ -325,28 +325,28 @@
|
|
},
|
|
},
|
|
// 获取统计信息
|
|
// 获取统计信息
|
|
async getTongjiData() {
|
|
async getTongjiData() {
|
|
- await this.$axios_new.post('/api/bmy/qualityStatistics', this.formInline).then(res => {
|
|
|
|
- this.tongjiData = res.data
|
|
|
|
- })
|
|
|
|
- // this.tongjiData = {
|
|
|
|
- // "blSum": 1,
|
|
|
|
- // "dayAvg": 1,
|
|
|
|
- // "qxSum": 1,
|
|
|
|
- // "averageError": "100.00",
|
|
|
|
- // "averageScore": "99.00",
|
|
|
|
- // "minScore": 99,
|
|
|
|
- // "you_sum": 1,
|
|
|
|
- // "liang_sum": 0,
|
|
|
|
- // "zhong_sum": 0,
|
|
|
|
- // "cha_sum": 0,
|
|
|
|
- // "you_ratio": "100.00",
|
|
|
|
- // "liang_ratio": "0.00",
|
|
|
|
- // "zhong_ratio": "0.00",
|
|
|
|
- // "cha_ratio": "0.00",
|
|
|
|
- // "jbxx": 7,
|
|
|
|
- // "zlxx": 1,
|
|
|
|
- // "fyxx": 0
|
|
|
|
- // }
|
|
|
|
|
|
+ // await this.$axios_new.post('/api/bmy/qualityStatistics', this.formInline).then(res => {
|
|
|
|
+ // this.tongjiData = res.data
|
|
|
|
+ // })
|
|
|
|
+ this.tongjiData = {
|
|
|
|
+ "blSum": 1,
|
|
|
|
+ "dayAvg": 1,
|
|
|
|
+ "qxSum": 1,
|
|
|
|
+ "averageError": "100.00",
|
|
|
|
+ "averageScore": "99.00",
|
|
|
|
+ "minScore": 99,
|
|
|
|
+ "you_sum": 1,
|
|
|
|
+ "liang_sum": 0,
|
|
|
|
+ "zhong_sum": 0,
|
|
|
|
+ "cha_sum": 0,
|
|
|
|
+ "you_ratio": "100.00",
|
|
|
|
+ "liang_ratio": "0.00",
|
|
|
|
+ "zhong_ratio": "0.00",
|
|
|
|
+ "cha_ratio": "0.00",
|
|
|
|
+ "jbxx": 7,
|
|
|
|
+ "zlxx": 1,
|
|
|
|
+ "fyxx": 0
|
|
|
|
+ }
|
|
},
|
|
},
|
|
onToggleTongjiShow() {
|
|
onToggleTongjiShow() {
|
|
this.tongji_show = !this.tongji_show
|
|
this.tongji_show = !this.tongji_show
|
|
@@ -377,17 +377,20 @@
|
|
center: ['42%', '50%'],
|
|
center: ['42%', '50%'],
|
|
radius: ['60%', '80%'],
|
|
radius: ['60%', '80%'],
|
|
avoidLabelOverlap: true,
|
|
avoidLabelOverlap: true,
|
|
- startAngle: 120,
|
|
|
|
|
|
+ startAngle: 180,
|
|
label: {
|
|
label: {
|
|
show: true,
|
|
show: true,
|
|
formatter: '{b}: {c}'
|
|
formatter: '{b}: {c}'
|
|
},
|
|
},
|
|
labelLine: {
|
|
labelLine: {
|
|
- show: true
|
|
|
|
|
|
+ show: true,
|
|
|
|
+ length2: 40,
|
|
|
|
+ minTurnAngle: 120,
|
|
|
|
+ showAbove: true
|
|
},
|
|
},
|
|
data: [
|
|
data: [
|
|
{ value: this.tongjiData.blSum, name: '首页总病例' },
|
|
{ value: this.tongjiData.blSum, name: '首页总病例' },
|
|
- { value: this.tongjiData.qxSum, name: '缺陷总例数' },
|
|
|
|
|
|
+ { value: this.tongjiData.qxSum, name: '缺陷总例数' }
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
]
|