diff --git a/src/views/copilot/components/BarChartBase.vue b/src/views/copilot/components/BarChartBase.vue
index 633ad01..f18bc4e 100644
--- a/src/views/copilot/components/BarChartBase.vue
+++ b/src/views/copilot/components/BarChartBase.vue
@@ -70,22 +70,26 @@ export default {
color: "rgba(237,237,237,0.5)",
},
},
- extraCssText: 'box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.38); border- radius: 4px;opacity: 0.6;backdrop- filter: blur(6px);',
- backgroundColor: '#001829',
- borderColor: '#001829',
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
formatter: params => {
- console.log('params', params)
- var res = `${params[0].axisValueLabel}`;
+ var res = `${params[0].axisValueLabel}`;
for (var i = 0, l = params.length; i < l; i++) {
let color = Object.prototype.toString.call(params[i].color) == "[object String]" ? params[i].color : params[i].color.colorStops ? params[i].color.colorStops[0].color : ''
// console.log(item.color, color);
res +=
"
" +
- `` +
- `${params[i].seriesName}` +
- `${params[i].value ? params[i].value + '片' : 0 + '片'}`;
+ `` +
+ `${params[i].seriesName}` +
+ `${params[i].value ? params[i].value : 0}`;
}
- return res;
+ const htmlContent = `
+
+ ${res}
+
+ `;
+
+ return htmlContent;
},
},
xAxis: {
@@ -98,24 +102,24 @@ export default {
},
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
data: this.xAxis,
},
yAxis: {
name: "单位/片",
nameTextStyle: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
align: "right",
},
axisTick: {
show: false,
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
axisLine: {
show: true,
@@ -133,7 +137,7 @@ export default {
{
name: "", // this.series[0].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
itemStyle: {
borderRadius: [10, 10, 0, 0],
color: {
@@ -168,7 +172,7 @@ export default {
{
name: "", // this.series[1].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
// tooltip: {
// valueFormatter: function (value) {
// return value + " ml";
@@ -214,18 +218,18 @@ export default {
},
isFullscreen(val) {
this.options.series.map((item) => {
- item.barWidth = val ? 18 : 12;
+ item.barWidth = val ? 18 : 16;
});
- this.options.xAxis.axisLabel.fontSize = val ? 18 : 12;
- this.options.yAxis.axisLabel.fontSize = val ? 18 : 12;
- this.options.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ this.options.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ this.options.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ this.options.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
this.initChart(this.options);
// this.actualOptions.series.map((item) => {
- // item.barWidth = val ? 18 : 12;
+ // item.barWidth = val ? 18 : 16;
// });
- // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
// this.initChart(this.actualOptions);
this.canvasReset()
},
diff --git a/src/views/copilot/components/ftoBarChartBase.vue b/src/views/copilot/components/ftoBarChartBase.vue
index ccf405e..f7fb8a0 100644
--- a/src/views/copilot/components/ftoBarChartBase.vue
+++ b/src/views/copilot/components/ftoBarChartBase.vue
@@ -1,7 +1,7 @@
@@ -71,22 +71,26 @@ export default {
color: "rgba(237,237,237,0.5)",
},
},
- extraCssText: 'box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.38); border- radius: 4px;opacity: 0.6;backdrop- filter: blur(6px);',
- backgroundColor: '#001829',
- borderColor: '#001829',
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
formatter: params => {
- console.log('params', params)
- var res = `${params[0].axisValueLabel}`;
+ var res = `${params[0].axisValueLabel}`;
for (var i = 0, l = params.length; i < l; i++) {
let color = Object.prototype.toString.call(params[i].color) == "[object String]" ? params[i].color : params[i].color.colorStops ? params[i].color.colorStops[0].color : ''
// console.log(item.color, color);
res +=
"
" +
- `` +
- `${params[i].seriesName}` +
- `${params[i].value ? params[i].value + '片' : 0 + '片'}`;
+ `` +
+ `${params[i].seriesName}` +
+ `${params[i].value ? params[i].value : 0 }`;
}
- return res;
+ const htmlContent = `
+
+ ${res}
+
+ `;
+
+ return htmlContent;
},
},
xAxis: {
@@ -99,24 +103,24 @@ export default {
},
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
data: this.xAxis,
},
yAxis: {
name: "单位/片",
nameTextStyle: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
align: "right",
},
axisTick: {
show: false,
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
axisLine: {
show: true,
@@ -134,7 +138,7 @@ export default {
{
name: "", // this.series[0].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
itemStyle: {
borderRadius: [10, 10, 0, 0],
color: {
@@ -169,7 +173,7 @@ export default {
{
name: "", // this.series[1].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
// tooltip: {
// valueFormatter: function (value) {
// return value + " ml";
@@ -215,18 +219,18 @@ export default {
},
isFullscreen(val) {
this.options.series.map((item) => {
- item.barWidth = val ? 18 : 12;
+ item.barWidth = val ? 18 : 16;
});
- this.options.xAxis.axisLabel.fontSize = val ? 18 : 12;
- this.options.yAxis.axisLabel.fontSize = val ? 18 : 12;
- this.options.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ this.options.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ this.options.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ this.options.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
this.initChart(this.options);
// this.actualOptions.series.map((item) => {
- // item.barWidth = val ? 18 : 12;
+ // item.barWidth = val ? 18 : 16;
// });
- // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
// this.initChart(this.actualOptions);
this.canvasReset()
},
diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue
index 0ff569d..8c0212e 100644
--- a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue
+++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue
@@ -1,7 +1,7 @@
@@ -70,12 +70,11 @@ export default {
color: "rgba(237,237,237,0.5)",
},
},
- extraCssText: 'box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.38); border- radius: 4px;opacity: 0.6;backdrop- filter: blur(6px);',
- backgroundColor: '#001829',
- borderColor: '#001829',
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
formatter: params => {
console.log('params', params)
- var res = `${params[0].axisValueLabel}`;
+ var res = `${params[0].axisValueLabel}`;
for (var i = 0, l = params.length; i < l; i++) {
let color = Object.prototype.toString.call(params[i].color) == "[object String]" ? params[i].color : params[i].color.colorStops ? params[i].color.colorStops[0].color : ''
// console.log(item.color, color);
@@ -85,10 +84,16 @@ export default {
? ''
: ``
}` +
- `${params[i].seriesName}` +
- `${params[i].value ? params[i].value + '%' : 0 + '%'}`;
+ `${params[i].seriesName}` +
+ `${params[i].value ? params[i].value + '%' : 0 + '%'}`;
}
- return res;
+ const htmlContent = `
+
+ ${res}
+
+ `;
+
+ return htmlContent;
},
},
xAxis: {
@@ -101,23 +106,23 @@ export default {
},
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
data: this.xAxis,
},
yAxis: {
name: "单位/%",
nameTextStyle: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
axisTick: {
show: false,
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
axisLine: {
show: true,
@@ -135,7 +140,7 @@ export default {
{
name: "", // this.series[0].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
itemStyle: {
borderRadius: [10, 10, 0, 0],
color: {
@@ -170,7 +175,7 @@ export default {
{
name: "", // this.series[1].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
// tooltip: {
// valueFormatter: function (value) {
// return value + " ml";
@@ -250,11 +255,11 @@ export default {
/** 全屏状态切换时,对柱子粗细和字体大小进行相应调整 */
isFullscreen(val) {
// this.actualOptions.series.map((item) => {
- // item.barWidth = val ? 18 : 12;
+ // item.barWidth = val ? 18 : 16;
// });
- // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
// if (val === false && this.isOpen === true) {
// console.log(val)
// this.width = 97 + '%'
@@ -264,11 +269,11 @@ export default {
// this.canvasReset()
// }
// this.actualOptions.series.map((item) => {
- // item.barWidth = val ? 18 : 12;
+ // item.barWidth = val ? 18 : 16;
// });
- // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
this.initChart(this.options)
this.canvasReset()
},
diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue
index c048f9f..69bd295 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 @@
@@ -70,25 +70,30 @@ export default {
color: "rgba(237,237,237,0.5)",
},
},
- extraCssText: 'box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.38); border- radius: 4px;opacity: 0.6;backdrop- filter: blur(6px);',
- backgroundColor: '#001829',
- borderColor: '#001829',
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
formatter: params => {
console.log('params', params)
- var res = `${params[0].axisValueLabel}`;
+ var res = `${params[0].axisValueLabel}`;
for (var i = 0, l = params.length; i < l; i++) {
let color = Object.prototype.toString.call(params[i].color) == "[object String]" ? params[i].color : params[i].color.colorStops ? params[i].color.colorStops[0].color : ''
// console.log(item.color, color);
res +=
"
" +
- `${params[i].seriesType === "line"
- ? ''
- : ``
- }` +
- `${params[i].seriesName}` +
- `${params[i].value ? params[i].value + '%' : 0 + '%'}`;
+ `${params[i].seriesType === "line"
+ ? ''
+ : ``
+ }` +
+ `${params[i].seriesName}` +
+ `${params[i].value ? params[i].value + '%' : 0 + '%'}`;
}
- return res;
+ const htmlContent = `
+
+ ${res}
+
+ `;
+
+ return htmlContent;
},
},
xAxis: {
@@ -101,23 +106,23 @@ export default {
},
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
data: this.xAxis,
},
yAxis: {
name: "单位/%",
nameTextStyle: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
axisTick: {
show: false,
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
axisLine: {
show: true,
@@ -135,7 +140,7 @@ export default {
{
name: "", // this.series[0].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
itemStyle: {
borderRadius: [10, 10, 0, 0],
color: {
@@ -170,7 +175,7 @@ export default {
{
name: "", // this.series[1].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
// tooltip: {
// valueFormatter: function (value) {
// return value + " ml";
@@ -250,11 +255,11 @@ export default {
/** 全屏状态切换时,对柱子粗细和字体大小进行相应调整 */
isFullscreen(val) {
// this.actualOptions.series.map((item) => {
- // item.barWidth = val ? 18 : 12;
+ // item.barWidth = val ? 18 : 16;
// });
- // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
// if (val === false && this.isOpen === true) {
// console.log(val)
// this.width = 97 + '%'
@@ -264,11 +269,11 @@ export default {
// this.canvasReset()
// }
// this.actualOptions.series.map((item) => {
- // item.barWidth = val ? 18 : 12;
+ // item.barWidth = val ? 18 : 16;
// });
- // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
this.initChart(this.options)
this.canvasReset()
},
diff --git a/src/views/copilot/efficiency/options/chipOptions.js b/src/views/copilot/efficiency/options/chipOptions.js
index 9ef3b4f..a3f8408 100644
--- a/src/views/copilot/efficiency/options/chipOptions.js
+++ b/src/views/copilot/efficiency/options/chipOptions.js
@@ -24,18 +24,18 @@
title: {
text: titleValue,
left: "48%",
- top: "37%",
+ top: "middle",
textAlign: "center",
textStyle: {
fontWeight: 600,
fontSize: 36,
- color: "#fffd",
+ color: "rgba(223,241,254,.8)",
},
subtext: `\u2002${yesterday + '日良率'}\u2002`,
subtextStyle: {
fontSize: 16,
fontWeight: 100,
- color: "#fffd",
+ color: "rgba(255,255,255,.7)",
align: "right",
},
},
@@ -67,8 +67,15 @@
value: currentSum,
name: currentName,
tooltip: {
- formatter: `${currentName}` +
- `${currentSum}`
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
+ formatter:`
+
+
+ ${currentName}
+ ${currentSum}
+
+ `
},
selected: false,
itemStyle: {
@@ -93,8 +100,15 @@
value:(targetSum - currentSum) === 0 ? 1 : (targetSum - currentSum),
name: currentName,
tooltip: {
- formatter: `${currentName}` +
- `${currentSum}`
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
+ formatter:`
+
+
+ ${currentName}
+ ${currentSum}
+
+ `
},
itemStyle: { color: "transparent" },
label: { show: false },
@@ -118,8 +132,15 @@
value: previousSum,
name: preName,
tooltip: {
- formatter: `${preName}` +
- `${previousSum}`
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
+ formatter:`
+
+
+ ${preName}
+ ${previousSum}
+
+ `
},
selected: false,
itemStyle: {
@@ -144,8 +165,15 @@
value:previousSum === 0 ? 1 : 0,
name: preName,
tooltip: {
- formatter: `${preName}` +
- `${previousSum}`
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
+ formatter:`
+
+
+ ${preName}
+ ${previousSum}
+
+ `
},
itemStyle: { color: "transparent" },
label: { show: false },
diff --git a/src/views/copilot/factoryData/components/BarChartBase.vue b/src/views/copilot/factoryData/components/BarChartBase.vue
index 76c4f9f..8bf1db4 100644
--- a/src/views/copilot/factoryData/components/BarChartBase.vue
+++ b/src/views/copilot/factoryData/components/BarChartBase.vue
@@ -55,7 +55,7 @@ export default {
options: {
color: ["#FFD160", "#2760FF", "#12FFF5"],
grid: {
- left: "6%",
+ left: "9%",
right: "3%",
bottom: "15%",
top: "15%",
@@ -68,21 +68,26 @@ export default {
color: "rgba(237,237,237,0.5)",
},
},
- extraCssText: 'box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.38); border- radius: 4px;opacity: 0.6;backdrop- filter: blur(6px);',
- backgroundColor: '#001829',
- borderColor: '#001829',
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
formatter: params => {
- console.log('params', params)
var res = ``;
for (var i = 0, l = params.length; i < l; i++) {
let color = Object.prototype.toString.call(params[i].color) == "[object String]" ? params[i].color : params[i].color.colorStops ? params[i].color.colorStops[0].color : ''
// console.log(item.color, color);
res +=
- `` +
- `${params[0].axisValueLabel}` +
- `${params[i].value ? params[i].value + '片' : 0 + '片'}`;
+ `` +
+ `${params[0].axisValueLabel}` +
+ `${params[i].value ? params[i].value : 0}`;
}
- return res;
+ const htmlContent = `
+
+ ${res}
+
+ `;
+
+ return htmlContent;
+ // return res;
},
},
xAxis: {
@@ -97,8 +102,8 @@ export default {
axisLabel: {
interval: 0,//设置横坐标为斜
rotate:45,
- color: "rgba(255, 255, 255, 0.7)",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
// formatter: function (value) {
// console.log(value);
@@ -119,16 +124,16 @@ export default {
name: "单位/片",
position: 'left',
nameTextStyle: {
- color: "rgba(255, 255, 255, 0.7)",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
align: "right",
},
axisTick: {
show: false,
},
axisLabel: {
- color: "rgba(255, 255, 255, 0.7)",
- fontSize: 10,
+ color: "rgba(223,241,254,.8)",
+ fontSize:16,
},
axisLine: {
show: true,
@@ -196,7 +201,7 @@ export default {
// { offset: 1, color: "#12FFF5" + "00" },
// ]),
// },
- barWidth: 12,
+ barWidth: 16,
itemStyle: {
borderRadius: [10, 10, 0, 0],
color: {
@@ -240,11 +245,11 @@ export default {
/** 全屏状态切换时,对柱子粗细和字体大小进行相应调整 */
// isFullscreen(val) {
// this.actualOptions.series.map((item) => {
- // item.barWidth = val ? 18 : 12;
+ // item.barWidth = val ? 18 : 16;
// });
- // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
// this.initOptions(this.actualOptions);
// },
// series(val) {
diff --git a/src/views/copilot/factoryData/components/BarChartChipOEE.vue b/src/views/copilot/factoryData/components/BarChartChipOEE.vue
index de0191e..b19919a 100644
--- a/src/views/copilot/factoryData/components/BarChartChipOEE.vue
+++ b/src/views/copilot/factoryData/components/BarChartChipOEE.vue
@@ -1,7 +1,7 @@
@@ -9,7 +9,7 @@
{{ item.label }}
+ :style="{ fontSize: isFullscreen ? '0.72vw' : '0.7vw' }">{{ item.label }}
@@ -56,7 +56,7 @@ export default {
actualOptions: null,
options: {
grid: {
- left: "5%",
+ left: "8%",
right: "0%",
bottom: "3%",
top: "15%",
@@ -97,23 +97,28 @@ export default {
color: "rgba(237,237,237,0.5)",
},
},
- extraCssText: 'box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.38); border- radius: 4px;opacity: 0.6;backdrop- filter: blur(6px);',
- backgroundColor: '#001829',
- borderColor: '#001829',
- formatter: params => {
- console.log('params', params)
- var res = `${params[0].axisValueLabel}`;
- for (var i = 0, l = params.length; i < l; i++) {
- let color = Object.prototype.toString.call(params[i].color) == "[object String]" ? params[i].color : params[i].color.colorStops ? params[i].color.colorStops[0].color : ''
- // console.log(item.color, color);
- res +=
- "
" +
- `` +
- `${params[i].seriesName}` +
- `${params[i].value ? params[i].value + '片' : 0 + '片'}`;
- }
- return res;
- },
+ backgroundColor: 'rgba(0,0,0,0)', // tooltip默认背景为白色,手动置为透明
+ extraCssText: 'padding:0;border-width:0',
+ formatter: params => {
+ var res = `${params[0].axisValueLabel}`;
+ for (var i = 0, l = params.length; i < l; i++) {
+ let color = Object.prototype.toString.call(params[i].color) == "[object String]" ? params[i].color : params[i].color.colorStops ? params[i].color.colorStops[0].color : ''
+ // console.log(item.color, color);
+ res +=
+ "
" +
+ `` +
+ `${params[i].seriesName}` +
+ `${params[i].value ? params[i].value : 0}`;
+ }
+ const htmlContent = `
+
+ ${res}
+
+ `;
+
+ return htmlContent;
+ // return res;
+ },
},
xAxis: {
axisTick: {
@@ -125,8 +130,8 @@ export default {
},
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
data: this.xAxis,
},
@@ -134,16 +139,16 @@ export default {
name: "单位/片",
position: 'left',
nameTextStyle: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
align: "right",
},
axisTick: {
show: false,
},
axisLabel: {
- color: "#fff",
- fontSize: 12,
+ color: "rgba(223,241,254,.8)",
+ fontSize: 16,
},
axisLine: {
show: true,
@@ -161,7 +166,7 @@ export default {
{
name: "FTO", // this.series[0].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
itemStyle: {
borderRadius: [10, 10, 0, 0],
color: {
@@ -196,7 +201,7 @@ export default {
{
name: "", // this.series[1].name,
type: "bar",
- barWidth: 12,
+ barWidth: 16,
// tooltip: {
// valueFormatter: function (value) {
// return value + " ml";
@@ -228,7 +233,7 @@ export default {
{
name: "", // "2024年目标值",
type: "line",
- barWidth: 12,
+ barWidth: 16,
itemStyle: {
borderRadius: [10, 10, 0, 0],
color:'#f3c000'
@@ -255,11 +260,11 @@ export default {
/** 全屏状态切换时,对柱子粗细和字体大小进行相应调整 */
isFullscreen(val) {
this.options.series.map((item) => {
- item.barWidth = val ? 18 : 12;
+ item.barWidth = val ? 18 : 16;
});
- this.options.xAxis.axisLabel.fontSize = val ? 18 : 12;
- this.options.yAxis.axisLabel.fontSize = val ? 18 : 12;
- this.options.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ this.options.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ this.options.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ this.options.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
// if (val === false && this.isOpen === true) {
// console.log(val)
// this.width = 97 + '%'
@@ -269,11 +274,11 @@ export default {
// this.canvasReset()
// }
// this.actualOptions.series.map((item) => {
- // item.barWidth = val ? 18 : 12;
+ // item.barWidth = val ? 18 : 16;
// });
- // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 12;
- // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 12;
+ // this.actualOptions.xAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.axisLabel.fontSize = val ? 18 : 16;
+ // this.actualOptions.yAxis.nameTextStyle.fontSize = val ? 18 : 16;
this.initChart(this.options)
this.canvasReset()
},
@@ -350,7 +355,7 @@ export default {
.legend-item {
position: relative;
- // font-size: 12px;
+ font-size: 1.2vw;
margin-right:1.2vw;
color: #DFF1FE;
&::before {
diff --git a/src/views/copilot/factoryData/components/Order.vue b/src/views/copilot/factoryData/components/Order.vue
index b5ad1e7..3b37f8d 100644
--- a/src/views/copilot/factoryData/components/Order.vue
+++ b/src/views/copilot/factoryData/components/Order.vue
@@ -1,7 +1,8 @@
-
+
@@ -12,8 +13,7 @@
$emit('update:type', i)" />
-
+
@@ -40,7 +40,7 @@ export default {
evenRowBGC: "rgba(rgba(2, 13, 45, 0.18)",
data: [],
rowNum: 12,
- fontSize:14,
+ fontSize:16,
waitTime: 3000,
columnWidth: [150],
align: ["left"],
@@ -100,20 +100,20 @@ export default {
let arr = [];
// arr.push(i + 1);
arr.push(
- `${
+ `${
this.prodOrder[i].workOrderNumber || ""
}`,
- `${this.prodOrder[i].orderStatus === 1 ? '未开始' : this.prodOrder[i].orderStatus === 2 ? '进行中' : '已完成' || ""
+ `${this.prodOrder[i].orderStatus === 1 ? '未开始' : this.prodOrder[i].orderStatus === 2 ? '进行中' : '已完成' || ""
}`,
- `${this.prodOrder[i].plannedInvestment || ""
+ `${this.prodOrder[i].plannedInvestment || ""
}`,
- `${this.prodOrder[i].actualInvestment || ""
+ `${this.prodOrder[i].actualInvestment || ""
}`,
- `${this.prodOrder[i].targetProduction || ""
+ `${this.prodOrder[i].targetProduction || ""
}`,
- `${this.prodOrder[i].actualProduction || ""
+ `${this.prodOrder[i].actualProduction || ""
}`,
- `${this.prodOrder[i].productionProgress
+ `${this.prodOrder[i].productionProgress
? this.prodOrder[i].productionProgress.toFixed(2) * 100 + "%"
: "0%"
}
diff --git a/src/views/copilot/factoryData/components/chartButton.vue b/src/views/copilot/factoryData/components/chartButton.vue
index a2c4b1e..8ad2b23 100644
--- a/src/views/copilot/factoryData/components/chartButton.vue
+++ b/src/views/copilot/factoryData/components/chartButton.vue
@@ -1,7 +1,7 @@
@@ -59,7 +59,7 @@ button {
font-size: 18px; */
font-family: PingFangSC, PingFang SC;
font-weight: 400;
- font-size: 12px;
+ font-size: 14px;
color: #FFFFFF;
line-height: 22px;
letter-spacing: 5px;
@@ -91,7 +91,7 @@ button {
font-size: 18px; */
font-family: PingFangSC, PingFang SC;
font-weight: 400;
- font-size: 12px;
+ font-size: 14px;
color: #FFFFFF;
line-height: 22px;
letter-spacing: 5px;
diff --git a/src/views/copilot/yield/components/sub/ring/DoubleRingChart.vue b/src/views/copilot/yield/components/sub/ring/DoubleRingChart.vue
index fca8d3b..c9b9fdc 100644
--- a/src/views/copilot/yield/components/sub/ring/DoubleRingChart.vue
+++ b/src/views/copilot/yield/components/sub/ring/DoubleRingChart.vue
@@ -1,7 +1,7 @@
@@ -165,10 +165,15 @@ export default {
subtitle =
this.period == "日" ? `${yesterday}日累计完成值` : this.period == "周" ? `本周累计完成值` : this.period == "月" ? `${month}月累计完成值` : `${year}年累计完成值`;
console.log('titleValue', items)
+ let titleSize = fontSize(0.35)
+ let subtitleSize = fontSize(0.14)
+
// console.log(this.valueTuple[2]- this.valueTuple[1])
return getOptions({
titleValue,
subtitle,
+ titleSize,
+ subtitleSize,
currentName: items[0].label,
preName: items[1].label,
previousSum: this.valueTuple[0],
@@ -219,7 +224,12 @@ export default {
// },
},
};
-
+function fontSize(res){
+ let clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
+ if (!clientWidth) return;
+ let fontSize = 100 * (clientWidth / 1920);
+ return res * fontSize;
+}
function calculateItems(period, valueTuple, than) {
console.log('valueTuple', valueTuple);
let items = [];
@@ -297,7 +307,7 @@ function calculateItems(period, valueTuple, than) {