|
|
@ -1191,7 +1191,6 @@ const bluePolygonHistogram = (res, ids) => {
|
|
|
|
//多个立体柱状图
|
|
|
|
//多个立体柱状图
|
|
|
|
const multipleThreeDimensionalCylindrical = (res, ids) => {
|
|
|
|
const multipleThreeDimensionalCylindrical = (res, ids) => {
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
console.log(res);
|
|
|
|
|
|
|
|
const xValue = res.map(val => val.materialName)
|
|
|
|
const xValue = res.map(val => val.materialName)
|
|
|
|
const lineStoreAmount = res.map(val => val.lineStoreAmount)
|
|
|
|
const lineStoreAmount = res.map(val => val.lineStoreAmount)
|
|
|
|
const hullStoreAmount = res.map(val => val.hullStoreAmount)
|
|
|
|
const hullStoreAmount = res.map(val => val.hullStoreAmount)
|
|
|
@ -1980,10 +1979,8 @@ const inventory = (res, ids) => {
|
|
|
|
//loss
|
|
|
|
//loss
|
|
|
|
const loss = (res, ids) => {
|
|
|
|
const loss = (res, ids) => {
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
|
|
|
|
const xValue = res.map(val => val.name)
|
|
|
|
let xAxisData = [];
|
|
|
|
const yValue = res.map(val => val.value)
|
|
|
|
let seriesData1 = [];
|
|
|
|
|
|
|
|
let sum = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let barTopColor = [
|
|
|
|
let barTopColor = [
|
|
|
|
"#55F675",
|
|
|
|
"#55F675",
|
|
|
@ -1991,29 +1988,7 @@ const loss = (res, ids) => {
|
|
|
|
let barBottomColor = [
|
|
|
|
let barBottomColor = [
|
|
|
|
"#55F675",
|
|
|
|
"#55F675",
|
|
|
|
];
|
|
|
|
];
|
|
|
|
let Res =
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
datas:res.length > 0 ? res : [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '>30分钟',
|
|
|
|
|
|
|
|
value: 2
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '3-10分钟',
|
|
|
|
|
|
|
|
value: 6
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
name: '0-3分钟',
|
|
|
|
|
|
|
|
value: 9
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Res.datas.forEach((item) => {
|
|
|
|
|
|
|
|
xAxisData.push(item.name);
|
|
|
|
|
|
|
|
seriesData1.push(item.value);
|
|
|
|
|
|
|
|
sum += item.value;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
let option = {
|
|
|
|
let option = {
|
|
|
|
|
|
|
|
|
|
|
|
grid: {
|
|
|
|
grid: {
|
|
|
@ -2025,7 +2000,7 @@ const loss = (res, ids) => {
|
|
|
|
axisTick: {
|
|
|
|
axisTick: {
|
|
|
|
show: false,
|
|
|
|
show: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data: xAxisData,
|
|
|
|
data: xValue,
|
|
|
|
axisLine: {
|
|
|
|
axisLine: {
|
|
|
|
show: true,
|
|
|
|
show: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -2103,7 +2078,7 @@ const loss = (res, ids) => {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
symbolPosition: "end",
|
|
|
|
symbolPosition: "end",
|
|
|
|
data: seriesData1,
|
|
|
|
data: yValue,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -2129,7 +2104,7 @@ const loss = (res, ids) => {
|
|
|
|
silent: true,
|
|
|
|
silent: true,
|
|
|
|
barWidth: 35,
|
|
|
|
barWidth: 35,
|
|
|
|
barGap: "-100%", // Make series be overlap
|
|
|
|
barGap: "-100%", // Make series be overlap
|
|
|
|
data: seriesData1,
|
|
|
|
data: yValue,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
};
|
|
|
|
};
|
|
|
|