From c469ca5ebe173456e75960eef1f4ff93f9dc044c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Fri, 19 Jul 2024 15:30:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/ChartContainer.vue | 5 +++-- .../efficiency/components/sub/bar/BarChartChipOEE.vue | 8 ++++---- .../efficiency/components/sub/bar/BarChartChipTrans.vue | 8 ++++---- src/views/dashboard/charts/RightChartBase.vue | 9 +++++---- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/views/components/ChartContainer.vue b/src/views/components/ChartContainer.vue index 36fd732..8c9964f 100644 --- a/src/views/components/ChartContainer.vue +++ b/src/views/components/ChartContainer.vue @@ -1,10 +1,11 @@ + @@ -81,13 +81,13 @@ export default { res += "
" + `${params[i].seriesType === "line" - ? ` - + ? ` + ${params[i].seriesName}` : ` ${params[i].seriesName}` }` + - `${params[i].value ? params[i].value + '%' : 0 + '%'}`; + `${params[i].value ? params[i].value + '%' : 0 + '%'}`; } const htmlContent = `
diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue index 88e2671..c0a0078 100644 --- a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue +++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue @@ -1,7 +1,7 @@ @@ -81,13 +81,13 @@ export default { res += "
" + `${params[i].seriesType === "line" - ? ` - + ? ` + ${params[i].seriesName}` : ` ${params[i].seriesName}` }` + - `${params[i].value ? params[i].value + '%' : 0 + '%'}`; + `${params[i].value ? params[i].value + '%' : 0 + '%'}`; } const htmlContent = `
diff --git a/src/views/dashboard/charts/RightChartBase.vue b/src/views/dashboard/charts/RightChartBase.vue index 850bdb2..96f7ab0 100644 --- a/src/views/dashboard/charts/RightChartBase.vue +++ b/src/views/dashboard/charts/RightChartBase.vue @@ -1,7 +1,7 @@ @@ -70,6 +70,7 @@ export default { color: "rgba(237,237,237,0.5)", }, }, + confine:true, backgroundColor: 'rgba(50,50,50,0)', // tooltip默认背景为白色,手动置为透明 extraCssText: 'padding:0;border-width:0', formatter: params => { @@ -81,13 +82,13 @@ export default { res += "
" + `${params[i].seriesType === "line" - ? ` - + ? ` + ${params[i].seriesName}` : ` ${params[i].seriesName}` }` + - `${params[i].value ? params[i].value : 0 }`; + `${params[i].value ? params[i].value : 0 }`; } const htmlContent = `