|
@@ -17,8 +17,8 @@
|
|
v-for="(i, index) in tableClu.slice(0, 2)"
|
|
v-for="(i, index) in tableClu.slice(0, 2)"
|
|
:key="index"
|
|
:key="index"
|
|
:prop="i"
|
|
:prop="i"
|
|
- :label="i"
|
|
|
|
- width="240"
|
|
|
|
|
|
+ :label="i === 'name' ? '名称' : i"
|
|
|
|
+ width="140"
|
|
>
|
|
>
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
{{ scope.row[i] }}
|
|
{{ scope.row[i] }}
|
|
@@ -36,17 +36,18 @@
|
|
:key="i"
|
|
:key="i"
|
|
:prop="i"
|
|
:prop="i"
|
|
label="当日值"
|
|
label="当日值"
|
|
-
|
|
|
|
align="center"
|
|
align="center"
|
|
|
|
+ width="100"
|
|
>
|
|
>
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<!-- <el-input
|
|
<!-- <el-input
|
|
v-if="tableString.indexOf(i) != -1"
|
|
v-if="tableString.indexOf(i) != -1"
|
|
- :disabled="scope.row['是否可编辑'] == 1 || routerData.isConfirm == 1"
|
|
|
|
|
|
+ :disabled="scope.row['是否可编辑'] == 1 || timeNow.isConfirm == 1"
|
|
size="mini"
|
|
size="mini"
|
|
@change="changeNum(scope.row)"
|
|
@change="changeNum(scope.row)"
|
|
v-model="scope.row[i]"
|
|
v-model="scope.row[i]"
|
|
></el-input> -->
|
|
></el-input> -->
|
|
|
|
+
|
|
<el-input
|
|
<el-input
|
|
v-if="tableString.indexOf(i) != -1"
|
|
v-if="tableString.indexOf(i) != -1"
|
|
:disabled="true"
|
|
:disabled="true"
|
|
@@ -72,12 +73,11 @@ export default {
|
|
tableClu: [],
|
|
tableClu: [],
|
|
tableCluObj: [],
|
|
tableCluObj: [],
|
|
tableString: [],
|
|
tableString: [],
|
|
- timeNow: this.$route.query,
|
|
|
|
|
|
+ timeNow: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- // console.log("xxxxxxxxxxxxxxxxxxxxxxxxx", this.timeNow);
|
|
|
|
- this.getCZList();
|
|
|
|
|
|
+ (this.timeNow = this.$route.query), this.getCZList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 场站
|
|
// 场站
|
|
@@ -93,16 +93,13 @@ export default {
|
|
if (typeof i[k] == "object") {
|
|
if (typeof i[k] == "object") {
|
|
if (i[k] != null) {
|
|
if (i[k] != null) {
|
|
for (let p of res.data[0] ? Object.keys(i[k]) : "") {
|
|
for (let p of res.data[0] ? Object.keys(i[k]) : "") {
|
|
- // console.log(i[k][p]);
|
|
|
|
i[k + p] = i[k][p];
|
|
i[k + p] = i[k][p];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
this.tableData = res.data;
|
|
this.tableData = res.data;
|
|
- // console.log("tableData", this.tableData);
|
|
|
|
for (let i of res.data[0] ? Object.keys(res.data[0]) : "") {
|
|
for (let i of res.data[0] ? Object.keys(res.data[0]) : "") {
|
|
if (typeof res.data[0][i] != "object") {
|
|
if (typeof res.data[0][i] != "object") {
|
|
if (i != "是否可编辑" && i != "id") {
|
|
if (i != "是否可编辑" && i != "id") {
|
|
@@ -121,12 +118,18 @@ export default {
|
|
for (let i of this.tableCluObj) {
|
|
for (let i of this.tableCluObj) {
|
|
this.tableString.push(i + "当日值(编辑)");
|
|
this.tableString.push(i + "当日值(编辑)");
|
|
}
|
|
}
|
|
- // console.log("tableClu", this.tableClu);
|
|
|
|
- // console.log("tableCluObj", this.tableCluObj);
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
back() {
|
|
back() {
|
|
- this.$router.push("/decision/statisticAnalysis");
|
|
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/decision/statisticAnalysis",
|
|
|
|
+ query: {
|
|
|
|
+ theday: this.timeNow.theday,
|
|
|
|
+ wpid: this.timeNow.wpid,
|
|
|
|
+ beginDate: this.timeNow.beginDate,
|
|
|
|
+ endDate: this.timeNow.endDate,
|
|
|
|
+ },
|
|
|
|
+ });
|
|
},
|
|
},
|
|
backForm() {
|
|
backForm() {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -134,10 +137,11 @@ export default {
|
|
query: {
|
|
query: {
|
|
theday: this.timeNow.theday,
|
|
theday: this.timeNow.theday,
|
|
wpid: this.timeNow.wpid,
|
|
wpid: this.timeNow.wpid,
|
|
|
|
+ beginDate: this.timeNow.beginDate,
|
|
|
|
+ endDate: this.timeNow.endDate,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
addClass({ row, column, rowIndex, columnIndex }) {
|
|
addClass({ row, column, rowIndex, columnIndex }) {
|
|
// if(columnIndex === 4){
|
|
// if(columnIndex === 4){
|
|
if (parseFloat(row.麻黄山风电场) < 0) {
|
|
if (parseFloat(row.麻黄山风电场) < 0) {
|
|
@@ -164,15 +168,12 @@ export default {
|
|
if (parseFloat(row.宣和光伏发电站) < 0) {
|
|
if (parseFloat(row.宣和光伏发电站) < 0) {
|
|
return "background:yellow";
|
|
return "background:yellow";
|
|
}
|
|
}
|
|
-
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
changeNum(v) {
|
|
changeNum(v) {
|
|
const date = this.routerData.data.theday;
|
|
const date = this.routerData.data.theday;
|
|
const wpid = this.routerData.data.wpid;
|
|
const wpid = this.routerData.data.wpid;
|
|
v.date = date;
|
|
v.date = date;
|
|
v.wpid = wpid;
|
|
v.wpid = wpid;
|
|
- // console.log(this.routerData);
|
|
|
|
this.sendData.push(v);
|
|
this.sendData.push(v);
|
|
},
|
|
},
|
|
},
|
|
},
|