projects/mesxc-zjl #187

Merged
juzi merged 5 commits from projects/mesxc-zjl into projects/mesxc-test 2024-01-25 09:11:16 +08:00
Showing only changes of commit 4918008a47 - Show all commits

View File

@ -1,5 +1,5 @@
<template>
<div>
<div style="height: 370px;">
<NotMsg v-show="notMsg"/>
<div id="numRateChart" class="num-rate-chart" style="width:900px;height:420px;" v-show='!notMsg'></div>
</div>
@ -52,9 +52,11 @@ export default {
let outputNum = []
let passRate = []
this.productline && this.productline.length > 0 && this.productline.map(item => {
if ((item.lineName).includes('D')) {
xData.push(item.lineName)
outputNum.push(item.outputNum)
passRate.push(item.passRate?item.passRate*100:null)
}
})
if (
this.chart !== null &&
@ -65,7 +67,7 @@ export default {
}
this.chart = echarts.init(document.getElementById('numRateChart'));
var option = {
grid: { top: 82, right: 60, bottom: 20, left: 60 },
grid: { top: 82, right: 60, bottom: 20, left: 90 },
tooltip: {
trigger: "axis",
axisPointer: {
@ -146,7 +148,6 @@ export default {
color: "#fff",
fontSize: 12,
formatter: () =>{
console.log(value)
return value ? '{value} %': '-'
}
},