|
@@ -112,7 +112,7 @@
|
|
|
:close-on-click-modal="false"
|
|
|
:before-close="onClickDialogClose"
|
|
|
>
|
|
|
- <fault-diagnosis :data="rowitem" ref="rowitemS" :key="componentKey"/>
|
|
|
+ <fault-diagnosis :data="rowitem" ref="rowitemS" :key="componentKey" />
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -121,13 +121,15 @@
|
|
|
<script>
|
|
|
import ComTable from "@com/coms/table/table.vue";
|
|
|
import FaultDiagnosis from "./components/fault-diagnosis.vue";
|
|
|
+import api from "@api/wisdomOverhaul/fault/index.js";
|
|
|
+import api1 from "@api/economic/index.js";
|
|
|
|
|
|
export default {
|
|
|
components: { ComTable, FaultDiagnosis },
|
|
|
data() {
|
|
|
const that = this;
|
|
|
return {
|
|
|
- componentKey:0,
|
|
|
+ componentKey: 0,
|
|
|
value1: "",
|
|
|
value2: "",
|
|
|
wpId: "",
|
|
@@ -189,7 +191,7 @@ export default {
|
|
|
template() {
|
|
|
return "<el-button type='text' style='cursor: pointer;'>回溯</el-button>";
|
|
|
},
|
|
|
- click(e, row) {
|
|
|
+ click(e, row) {
|
|
|
that.onClickOption(row);
|
|
|
},
|
|
|
},
|
|
@@ -224,17 +226,12 @@ export default {
|
|
|
},
|
|
|
// 获取风场
|
|
|
getWp(reGetWp) {
|
|
|
- let that = this;
|
|
|
- that.API.requestData({
|
|
|
- baseURL: "http://10.83.68.97:8020",
|
|
|
- subUrl: "/consumer/benchmarking/wplist",
|
|
|
- success(res) {
|
|
|
- that.wpArray = res.data;
|
|
|
- that.wpId = res.data[0].id;
|
|
|
- that.wpName = res.data[0].wpName;
|
|
|
- that.getWt(that.wpId, reGetWp);
|
|
|
- that.requestSafeList();
|
|
|
- },
|
|
|
+ api1.benchmarkingWplist().then((res) => {
|
|
|
+ this.wpArray = res.data;
|
|
|
+ this.wpId = res.data[0].id;
|
|
|
+ this.wpName = res.data[0].wpName;
|
|
|
+ this.getWt(this.wpId, reGetWp);
|
|
|
+ this.requestSafeList();
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -242,18 +239,14 @@ export default {
|
|
|
getWt(wpid, reGetWp) {
|
|
|
let that = this;
|
|
|
if (that.wpId) {
|
|
|
- that.API.requestData({
|
|
|
- method: "GET",
|
|
|
- baseURL: "http://10.155.32.4:9001",
|
|
|
- subUrl: "benchmarking/wtList",
|
|
|
- data: {
|
|
|
+ api1
|
|
|
+ .benchmarkingWtList({
|
|
|
wpid,
|
|
|
- },
|
|
|
- success(res) {
|
|
|
- that.wtArray = res.data;
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.wtArray = res.data;
|
|
|
// that.wtId = res.data[0].id;
|
|
|
- },
|
|
|
- });
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
BeginChange(vl) {
|
|
@@ -286,45 +279,40 @@ export default {
|
|
|
if (that.wtId != "") data.wtId = that.wtId;
|
|
|
if (that.type != "") data.type = that.type;
|
|
|
|
|
|
- this.API.requestData({
|
|
|
- method: "POST",
|
|
|
- subUrl: "/event/getShutdownevent",
|
|
|
- data,
|
|
|
- success(res) {
|
|
|
- if (res.code == 200) {
|
|
|
- that.tableData.data = [];
|
|
|
- if (res.data.list.length) {
|
|
|
- let data = res.data.list;
|
|
|
- for (var i = 0; i < data.length; i++) {
|
|
|
- let obj = {
|
|
|
- wpName: data[i].wpName,
|
|
|
- windTurbineId: data[i].windTurbineId,
|
|
|
- stopTime: new Date(data[i].stopTime).formatDate(
|
|
|
- "yyyy-MM-dd hh:mm:ss"
|
|
|
- ),
|
|
|
+ api.eventGetShutdownevent(data).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.tableData.data = [];
|
|
|
+ if (res.data.list.length) {
|
|
|
+ let data = res.data.list;
|
|
|
+ for (var i = 0; i < data.length; i++) {
|
|
|
+ let obj = {
|
|
|
+ wpName: data[i].wpName,
|
|
|
+ windTurbineId: data[i].windTurbineId,
|
|
|
+ stopTime: new Date(data[i].stopTime).formatDate(
|
|
|
+ "yyyy-MM-dd hh:mm:ss"
|
|
|
+ ),
|
|
|
|
|
|
- stopHours: data[i].stopHours,
|
|
|
- statusName: data[i].statusName,
|
|
|
- warnDesc: data[i].warnDesc,
|
|
|
- lossPower: data[i].lossPower,
|
|
|
- handleWay: data[i].handleWay,
|
|
|
- };
|
|
|
- if (data[i].startTime)
|
|
|
- obj.startTime = new Date(data[i].startTime).formatDate(
|
|
|
- "yyyy-MM-dd hh:mm:ss"
|
|
|
- );
|
|
|
- that.tableData.data.push(obj);
|
|
|
- }
|
|
|
+ stopHours: data[i].stopHours,
|
|
|
+ statusName: data[i].statusName,
|
|
|
+ warnDesc: data[i].warnDesc,
|
|
|
+ lossPower: data[i].lossPower,
|
|
|
+ handleWay: data[i].handleWay,
|
|
|
+ };
|
|
|
+ if (data[i].startTime)
|
|
|
+ obj.startTime = new Date(data[i].startTime).formatDate(
|
|
|
+ "yyyy-MM-dd hh:mm:ss"
|
|
|
+ );
|
|
|
+ this.tableData.data.push(obj);
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
// 回放按钮
|
|
|
onClickOption(row) {
|
|
|
this.rowitem = row;
|
|
|
this.dialogVisible = true;
|
|
|
- this.componentKey += 1;
|
|
|
+ this.componentKey += 1;
|
|
|
},
|
|
|
// 关闭弹窗
|
|
|
onClickDialogClose() {
|