修改bug
This commit is contained in:
@@ -180,6 +180,7 @@ export default {
|
||||
type: "value",
|
||||
name: "单位/片",
|
||||
show: true,
|
||||
splitNumber: 5,
|
||||
nameTextStyle: {
|
||||
fontSize: 12,
|
||||
align: "right",
|
||||
@@ -210,7 +211,7 @@ export default {
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
position: [0, -16],
|
||||
color: "#288AFF",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
@@ -225,7 +226,7 @@ export default {
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
position: [18, -16],
|
||||
color: "#64BDFF",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
@@ -239,7 +240,7 @@ export default {
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
position: [20, -16],
|
||||
color: "#7164FF",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
@@ -263,7 +264,7 @@ export default {
|
||||
// max: function (value) {//取最大值向上取整为最大刻度
|
||||
// return Math.ceil(value.max)
|
||||
// },
|
||||
scale: true,
|
||||
splitNumber: 4,
|
||||
nameTextStyle: {
|
||||
fontSize: 12,
|
||||
align: "right",
|
||||
@@ -283,11 +284,11 @@ export default {
|
||||
fontSize: 12,
|
||||
align: "right",
|
||||
},
|
||||
scale: true,
|
||||
// scale: true,
|
||||
// min: function (value) {//取最小值向下取整为最小刻度
|
||||
// return Math.floor(value.min)
|
||||
// },
|
||||
splitNumber: 5,
|
||||
splitNumber: 4,
|
||||
// max: function (value) {//取最大值向上取整为最大刻度
|
||||
// return Math.ceil(value.max)
|
||||
// },
|
||||
@@ -317,7 +318,7 @@ export default {
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [10, -16],
|
||||
position: [0, -16],
|
||||
color: "#288AFF",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
@@ -332,7 +333,7 @@ export default {
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
position: [5, -16],
|
||||
color: "#64BDFF",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
@@ -660,6 +661,11 @@ export default {
|
||||
})
|
||||
this.chartMsg.yAxis.max = Math.ceil(Math.max(...maxData) / 100) * 100
|
||||
this.chartMsgTarget.yAxis.max = Math.ceil(Math.max(...maxData) / 100) * 100
|
||||
this.chartMsg.yAxis.min = Math.ceil(Math.min(...maxData) / 100) * 100
|
||||
this.chartMsgTarget.yAxis.min = Math.ceil(Math.min(...maxData) / 100) * 100
|
||||
this.chartMsg.yAxis.interval = (this.chartMsg.yAxis.max - this.chartMsg.yAxis.min) / 4
|
||||
this.chartMsgTarget.yAxis.interval = (this.chartMsgTarget.yAxis.max - this.chartMsgTarget.yAxis.min) / 4
|
||||
|
||||
// ele.titleValue
|
||||
// .push({
|
||||
// label: ele.titleValue,
|
||||
@@ -718,198 +724,198 @@ export default {
|
||||
let chip = []
|
||||
let std = []
|
||||
let bipv = []
|
||||
|
||||
let targetObj = {}
|
||||
let obj = {}
|
||||
res.data.list.slice(res.data.list.length - 3, res.data.list.length - 1).forEach((ele, index) => {
|
||||
console.log("ele",ele.titleValue);
|
||||
// let i = index + 1
|
||||
// this.chartMsgTarget.xData.push(ele.titleValue)
|
||||
if (ele.titleValue.search('完成') == -1) {
|
||||
ele.productionSituationDataVOList.forEach((item) => {
|
||||
console.log(item);
|
||||
// if (ele.titleValue.search('目标') != -1) {
|
||||
fto.push({
|
||||
name: "FTO投入目标值",
|
||||
data: [
|
||||
// s
|
||||
{ name: 'FTO投入目标', value: item.ftoInput },
|
||||
// { name: 'FTO投入目标值', value: 11 },
|
||||
// { name: "%", value: 85 },
|
||||
// { name: "%", value: 85 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
stack: 'f',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(104,196,131,.3)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
chip.push({
|
||||
name: "芯片产量目标值",
|
||||
// barGap: '-100%',
|
||||
stack: 'a',
|
||||
data: [
|
||||
{ name: "芯片产量目标值", value: item.chipYield },
|
||||
// { name: '芯片产量目标值', value: 22 },
|
||||
// { name: "%", value: 21.66 },
|
||||
// { name: "%", value: 18.4 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
// barGap: '-100%',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(40,138,255,.2)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
std.push({
|
||||
name: "标准组件产量目标值",
|
||||
stack: 'b',
|
||||
data: [
|
||||
{ name: "标准组件产量目标值", value: item.componentYield },
|
||||
// { name: '标准组件产量目标值', value: 23 },
|
||||
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(100,189,255,.3)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
bipv.push(this.currentMenu == '瑞昌' ? null :
|
||||
{
|
||||
name: "BIPV产量目标值",
|
||||
stack: 'c',
|
||||
data: [
|
||||
{ name: "BIPV产量目标值", value: item.bipvProductOutput },
|
||||
// { name: 'BIPV产量目标值', value: 24 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(113,100,255,.2)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
// } else {
|
||||
// }
|
||||
})
|
||||
targetObj.ftoInput = item.ftoInput
|
||||
targetObj.chipYield = item.chipYield
|
||||
targetObj.componentYield = item.componentYield
|
||||
targetObj.bipvProductOutput = this.currentMenu == '瑞昌' ? null : item.bipvProductOutput
|
||||
})
|
||||
console.log("fto",ele.titleValue,fto);
|
||||
} else {
|
||||
ele.productionSituationDataVOList.forEach((item) => {
|
||||
console.log(item);
|
||||
obj.ftoInput = item.ftoInput
|
||||
obj.chipYield = item.chipYield
|
||||
obj.componentYield = item.componentYield
|
||||
obj.bipvProductOutput = this.currentMenu == '瑞昌' ? null : item.bipvProductOutput
|
||||
// if (ele.titleValue.search('目标') != -1) {
|
||||
// } else {
|
||||
fto.unshift({
|
||||
name: "FTO投入完成值",
|
||||
data: [
|
||||
// s
|
||||
{ name: 'FTO投入完成值', value: item.ftoInput },
|
||||
// { name: 'FTO投入完成值', value: 33 },
|
||||
// { name: "%", value: 85 },
|
||||
// { name: "%", value: 85 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
stack: 'f',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(104,196,131)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
chip.unshift({
|
||||
name: "芯片产量完成值",
|
||||
// barGap: '-100%',
|
||||
stack: 'a',
|
||||
data: [
|
||||
{ name: "芯片产量完成值", value: item.chipYield },
|
||||
// { name: '芯片产量完成值', value: 55 },
|
||||
// { name: "%", value: 21.66 },
|
||||
// { name: "%", value: 18.4 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
// barGap: '-100%',
|
||||
label: {
|
||||
show: true,
|
||||
color: "rgba(40,138,255)",
|
||||
position: [-18, -16],
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
std.unshift({
|
||||
name: "标准组件产量完成值",
|
||||
stack: 'b',
|
||||
data: [
|
||||
{ name: "标准组件产量完成值", value: item.componentYield },
|
||||
// { name: '标准组件产量完成值', value: 23 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
color: "rgba(100,189,255)",
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
bipv.unshift(this.currentMenu == '瑞昌' ? null :
|
||||
{
|
||||
name: "BIPV产量完成值",
|
||||
stack: 'c',
|
||||
data: [
|
||||
{ name: "BIPV产量完成值", value: item.bipvProductOutput },
|
||||
// { name: 'BIPV产量完成值', value: 32 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(113,100,255)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
// }
|
||||
|
||||
})
|
||||
}
|
||||
})
|
||||
fto.push({
|
||||
name: "FTO投入完成值",
|
||||
data: [
|
||||
// s
|
||||
{ name: 'FTO投入完成值', value: obj.ftoInput,titleValue: obj.ftoInput },
|
||||
// { name: 'FTO投入完成值', value: 33 },
|
||||
// { name: "%", value: 85 },
|
||||
// { name: "%", value: 85 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
stack: 'f',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(104,196,131)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
}, {
|
||||
name: "FTO投入目标值",
|
||||
data: [
|
||||
// s
|
||||
{ name: 'FTO投入目标', value: (targetObj.ftoInput - obj.ftoInput) > 0 ? (targetObj.ftoInput - obj.ftoInput) : null, titleValue: targetObj.ftoInput },
|
||||
// { name: 'FTO投入目标值', value: 11 },
|
||||
// { name: "%", value: 85 },
|
||||
// { name: "%", value: 85 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
stack: 'f',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(104,196,131,.3)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
chip.push({
|
||||
name: "芯片产量完成值",
|
||||
// barGap: '-100%',
|
||||
stack: 'a',
|
||||
data: [
|
||||
{ name: "芯片产量完成值", value: obj.chipYield, titleValue: obj.chipYield },
|
||||
// { name: '芯片产量完成值', value: 55 },
|
||||
// { name: "%", value: 21.66 },
|
||||
// { name: "%", value: 18.4 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
// barGap: '-100%',
|
||||
label: {
|
||||
show: true,
|
||||
color: "rgba(40,138,255)",
|
||||
position: [-18, -16],
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
}, {
|
||||
name: "芯片产量目标值",
|
||||
// barGap: '-100%',
|
||||
stack: 'a',
|
||||
data: [
|
||||
{ name: "芯片产量目标值", value: (targetObj.chipYield - obj.chipYield) > 0 ? (targetObj.chipYield - obj.chipYield) : null, titleValue: targetObj.chipYield },
|
||||
// { name: '芯片产量目标值', value: 22 },
|
||||
// { name: "%", value: 21.66 },
|
||||
// { name: "%", value: 18.4 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
// barGap: '-100%',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(40,138,255,.2)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
std.push({
|
||||
name: "标准组件产量完成值",
|
||||
stack: 'b',
|
||||
data: [
|
||||
{ name: "标准组件产量完成值", value: obj.componentYield, titleValue: obj.componentYield },
|
||||
// { name: '标准组件产量完成值', value: 23 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
color: "rgba(100,189,255)",
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
}, {
|
||||
name: "标准组件产量目标值",
|
||||
stack: 'b',
|
||||
data: [
|
||||
{ name: "标准组件产量目标值", value: (targetObj.componentYield - obj.componentYield) > 0 ? (targetObj.componentYield - obj.componentYield) : null, titleValue: targetObj.componentYield },
|
||||
// { name: '标准组件产量目标值', value: 23 },
|
||||
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(100,189,255,.3)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
bipv.push(this.currentMenu == '瑞昌' ? null :
|
||||
{
|
||||
name: "BIPV产量完成值",
|
||||
stack: 'c',
|
||||
data: [
|
||||
{ name: "BIPV产量完成值", value: obj.bipvProductOutput, titleValue: obj.bipvProductOutput },
|
||||
// { name: 'BIPV产量完成值', value: 32 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(113,100,255)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
}, this.currentMenu == '瑞昌' ? null :
|
||||
{
|
||||
name: "BIPV产量目标值",
|
||||
stack: 'c',
|
||||
data: [
|
||||
{ name: "BIPV产量目标值", value: (targetObj.bipvProductOutput - obj.bipvProductOutput) > 0 ? (targetObj.bipvProductOutput - obj.bipvProductOutput) : null, titleValue: targetObj.bipvProductOutput },
|
||||
// { name: 'BIPV产量目标值', value: 24 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(113,100,255,.2)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
// }
|
||||
this.chartMsgTarget.series = [...fto, ...chip, ...std, ...bipv]
|
||||
console.log('arr', this.chartMsgTarget.series)
|
||||
// arr.forEach((ele) => {
|
||||
@@ -994,199 +1000,196 @@ export default {
|
||||
let chip = []
|
||||
let std = []
|
||||
let bipv = []
|
||||
|
||||
let targetObj = {}
|
||||
let obj = {}
|
||||
res.data.list.slice(res.data.list.length - 2, res.data.list.length).forEach((ele, index) => {
|
||||
// console.log("ele", ele.titleValue);
|
||||
console.log("ele", ele.titleValue);
|
||||
// let i = index + 1
|
||||
// this.chartMsgTarget.xData.push(ele.titleValue)
|
||||
ele.productionSituationDataVOList.forEach((item) => {
|
||||
if (ele.titleValue.search('完成') == -1) {
|
||||
console.log(ele);
|
||||
ele.productionSituationDataVOList.forEach((item) => {
|
||||
console.log(item);
|
||||
// if (ele.titleValue.search('目标') != -1) {
|
||||
fto.push({
|
||||
name: "FTO投入目标值",
|
||||
data: [
|
||||
// s
|
||||
{ name: 'FTO投入目标', value: item.ftoInput },
|
||||
// { name: 'FTO投入目标值', value: 11 },
|
||||
// { name: "%", value: 85 },
|
||||
// { name: "%", value: 85 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
stack: 'f',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(104,196,131,.3)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
chip.push({
|
||||
name: "芯片产量目标值",
|
||||
// barGap: '-100%',
|
||||
stack: 'a',
|
||||
data: [
|
||||
{ name: "芯片产量目标值", value: item.chipYield },
|
||||
// { name: '芯片产量目标值', value: 22 },
|
||||
// { name: "%", value: 21.66 },
|
||||
// { name: "%", value: 18.4 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
// barGap: '-100%',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(40,138,255,.2)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
std.push({
|
||||
name: "标准组件产量目标值",
|
||||
stack: 'b',
|
||||
data: [
|
||||
{ name: "标准组件产量目标值", value: item.componentYield },
|
||||
// { name: '标准组件产量目标值', value: 23 },
|
||||
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(100,189,255,.3)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
bipv.push(this.currentMenu == '瑞昌' ? null :
|
||||
{
|
||||
name: "BIPV产量目标值",
|
||||
stack: 'c',
|
||||
data: [
|
||||
{ name: "BIPV产量目标值", value: item.bipvProductOutput },
|
||||
// { name: 'BIPV产量目标值', value: 24 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(113,100,255,.2)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
// } else {
|
||||
// }
|
||||
})
|
||||
|
||||
targetObj.ftoInput = item.ftoInput
|
||||
targetObj.chipYield = item.chipYield
|
||||
targetObj.componentYield = item.componentYield
|
||||
targetObj.bipvProductOutput = this.currentMenu == '瑞昌' ? null : item.bipvProductOutput
|
||||
console.log("fto", ele.titleValue, fto);
|
||||
} else {
|
||||
ele.productionSituationDataVOList.forEach((item) => {
|
||||
console.log(item);
|
||||
|
||||
obj.ftoInput = item.ftoInput
|
||||
obj.chipYield = item.chipYield
|
||||
obj.componentYield = item.componentYield
|
||||
obj.bipvProductOutput = this.currentMenu == '瑞昌' ? null : item.bipvProductOutput
|
||||
// if (ele.titleValue.search('目标') != -1) {
|
||||
// } else {
|
||||
fto.unshift({
|
||||
name: "FTO投入完成值",
|
||||
data: [
|
||||
// s
|
||||
{ name: 'FTO投入完成值', value: item.ftoInput },
|
||||
// { name: 'FTO投入完成值', value: 33 },
|
||||
// { name: "%", value: 85 },
|
||||
// { name: "%", value: 85 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
stack: 'f',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(104,196,131)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
chip.unshift({
|
||||
name: "芯片产量完成值",
|
||||
// barGap: '-100%',
|
||||
stack: 'a',
|
||||
data: [
|
||||
{ name: "芯片产量完成值", value: item.chipYield },
|
||||
// { name: '芯片产量完成值', value: 55 },
|
||||
// { name: "%", value: 21.66 },
|
||||
// { name: "%", value: 18.4 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
// barGap: '-100%',
|
||||
label: {
|
||||
show: true,
|
||||
color: "rgba(40,138,255)",
|
||||
position: [-18, -16],
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
std.unshift({
|
||||
name: "标准组件产量完成值",
|
||||
stack: 'b',
|
||||
data: [
|
||||
{ name: "标准组件产量完成值", value: item.componentYield },
|
||||
// { name: '标准组件产量完成值', value: 23 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
color: "rgba(100,189,255)",
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
bipv.unshift(this.currentMenu == '瑞昌' ? null :
|
||||
{
|
||||
name: "BIPV产量完成值",
|
||||
stack: 'c',
|
||||
data: [
|
||||
{ name: "BIPV产量完成值", value: item.bipvProductOutput },
|
||||
// { name: 'BIPV产量完成值', value: 32 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(113,100,255)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
// }
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
fto.push({
|
||||
name: "FTO投入完成值",
|
||||
data: [
|
||||
// s
|
||||
{ name: 'FTO投入完成值', value: obj.ftoInput, titleValue: obj.ftoInput },
|
||||
// { name: 'FTO投入完成值', value: 33 },
|
||||
// { name: "%", value: 85 },
|
||||
// { name: "%", value: 85 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
stack: 'f',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(104,196,131)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
}, {
|
||||
name: "FTO投入目标值",
|
||||
data: [
|
||||
// s
|
||||
{ name: 'FTO投入目标', value: (targetObj.ftoInput - obj.ftoInput) > 0 ? (targetObj.ftoInput - obj.ftoInput) : null, titleValue: targetObj.ftoInput },
|
||||
// { name: 'FTO投入目标值', value: 11 },
|
||||
// { name: "%", value: 85 },
|
||||
// { name: "%", value: 85 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
stack: 'f',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(104,196,131,.3)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
chip.push({
|
||||
name: "芯片产量完成值",
|
||||
// barGap: '-100%',
|
||||
stack: 'a',
|
||||
data: [
|
||||
{ name: "芯片产量完成值", value: obj.chipYield, titleValue: obj.chipYield },
|
||||
// { name: '芯片产量完成值', value: 55 },
|
||||
// { name: "%", value: 21.66 },
|
||||
// { name: "%", value: 18.4 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
// barGap: '-100%',
|
||||
label: {
|
||||
show: true,
|
||||
color: "rgba(40,138,255)",
|
||||
position: [-18, -16],
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
}, {
|
||||
name: "芯片产量目标值",
|
||||
// barGap: '-100%',
|
||||
stack: 'a',
|
||||
data: [
|
||||
{ name: "芯片产量目标值", value: (targetObj.chipYield - obj.chipYield) > 0 ? (targetObj.chipYield - obj.chipYield) : null, titleValue: targetObj.chipYield },
|
||||
// { name: '芯片产量目标值', value: 22 },
|
||||
// { name: "%", value: 21.66 },
|
||||
// { name: "%", value: 18.4 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
// barGap: '-100%',
|
||||
label: {
|
||||
show: true,
|
||||
position: [-18, -16],
|
||||
color: "rgba(40,138,255,.2)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
std.push({
|
||||
name: "标准组件产量完成值",
|
||||
stack: 'b',
|
||||
data: [
|
||||
{ name: "标准组件产量完成值", value: obj.componentYield, titleValue: obj.componentYield },
|
||||
// { name: '标准组件产量完成值', value: 23 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
color: "rgba(100,189,255)",
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
}, {
|
||||
name: "标准组件产量目标值",
|
||||
stack: 'b',
|
||||
data: [
|
||||
{ name: "标准组件产量目标值", value: (targetObj.componentYield - obj.componentYield) > 0 ? (targetObj.componentYield - obj.componentYield) : null, titleValue: targetObj.componentYield },
|
||||
// { name: '标准组件产量目标值', value: 23 },
|
||||
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(100,189,255,.3)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
})
|
||||
bipv.push(this.currentMenu == '瑞昌' ? null :
|
||||
{
|
||||
name: "BIPV产量完成值",
|
||||
stack: 'c',
|
||||
data: [
|
||||
{ name: "BIPV产量完成值", value: obj.bipvProductOutput, titleValue: obj.bipvProductOutput },
|
||||
// { name: 'BIPV产量完成值', value: 32 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(113,100,255)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
}, this.currentMenu == '瑞昌' ? null :
|
||||
{
|
||||
name: "BIPV产量目标值",
|
||||
stack: 'c',
|
||||
data: [
|
||||
{ name: "BIPV产量目标值", value: (targetObj.bipvProductOutput - obj.bipvProductOutput) > 0 ? (targetObj.bipvProductOutput - obj.bipvProductOutput) : null, titleValue: targetObj.bipvProductOutput },
|
||||
// { name: 'BIPV产量目标值', value: 24 },
|
||||
// { name: "%", value: 7.02 },
|
||||
// { name: "%", value: 80.2 },
|
||||
],
|
||||
type: "bar",
|
||||
barWidth: 20,
|
||||
label: {
|
||||
show: true,
|
||||
position: [0, -16],
|
||||
color: "rgba(113,100,255,.2)",
|
||||
formatter: function (params) {
|
||||
return params.value
|
||||
},
|
||||
},
|
||||
},)
|
||||
// }
|
||||
this.chartMsgTarget.series = [...fto, ...chip, ...std, ...bipv]
|
||||
} else {
|
||||
res.data.list.forEach((ele, index) => {
|
||||
@@ -1234,10 +1237,6 @@ export default {
|
||||
// console.log(this.dataArr)
|
||||
// console.log(this.tableData);
|
||||
// this.$nextTick(() => {
|
||||
console.log(this.chartMsg.series)
|
||||
this.$refs.dayChart.getMes()
|
||||
this.$refs.dayTargetChart.getMes()
|
||||
this.$refs.chartYearTarget.getMes()
|
||||
this.tableData = this.dataArr
|
||||
this.showTable = !this.showTable
|
||||
// })
|
||||
|
||||
Reference in New Issue
Block a user