|
@@ -72,7 +72,7 @@
|
|
|
<el-option
|
|
|
v-for="item in lineList"
|
|
|
:key="item.id"
|
|
|
- :label="item.aname"
|
|
|
+ :label="item.nemName"
|
|
|
:value="item.id"
|
|
|
>
|
|
|
</el-option>
|
|
@@ -122,7 +122,9 @@
|
|
|
v-for="val in typeOptions"
|
|
|
:key="val.id"
|
|
|
>
|
|
|
- <span>{{ val.name }}</span>
|
|
|
+ <span>{{
|
|
|
+ val.id == 1 ? (tabIndex == -1 ? val.name : val.name1) : val.name
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="performance" style="height: 90vh">
|
|
@@ -261,7 +263,7 @@ export default {
|
|
|
],
|
|
|
typeIndex: "1",
|
|
|
typeOptions: [
|
|
|
- { id: "1", name: "风场" },
|
|
|
+ { id: "1", name: "风场", name1: "电站" },
|
|
|
{ id: "2", name: "项目" },
|
|
|
{ id: "3", name: "线路" },
|
|
|
],
|
|
@@ -400,11 +402,14 @@ export default {
|
|
|
companyids: companyids,
|
|
|
type: this.tabIndex,
|
|
|
}).then((res) => {
|
|
|
+ this.stationObj = "";
|
|
|
+ this.projectObj = "";
|
|
|
+ this.lineObj = "";
|
|
|
if (res.data.length) {
|
|
|
- // this.stationObj = res.data[0].id;
|
|
|
+ // this.stationObj = res.data[0].id;
|
|
|
this.stationList = res.data;
|
|
|
this.getPerformance();
|
|
|
- // this.getProject(this.stationObj);
|
|
|
+ // this.getProject(this.stationObj);
|
|
|
} else {
|
|
|
this.stationList = [];
|
|
|
}
|
|
@@ -412,6 +417,8 @@ export default {
|
|
|
},
|
|
|
getProject(stationids) {
|
|
|
GetProjectList(stationids).then((res) => {
|
|
|
+ this.projectObj = "";
|
|
|
+ this.lineObj = "";
|
|
|
if (res.data.length) {
|
|
|
this.projectList = res.data;
|
|
|
} else {
|
|
@@ -422,6 +429,7 @@ export default {
|
|
|
},
|
|
|
getLineList(projectids) {
|
|
|
GetLineList(projectids).then((res) => {
|
|
|
+ this.lineObj = "";
|
|
|
if (res.data.length) {
|
|
|
this.lineList = res.data;
|
|
|
} else {
|
|
@@ -464,7 +472,7 @@ export default {
|
|
|
performanceMX({
|
|
|
companyid: this.company,
|
|
|
getype: this.tabIndex,
|
|
|
- sttype: this.stationObj ? "" : this.typeIndex,
|
|
|
+ sttype: this.typeIndex,
|
|
|
beginDate: this.starTime,
|
|
|
endDate: this.endTime,
|
|
|
wpids: this.stationObj,
|
|
@@ -564,6 +572,7 @@ export default {
|
|
|
flex-direction: row;
|
|
|
align-items: center;
|
|
|
margin-top: 10px;
|
|
|
+ padding-left: 20px;
|
|
|
|
|
|
.tabCut {
|
|
|
display: inline-block;
|