|
@@ -104,7 +104,7 @@
|
|
|
:header-cell-style="headStyle"
|
|
|
@sort-change="changeTableSort"
|
|
|
@row-click="tableDatawindturbineName"
|
|
|
- style="font-size: 10px;margin-top:1%">
|
|
|
+ style="font-size: 10px;margin-top:1%;cursor: pointer;">
|
|
|
<el-table-column :label=title>
|
|
|
<el-table-column
|
|
|
type="index"
|
|
@@ -194,11 +194,11 @@ export default {
|
|
|
value:'MHS_FDC',
|
|
|
value2:'',
|
|
|
options: [],
|
|
|
- time:'2021-01-01',
|
|
|
+ time:'',
|
|
|
timemonth:'',
|
|
|
- month:'2021-01',
|
|
|
+ month:'',
|
|
|
timeyear:'',
|
|
|
- year:'2021',
|
|
|
+ year:'',
|
|
|
title:'月曲线偏差率排行榜',
|
|
|
daymonth:'',
|
|
|
dayyear:'',
|
|
@@ -311,20 +311,44 @@ export default {
|
|
|
})
|
|
|
var deviceRatData = new URLSearchParams();
|
|
|
if(this.information == 'first'){
|
|
|
+ const nowDate = new Date();
|
|
|
+ const date = {
|
|
|
+ year: nowDate.getFullYear(),
|
|
|
+ month: nowDate.getMonth() + 1,
|
|
|
+ date: nowDate.getDate(),
|
|
|
+ }
|
|
|
+ const newmonth = date.month>10?date.month:'0'+date.month
|
|
|
+ const day = date.date>10?date.date:'0'+date.date
|
|
|
+ this.updateTime = date.year + '-' + newmonth + '-' + day
|
|
|
+
|
|
|
this.title = '月曲线偏差率排行榜';
|
|
|
deviceRatData.append('pageNum',this.currentPage2);
|
|
|
deviceRatData.append('pageSize',this.pagesize);
|
|
|
deviceRatData.append('orderByColumn',this.orderByColumn);
|
|
|
deviceRatData.append('isAsc',this.isAsc);
|
|
|
- deviceRatData.append('wpId',this.value);
|
|
|
- this.timeyear = this.year.toString();
|
|
|
- deviceRatData.append('year',this.timeyear);
|
|
|
- this.timemonth = this.month.toString();
|
|
|
- if(this.timemonth.substring(6,7) < 10){
|
|
|
- this.timemonth = this.timemonth.substring(6,7);
|
|
|
+ deviceRatData.append('wpId',this.value);
|
|
|
+ if(this.year == ''){
|
|
|
+ this.year = this.updateTime;
|
|
|
+ this.year = this.year.slice(0,4);
|
|
|
+ }else{
|
|
|
+ this.year = this.year.toString();
|
|
|
+
|
|
|
+ }
|
|
|
+ deviceRatData.append('year',this.year);
|
|
|
+ if(this.month == ''){
|
|
|
+ this.month = this.updateTime;
|
|
|
+ if(this.month.substring(5,7) < 10 ){
|
|
|
+ this.timemonth = this.month.substring(6,7);
|
|
|
+ }else{
|
|
|
+ this.timemonth = this.month.substring(5,7);
|
|
|
+ }
|
|
|
}else{
|
|
|
- this.timemonth = this.timemonth.substring(5,7)
|
|
|
- }
|
|
|
+ if(this.month.substring(5,7) < 10){
|
|
|
+ this.timemonth = this.month.substring(6,7);
|
|
|
+ }else{
|
|
|
+ this.timemonth = this.month.substring(5,7)
|
|
|
+ }
|
|
|
+ }
|
|
|
deviceRatData.append('month',this.timemonth);
|
|
|
this.$http.post("/leaderboard/curvefittingmonthmainList",deviceRatData).then((res) => {
|
|
|
this.gridData = res.data.data;
|
|
@@ -337,6 +361,18 @@ export default {
|
|
|
deviceRatData.append('orderByColumn',this.orderByColumn);
|
|
|
deviceRatData.append('isAsc',this.isAsc);
|
|
|
deviceRatData.append('wpId',this.value);
|
|
|
+ const nowDate = new Date();
|
|
|
+ const date = {
|
|
|
+ year: nowDate.getFullYear(),
|
|
|
+ month: nowDate.getMonth() + 1,
|
|
|
+ date: nowDate.getDate(),
|
|
|
+ }
|
|
|
+ const newmonth = date.month>10?date.month:'0'+date.month
|
|
|
+ const day = date.date>10?date.date:'0'+date.date
|
|
|
+ this.updateTime = date.year + '-' + newmonth + '-' + day
|
|
|
+ if(this.time == ''){
|
|
|
+ this.time = this.updateTime;
|
|
|
+ }
|
|
|
deviceRatData.append('recorddate',this.time);
|
|
|
this.$http.post("/leaderboard/curvefittingmainList",deviceRatData).then((res) =>{
|
|
|
this.gridData = res.data.data;
|