|
@@ -42,57 +42,51 @@
|
|
|
<div class="query-items">
|
|
|
<div class="query-item">
|
|
|
<div class="label">风场:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-select
|
|
|
- v-model="wpId"
|
|
|
- clearable
|
|
|
- placeholder="请选择"
|
|
|
- popper-class="select"
|
|
|
- @change="changeStationsVal"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in wpArray"
|
|
|
- :key="item.id"
|
|
|
- :value="item.id"
|
|
|
- :label="item.name"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
+ <el-select
|
|
|
+ v-model="wpId"
|
|
|
+ clearable
|
|
|
+ placeholder="请选择"
|
|
|
+ @change="changeStationsVal"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in wpArray"
|
|
|
+ :key="item.id"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</div>
|
|
|
<div class="query-item">
|
|
|
<div class="label">风机:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-select
|
|
|
- v-model="wtId"
|
|
|
- clearable
|
|
|
- placeholder="请选择"
|
|
|
- popper-class="select"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in wtArray"
|
|
|
- :key="item.id"
|
|
|
- :value="item.id"
|
|
|
- :label="item.aname"
|
|
|
- />
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
+ <el-select
|
|
|
+ v-model="wtId"
|
|
|
+ clearable
|
|
|
+ placeholder="请选择"
|
|
|
+ popper-class="select"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in wtArray"
|
|
|
+ :key="item.id"
|
|
|
+ :value="item.id"
|
|
|
+ :label="item.aname"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
</div>
|
|
|
<div class="query-item">
|
|
|
<div class="label">日期:</div>
|
|
|
- <div class="search-input ssTime">
|
|
|
- <el-date-picker
|
|
|
- v-model="recorddate"
|
|
|
- type="date"
|
|
|
- value-format="YYYY-MM-DD"
|
|
|
- placeholder="选择日期"
|
|
|
- popper-class="date-select"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </div>
|
|
|
+ <el-date-picker
|
|
|
+ v-model="recorddate"
|
|
|
+ type="date"
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
+ placeholder="选择日期"
|
|
|
+ size="mini"
|
|
|
+ popper-class="date-select"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="query-actions">
|
|
|
- <el-button class="seach" @click="search">搜索</el-button>
|
|
|
+ <el-button class="seach" size="mini" @click="search">搜索</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -114,7 +108,7 @@
|
|
|
:height="'15vh'"
|
|
|
:newbarData="powerChartData"
|
|
|
:newlineData="powerChartLineData"
|
|
|
- :units="['(kWh)']"
|
|
|
+ :units="['(kWh)', '(m/s)']"
|
|
|
:showLegend="true"
|
|
|
/>
|
|
|
</panel>
|
|
@@ -1253,6 +1247,7 @@ export default {
|
|
|
recorddate: that.recorddate,
|
|
|
};
|
|
|
const { data: datas } = await getApifindRealPowerCharBy24(params);
|
|
|
+ console.log(datas);
|
|
|
if (datas && datas.data.length > 0) {
|
|
|
const keyArray = ["value1", "value2", "value3", "value4", "value5"];
|
|
|
let powerChartData = [
|
|
@@ -1297,6 +1292,7 @@ export default {
|
|
|
let keyEle = keyArray[i];
|
|
|
for (let j = 0; j < datas.data.length; j++) {
|
|
|
let ele = datas.data[j];
|
|
|
+ // console.log(ele);
|
|
|
powerChartData[i].value.push({
|
|
|
text: new Date(ele.time).formatDate("hh:mm"),
|
|
|
value: ele[keyEle],
|
|
@@ -1304,6 +1300,7 @@ export default {
|
|
|
powerChartLineData.data.push(ele.value6);
|
|
|
}
|
|
|
}
|
|
|
+ console.log(powerChartData, powerChartLineData);
|
|
|
that.powerChartData = powerChartData;
|
|
|
that.powerChartLineData = powerChartLineData;
|
|
|
}
|
|
@@ -1734,7 +1731,6 @@ export default {
|
|
|
|
|
|
// 搜索
|
|
|
search() {
|
|
|
-
|
|
|
if (this.tabIndex === 0) {
|
|
|
this.getLostChartData();
|
|
|
this.getPowerChartData();
|
|
@@ -1795,51 +1791,46 @@ export default {
|
|
|
height: 33px;
|
|
|
line-height: 33px;
|
|
|
margin-right: 8px;
|
|
|
- color: #fff;
|
|
|
+ color: #b9b9b9;
|
|
|
font-size: 1.296vh;
|
|
|
background: fade(#606769, 20);
|
|
|
border: 1px solid fade(#606769, 20);
|
|
|
border-radius: 20px;
|
|
|
&:hover,
|
|
|
&.active {
|
|
|
- background: fade(#0046c7, 80);
|
|
|
- border: 1px solid #0046c7;
|
|
|
- color: #b9b9b9;
|
|
|
+ background: rgba(5, 187, 76, 0.6);
|
|
|
+ // border: 1px solid #0046c7;
|
|
|
+ color: #fff;
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
.windDetailseach {
|
|
|
display: flex;
|
|
|
+
|
|
|
.query-items {
|
|
|
flex: 0 0 auto;
|
|
|
display: flex;
|
|
|
+ align-items: center;
|
|
|
.query-item {
|
|
|
flex: 0 0 auto;
|
|
|
display: flex;
|
|
|
- margin: 0 1.4815vh;
|
|
|
+ align-items: center;
|
|
|
.label {
|
|
|
color: #fff;
|
|
|
- position: relative;
|
|
|
- top: 2px;
|
|
|
- }
|
|
|
- .ssTime {
|
|
|
- position: relative;
|
|
|
- top: -8px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
.query-actions {
|
|
|
.el-button {
|
|
|
- height: 25px;
|
|
|
- line-height: 25px;
|
|
|
- background: fade(#0046c7, 20);
|
|
|
- border: 1px solid #0046c7;
|
|
|
- color: #b9b9b9;
|
|
|
- border-radius: 20px;
|
|
|
- span {
|
|
|
- position: relative;
|
|
|
- top: -10px;
|
|
|
+ background: rgba(5, 187, 76, 0.6);
|
|
|
+ border: 1px solid #3b6c53;
|
|
|
+ border-radius: 13px;
|
|
|
+ color: #fff;
|
|
|
+ &:hover {
|
|
|
+ background: rgba(5, 187, 76, 0.9);
|
|
|
+ border-radius: 13px;
|
|
|
+ color: #fff;
|
|
|
}
|
|
|
}
|
|
|
}
|