Merge pull request 'projects/mesxc-dy' (#265) from projects/mesxc-dy into projects/mesxc-test

Reviewed-on: #265
This commit is contained in:
朱菊兰 2024-03-22 14:15:25 +08:00
джерело 2a07a7de2f 6a558cbab5
коміт 083c9ef59a

@ -104,24 +104,24 @@ export default {
{ name: '故障时长', value: 580 }, { name: '故障时长', value: 580 },
], ],
}, },
{ // {
// // //
name: '', // name: '',
type: 'pie', // type: 'pie',
center: ['50%', '48%'], // center: ['50%', '48%'],
radius: ['60%', '75%'], // radius: ['60%', '75%'],
itemStyle: { // itemStyle: {
borderRadius: 10, // borderRadius: 10,
}, // },
label: { // label: {
show: false, // show: false,
}, // },
data: [ // data: [
//<========= // //<=========
{ name: '总', value: 3000 }, // { name: '', value: 3000 },
{ name: '', value: 1400 }, // { name: '', value: 1400 },
], // ],
}, // },
// { // {
// name: this.value.equipmentName || 'Default', // name: this.value.equipmentName || 'Default',
// type: 'pie', // type: 'pie',
@ -195,22 +195,22 @@ export default {
this.config.title.text = lineName; this.config.title.text = lineName;
this.config.title.subtext = equipmentName; this.config.title.subtext = equipmentName;
this.config.series[0].data = [ this.config.series[0].data = [
{ name: '工作时长', value: workTime }, { name: '有效时长', value: workTime },
{ name: '停机时长', value: stopTime }, { name: '关机时长', value: stopTime },
{ name: '故障时长', value: downTime }, { name: '中断时长', value: downTime }
];
this.config.series[1].data = [
{ name: '速度开动率', value: peEfficiency },
{ name: '', value: 100 },
// { name: '', value: peEfficiency },
// { name: '', value: Math.ceil(peEfficiency) - peEfficiency },
]; ];
// this.config.series[1].data = [
// { name: '', value: peEfficiency },
// // { name: '', value: 100 },
// // { name: '', value: peEfficiency },
// // { name: '', value: Math.ceil(peEfficiency) - peEfficiency },
// ];
// //
this.textData = { this.textData = {
workTime: +workTime.toFixed(2), workTime: +workTime?.toFixed(2),
stopTime: +stopTime.toFixed(2), stopTime: +stopTime?.toFixed(2),
downTime: +downTime.toFixed(2), downTime: +downTime?.toFixed(2),
peEfficiency: +peEfficiency.toFixed(2), // peEfficiency: +peEfficiency?.toFixed(2),
}; };
}, },
}, },