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 = `