|
@@ -296,7 +296,7 @@ export default {
|
|
|
project: "",
|
|
|
line: "",
|
|
|
},
|
|
|
- timeyear:'2021',
|
|
|
+ timeyear:'',
|
|
|
currentPage2: 1,
|
|
|
pagesize: 10,
|
|
|
gridData:[],
|
|
@@ -351,10 +351,20 @@ export default {
|
|
|
nf:'',
|
|
|
modifyid:'',
|
|
|
modifyprojectid:'',
|
|
|
+ updateTime:'',
|
|
|
}
|
|
|
},
|
|
|
|
|
|
created(){
|
|
|
+ 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 - 1:'0'+date.date
|
|
|
+ this.updateTime = date.year + '-' + newmonth + '-' + day
|
|
|
this.callAndSpeedData();
|
|
|
},
|
|
|
methods:{
|
|
@@ -455,6 +465,9 @@ export default {
|
|
|
var plannedGenerationData = new URLSearchParams();
|
|
|
plannedGenerationData.append('wpId',this.value);
|
|
|
plannedGenerationData.append('pjId',this.value2);
|
|
|
+ if(this.timeyear == ''){
|
|
|
+ this.timeyear = this.updateTime.substring(0,4);
|
|
|
+ }
|
|
|
plannedGenerationData.append('year',this.timeyear);
|
|
|
this.$http.post('/projectplan/getProjectPlanVo',plannedGenerationData).then((res) => {
|
|
|
this.gridData = res.data.data
|