Merge remote-tracking branch 'origin/master'

master
wangh 2 years ago
commit 83496721e0

@ -264,7 +264,7 @@ body.FoamerScada {
body.Foamer2 { body.Foamer2 {
height: auto; height: auto;
width: auto; width: auto;
background: url(../img/foamer2.jpg) no-repeat center fixed; background: url(../img/foamer21.jpg) no-repeat center fixed;
-webkit-background-size: cover; -webkit-background-size: cover;
-moz-background-size: cover; -moz-background-size: cover;
-o-background-size: cover; -o-background-size: cover;

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

@ -1157,7 +1157,8 @@ const lineChartTwo = function (data, id, unit = '') {
}, },
textStyle: { textStyle: {
fontSize: 0.75 * vw, fontSize: 0.75 * vw,
color: () => {}, color: () => {
},
}, },
}, },
xAxis: { xAxis: {
@ -1674,6 +1675,36 @@ const verticalBarChart = function (data, id, unit = '次') {
// 多个垂直柱状图 // 多个垂直柱状图
const multipleVerticalBarChart1 = function (data, id) { const multipleVerticalBarChart1 = function (data, id) {
let charts = echarts.init(id); let charts = echarts.init(id);
let num1 = data.yDataOne.slice(0,4)
let num2 = data.yDataTwo.slice(0,4)
let num3 = data.yDataThree.slice(0,4)
num1 = num1.map(e => {
if (e > 14) {
return 14
} else if (e < 10) {
return 10
} else {
return e
}
})
num2 = num2.map(e => {
if (e > 14) {
return 14
} else if (e < 10) {
return 10
} else {
return e
}
})
num3 = num3.map(e => {
if (e > 14) {
return 14
} else if (e < 10) {
return 10
} else {
return e
}
})
if (!data) { if (!data) {
data = { data = {
xName: [ xName: [
@ -1703,20 +1734,6 @@ const multipleVerticalBarChart1 = function (data, id) {
}, },
}, },
}, },
// trigger: "axis",
// formatter: `{b}<br />{a0}: {c0}<br />{a1}: {c1}`,
// axisPointer: {
// type: "shadow",
// label: {
// backgroundColor: "#6a7985",
// },
// },
// textStyle: {
// color: "#fff",
// fontStyle: "normal",
// fontFamily: "微软雅黑",
// fontSize: 12,
// },
}, },
grid: { grid: {
left: "1%", left: "1%",
@ -1745,7 +1762,7 @@ const multipleVerticalBarChart1 = function (data, id) {
{ {
type: "category", type: "category",
boundaryGap: true, //坐标轴两边留白 boundaryGap: true, //坐标轴两边留白
data: data.xName, data: ['A1', 'A2', 'A3', 'A4'],
axisLabel: { axisLabel: {
show: true, show: true,
color: '#fff' color: '#fff'
@ -2935,6 +2952,7 @@ const multipleBrokenLineAreaDiagram1 = (data, ids) => {
dataZoom: [], dataZoom: [],
xAxis: [ xAxis: [
{ {
show: false,
type: "category", type: "category",
boundaryGap: false, boundaryGap: false,
axisLine: { axisLine: {
@ -2956,8 +2974,8 @@ const multipleBrokenLineAreaDiagram1 = (data, ids) => {
axisTick: { axisTick: {
show: false, show: false,
}, },
max: max + 0.5, max: 24,
min: min - 1, min: 18,
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: "#57617B", color: "#57617B",

@ -21,6 +21,7 @@
.hide-scrollbar .autoscroll-table td:nth-child(6n + 2) { .hide-scrollbar .autoscroll-table td:nth-child(6n + 2) {
text-align: left; text-align: left;
} }
.mid { .mid {
background: url(../img/mid.png) no-repeat; background: url(../img/mid.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
@ -30,6 +31,7 @@
width: 91%; width: 91%;
height: 20%; height: 20%;
} }
#top-right { #top-right {
position: absolute; position: absolute;
width: 23.8%; width: 23.8%;

Loading…
Cancel
Save