Browse Source

修改了传参问题

duanxiaoduan 1 year ago
parent
commit
4d4c2a9026
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/report/queryRepair/index.vue

+ 2 - 2
src/views/report/queryRepair/index.vue

@@ -453,12 +453,12 @@ export default {
     // XX月部门统计
     getChart5() {
       console.log(this.getChart5Parm.parammaps.deptName,'deptName')
-      let startTime = parseTime(this.getChart5Parm.parammaps.date,'{y}-{m}') + '-01'
+      let startTime = parseTime(this.getChart5Parm.parammaps.date,'{y}-{m}')
       let date =  new Date(this.getChart5Parm.parammaps.date);
       let year = date.getFullYear()
       let month = date.getMonth() + 1
       let lastDay = new Date(year, month, 0).getDate();
-      let endTime = parseTime(this.getChart5Parm.parammaps.date,'{y}-{m}') + '-' + lastDay
+      let endTime = parseTime(this.getChart5Parm.parammaps.date,'{y}-{m}')
       let data = {
         name:"geteqclassSumMonth",
         parammaps:{