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