|
@@ -769,10 +769,10 @@
|
|
|
@closed="dialogType = ''"
|
|
|
>
|
|
|
<Table :data="dialogData" v-if="dialogType === 'table'" />
|
|
|
- <MultipleLineChart
|
|
|
+ <multiple-y-line-chart-normal
|
|
|
height="500px"
|
|
|
- unit="(MW)"
|
|
|
- :list="powerLineChartData"
|
|
|
+ :list="Powertrend"
|
|
|
+ :yAxises="PowertrendYAxises"
|
|
|
:showLegend="true"
|
|
|
v-if="dialogType === 'powerLineChart'"
|
|
|
/>
|
|
@@ -856,17 +856,13 @@ export default {
|
|
|
tqmap: {},
|
|
|
nowTime: "",
|
|
|
planBtnName: "全部",
|
|
|
- powerLineChartData: {
|
|
|
- // 图表所用单位
|
|
|
- units: [""],
|
|
|
- value: [
|
|
|
- {
|
|
|
- title: "",
|
|
|
- yAxisIndex: 0, // 使用单位
|
|
|
- value: [],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
+ powerLineChartData: [
|
|
|
+ {
|
|
|
+ title: "",
|
|
|
+ yAxisIndex: 0, // 使用单位
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ ],
|
|
|
doneLineChartData: {
|
|
|
// 图表所用单位
|
|
|
units: [""],
|
|
@@ -909,13 +905,20 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
PowertrendYAxises: [
|
|
|
- {
|
|
|
- name: '',
|
|
|
- min: 0,
|
|
|
- max: 60,
|
|
|
- unit: "(MW)",
|
|
|
- position: "left",
|
|
|
- },
|
|
|
+ {
|
|
|
+ name: "功率",
|
|
|
+ min: 0,
|
|
|
+ max: 500,
|
|
|
+ unit: "(万kWh)",
|
|
|
+ position: "left",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "风速",
|
|
|
+ min: 0,
|
|
|
+ max: 50,
|
|
|
+ unit: "(m/s)",
|
|
|
+ position: "right",
|
|
|
+ },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
@@ -1069,32 +1072,29 @@ export default {
|
|
|
},
|
|
|
success(res) {
|
|
|
let rdlKey = ["value1", "value2", "value3", "speed"];
|
|
|
- let DayPower = {
|
|
|
- // 图表所用单位
|
|
|
- units: ["(万kWh)", "(m/s)"],
|
|
|
- value: [
|
|
|
- {
|
|
|
- title: "发电量",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "上网电量",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "购网电量",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "风速",
|
|
|
- yAxisIndex: 1,
|
|
|
- value: [],
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
+ // units: ["(万kWh)", "(m/s)"],
|
|
|
+ let DayPower = [
|
|
|
+ {
|
|
|
+ title: "发电量",
|
|
|
+ yAxisIndex: 0,
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "上网电量",
|
|
|
+ yAxisIndex: 0,
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "购网电量",
|
|
|
+ yAxisIndex: 0,
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "风速",
|
|
|
+ yAxisIndex: 1,
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ ];
|
|
|
|
|
|
let glKey = [
|
|
|
"value2",
|
|
@@ -1139,7 +1139,7 @@ export default {
|
|
|
|
|
|
rdlKey.forEach((keyEle, keyIndex) => {
|
|
|
res.data.rdlvos.forEach((cEle) => {
|
|
|
- DayPower.value[keyIndex].value.push({
|
|
|
+ DayPower[keyIndex].value.push({
|
|
|
text: cEle.timestr,
|
|
|
value: cEle[keyEle],
|
|
|
});
|