diff --git a/src/views/report/chipOEEBM/index.vue b/src/views/report/chipOEEBM/index.vue index ff02fc7..55ee913 100644 --- a/src/views/report/chipOEEBM/index.vue +++ b/src/views/report/chipOEEBM/index.vue @@ -2,6 +2,9 @@
+
+
+
4月芯片OEE
-
-
-
芯片OEE对标
diff --git a/src/views/report/components/bmLineBar.vue b/src/views/report/components/bmLineBar.vue index 81e4354..b1a425b 100644 --- a/src/views/report/components/bmLineBar.vue +++ b/src/views/report/components/bmLineBar.vue @@ -2,10 +2,14 @@
+ > +
+
@@ -47,7 +51,7 @@ export default { color: [], // color: ["#8EF0AB", "#63BDFF", "#288AFF"], grid: { - left: 100, + left: 70, right: 10, bottom: 30, top: 30, @@ -65,17 +69,41 @@ export default { for (var i = 0, l = params.length; i < l; i++) { res += "
" + - `` + + `${ + params[i].seriesType === "line" + ? '' + : `` + }` + `${params[i].seriesName}` + `${ params[i].name === "%" ? (params[i].value ? params[i].value.toFixed(2) : 0.0) + params[i].name - : params[i].value + : String(params[i].value).replace( + /\B(?=(\d{3})+(?!\d))/g, + "," + ) }`; } return res; }, + // formatter: function (params) { + // console.log(params); + // var res = `${params[0].axisValueLabel}`; + // for (var i = 0, l = params.length; i < l; i++) { + // res += + // "
" + + // `` + + // `${params[i].seriesName}` + + // `${ + // params[i].name === "%" + // ? (params[i].value ? params[i].value.toFixed(2) : 0.0) + + // params[i].name + // : params[i].value + // }`; + // } + // return res; + // }, }, xAxis: { type: "category", @@ -181,7 +209,9 @@ export default {