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 1/2] =?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 = `
From 8ecf281f0821a3f3e95435947f145622682c1840 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 16:46:51 +0800 Subject: [PATCH 2/2] =?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/copilot/components/BarChartBase.vue | 2 +- src/views/copilot/components/Container.vue | 5 +++-- src/views/copilot/components/button.vue | 4 ++-- src/views/copilot/components/efficiencyLeftContainer.vue | 7 ++++--- src/views/copilot/components/efficiencyRightContainer.vue | 5 +++-- src/views/copilot/components/ftoBarChartBase.vue | 4 ++-- src/views/copilot/components/leftContainer.vue | 7 ++++--- src/views/copilot/components/rightContainer.vue | 5 +++-- src/views/copilot/components/twoContainer.vue | 7 ++++--- .../efficiency/components/sub/bar/BarChartChipOEE.vue | 4 ++-- .../efficiency/components/sub/bar/BarChartChipTrans.vue | 4 ++-- src/views/copilot/factoryData/components/leftContainer.vue | 7 ++++--- .../copilot/factoryData/components/rightContainer.vue | 5 +++-- .../copilot/yield/components/sub/ring/DoubleRingChart.vue | 4 +++- 14 files changed, 40 insertions(+), 30 deletions(-) diff --git a/src/views/copilot/components/BarChartBase.vue b/src/views/copilot/components/BarChartBase.vue index f18bc4e..3cfb008 100644 --- a/src/views/copilot/components/BarChartBase.vue +++ b/src/views/copilot/components/BarChartBase.vue @@ -9,7 +9,7 @@
{{ item.label }} + :style="{ fontSize: isFullscreen ? '0.72vw' : '0.7vw' }">{{ item.label }}
diff --git a/src/views/copilot/components/Container.vue b/src/views/copilot/components/Container.vue index 5787d75..70e28de 100644 --- a/src/views/copilot/components/Container.vue +++ b/src/views/copilot/components/Container.vue @@ -73,6 +73,7 @@ export default {