|
@@ -1,30 +1,5 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div class="action-bar">
|
|
|
- <div class="query mg-b-16">
|
|
|
- <div class="query-items">
|
|
|
- <div class="query-item">
|
|
|
- <div class="lable">风场:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-select v-model="wpvalue" clearable placeholder="请选择" popper-class="select">
|
|
|
- <el-option v-for="item in ChangZhan" :key="item.id" :label="item.name" :value="item.id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="query-item">
|
|
|
- <div class="lable">日期:</div>
|
|
|
- <div class="search-input">
|
|
|
- <el-date-picker v-model="myDate" type="date" placeholder="开始日期" popper-class="date-select"
|
|
|
- value-format="YYYY-MM-DD"></el-date-picker>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="query-actions">
|
|
|
- <button class="btn green" @click="searchData">搜索</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
<el-row>
|
|
|
<el-col :span="14">
|
|
|
<panel :title="'日雷达图'" class="radar-panel" :icon="'svg-wind-site'">
|
|
@@ -65,6 +40,16 @@
|
|
|
panel,
|
|
|
RadarChart
|
|
|
},
|
|
|
+ props:{
|
|
|
+ date: {
|
|
|
+ type: String,
|
|
|
+ default: "2021-06-06",
|
|
|
+ },
|
|
|
+ wpid: {
|
|
|
+ type: String,
|
|
|
+ default: "MHS_FDC",
|
|
|
+ },
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
rzdfsData: {
|
|
@@ -79,25 +64,10 @@
|
|
|
indicator: ["N0", "N1", "N2", "N3", "N4", "N5"],
|
|
|
data: [{value: [44200, 14200, 20000, 35000, 50000, 38000],name: "",}, ],
|
|
|
},
|
|
|
- ChangZhan: [],
|
|
|
- wpvalue: '',
|
|
|
- myDate: ""
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- var that = this;
|
|
|
- that.API.requestData({
|
|
|
- method: "GET",
|
|
|
- baseURL: "http://10.155.32.4:9001/",
|
|
|
- subUrl: "benchmarking/wplist",
|
|
|
- success(res) {
|
|
|
- that.ChangZhan = res.data;
|
|
|
- that.wpvalue = res.data[0].id;
|
|
|
- let end = new Date();
|
|
|
- that.myDate = end.formatDate("yyyy-MM-dd");
|
|
|
- that.searchData();
|
|
|
- },
|
|
|
- });
|
|
|
+ this.searchData();
|
|
|
},
|
|
|
methods: {
|
|
|
searchData(){
|
|
@@ -107,8 +77,8 @@
|
|
|
subUrl: "radar/yjfx",
|
|
|
showLoading:true,
|
|
|
data:{
|
|
|
- stationid:that.wpvalue,
|
|
|
- date:that.myDate
|
|
|
+ stationid:that.wpid,
|
|
|
+ date:that.date
|
|
|
},
|
|
|
success(res) {
|
|
|
let key = ['测风系统','传动链','发电机','变桨系统','齿轮箱','液压系统','偏航系统','机舱','其它','塔底柜'];
|
|
@@ -128,7 +98,6 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
};
|
|
|
</script>
|
|
|
|