Browse Source

Merge branch 'feature-xiaowang' into feature

feature_dlt_taidong
mk 1 year ago
parent
commit
0c4a5b246f
  1. 3
      src/views/modules/shequzhili/analysis/css/index.scss
  2. 13
      src/views/modules/shequzhili/analysis/index.vue

3
src/views/modules/shequzhili/analysis/css/index.scss

@ -136,6 +136,7 @@ border-left: #777 solid 1px;
color: #333333;
text-align: center;
margin-left: 5px;
white-space: nowrap;
}
.text1{
font-size: 16px;
@ -179,6 +180,7 @@ border-left: #777 solid 1px;
color: #666666;
text-align: center;
margin-left: 5px;
white-space: nowrap;
}
.row_right {
@ -345,6 +347,7 @@ border-left: #777 solid 1px;
color: #333333;
text-align: center;
margin-left: 5px;
white-space: nowrap;
}
.row_right {

13
src/views/modules/shequzhili/analysis/index.vue

@ -914,15 +914,14 @@ export default {
//
getLastMonthRange() {
const now = new Date();
const firstDayOfCurrentMonth = new Date(now.getFullYear(), now.getMonth(), 1);
const lastDayOfLastMonth = new Date(firstDayOfCurrentMonth - 1);
const firstDayOfLastMonth = new Date(lastDayOfLastMonth.getFullYear(), lastDayOfLastMonth.getMonth(), 1);
const startOfYear = new Date(now.getFullYear(), 0, 1); // 11
const endOfYear = new Date(now.getFullYear(), 11, 31); // 1231
firstDayOfLastMonth.setHours(0, 0, 0, 0);
lastDayOfLastMonth.setHours(23, 59, 59, 999);
startOfYear.setHours(0, 0, 0, 0);
endOfYear.setHours(23, 59, 59, 999);
this.formData.queryDateStart =this.formatDate1(firstDayOfLastMonth),
this.formData.queryDateEnd=this.formatDate1(lastDayOfLastMonth)
this.formData.queryDateStart =this.formatDate1(startOfYear),
this.formData.queryDateEnd=this.formatDate1(endOfYear)
console.log(this.formData.queryDateEnd);
},
//

Loading…
Cancel
Save