|
|
@ -365,7 +365,7 @@ const threeDimensionalCylindrical = (res, ids) => {
|
|
|
|
axisLabel: {
|
|
|
|
axisLabel: {
|
|
|
|
show: true,
|
|
|
|
show: true,
|
|
|
|
margin: 25,
|
|
|
|
margin: 25,
|
|
|
|
align: "center",
|
|
|
|
// align: "center",
|
|
|
|
textStyle: {
|
|
|
|
textStyle: {
|
|
|
|
fontSize: 14,
|
|
|
|
fontSize: 14,
|
|
|
|
color: "#A8A6AB",
|
|
|
|
color: "#A8A6AB",
|
|
|
@ -382,7 +382,7 @@ const threeDimensionalCylindrical = (res, ids) => {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
interval: 0,
|
|
|
|
interval: 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
yAxis: {
|
|
|
|
yAxis: {
|
|
|
|
splitLine: {
|
|
|
|
splitLine: {
|
|
|
@ -1169,9 +1169,22 @@ const bluePolygonHistogram = (res, ids) => {
|
|
|
|
//多个立体柱状图
|
|
|
|
//多个立体柱状图
|
|
|
|
const multipleThreeDimensionalCylindrical = (res, ids) => {
|
|
|
|
const multipleThreeDimensionalCylindrical = (res, ids) => {
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
const xValue = res.map(val => val.materialName?.split(',')[0] || ' ')
|
|
|
|
const value = []
|
|
|
|
const lineStoreAmount = res.map(val => val.lineStoreAmount) || []
|
|
|
|
res.forEach(e=>{
|
|
|
|
const hullStoreAmount = res.map(val => val.hullStoreAmount || '0')
|
|
|
|
if(!(value.includes(e.materialName))){
|
|
|
|
|
|
|
|
value.push(e.materialName)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const data = value.map(e => {
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
materialName:e,
|
|
|
|
|
|
|
|
lineStoreAmount:res.filter( val => val.materialName === e).filter(val => val.hullStoreAmount === 'L001')?.[0]?.lineStoreAmount || 0,
|
|
|
|
|
|
|
|
hullStoreAmount:res.filter( val => val.materialName === e).filter(val => val.hullStoreAmount === 'U001')?.[0]?.lineStoreAmount || 0
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const xValue = data.map(val => val.materialName)
|
|
|
|
|
|
|
|
const lineStoreAmount = data.map(val => val.lineStoreAmount)
|
|
|
|
|
|
|
|
const hullStoreAmount = data.map(val => val.hullStoreAmount)
|
|
|
|
let lineColor = "#406A92";
|
|
|
|
let lineColor = "#406A92";
|
|
|
|
let labelColor = "#fff";
|
|
|
|
let labelColor = "#fff";
|
|
|
|
let fontSize = "12";
|
|
|
|
let fontSize = "12";
|
|
|
@ -2138,7 +2151,7 @@ const equipmentFailure = (res, ids) => {
|
|
|
|
|
|
|
|
|
|
|
|
res.forEach(function (it, index) {
|
|
|
|
res.forEach(function (it, index) {
|
|
|
|
|
|
|
|
|
|
|
|
stationData.push(it.station);
|
|
|
|
stationData.push(it.name);
|
|
|
|
values.push(it.value);
|
|
|
|
values.push(it.value);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
let option = {
|
|
|
|
let option = {
|
|
|
|