Bläddra i källkod

fix:周报坐标轴

guotianliang 4 år sedan
förälder
incheckning
979c52f919
1 ändrade filer med 34 tillägg och 5 borttagningar
  1. 34 5
      src/views/ReportForm/weekReport/reportDetail.vue

+ 34 - 5
src/views/ReportForm/weekReport/reportDetail.vue

@@ -231,9 +231,10 @@
                     <el-table-column property="serviceTime" width='110' label="周服务时长(h)" align="left"></el-table-column>
                     <el-table-column property="validProprotion" width='110' label="周有效数据(%)" align="left"></el-table-column>
                     <el-table-column property="hotNum" width='120' label="周累计热反馈数" align="left"></el-table-column>
-                    <el-table-column label="解释" align="center">
+                    <el-table-column label="解释" align="left">
                         <template slot-scope='{row}'>
-                            <el-input v-model="row.hotRemark" size="small" maxlength="24"  @blur="changeInput(row,'hot')"></el-input>
+                            {{row.hotRemark}}
+                            <!-- <el-input v-model="row.hotRemark" size="small" maxlength="24"  @blur="changeInput(row,'hot')"></el-input> -->
                         </template>
                     </el-table-column>
                   </el-table>
@@ -246,9 +247,10 @@
                     <el-table-column property="serviceTime" width='110' label="周服务时长(h)" align="left"></el-table-column>
                     <el-table-column property="validProprotion" width='110' label="周有效数据(%)" align="left"></el-table-column>
                     <el-table-column property="coldNum" width='120' label="周累计冷反馈数" align="left"></el-table-column>
-                    <el-table-column label="解释" align="center">
+                    <el-table-column label="解释" align="left">
                         <template slot-scope='{row}'>
-                            <el-input v-model="row.coldRemark"  maxlength="24" size="small" @blur="changeInput(row,'cold')"></el-input>
+                            {{row.coldRemark}}
+                            <!-- <el-input v-model="row.coldRemark"  maxlength="24" size="small" @blur="changeInput(row,'cold')"></el-input> -->
                         </template>
                     </el-table-column>
                   </el-table>
@@ -911,7 +913,7 @@ export default {
         this.dataChange([this.comstartDate,this.comendDate])
     },
     async mounted(){
-
+        this.timeArray=this.generateTime()
         await this.getSeasontype();
         this.getWeekSpace('floor');
         this.getWeekSpace();
@@ -1332,6 +1334,16 @@ export default {
             }
             return startList
         },
+        generateTime(){
+            let Timearray=[
+           "060000","061500","063000","064500","070000","071500","073000","074500","080000", "081500","083000","084500","090000", "091500","093000"
+            ,"094500", "100000", "101500","103000","104500","110000", "111500", "113000", "114500","120000", "121500","123000", "124500"
+            ,"130000", "131500","133000","134500","140000", "141500", "143000", "144500","150000","151500","153000", "154500", "160000"
+            ,"161500", "163000", "164500","170000", "171500","173000","174500", "180000", "181500","183000", "184500", "190000","191500"
+            ,"193000", "194500", "200000"
+            ]
+            return Timearray
+        },
         arreyInit(arr,type){
             if(arr&&!arr.length){
                 return
@@ -1452,6 +1464,23 @@ export default {
                         return item
                     }
                 })
+                this.daysDate.forEach(item=>{
+                    let timeObj=item.chartDate.time;
+                    (timeObj&&timeObj.length!==57)&&this.timeArray.forEach((items,index)=>{
+                        if(!timeObj.includes(items)){
+                            item.chartDate.avgTemp&&item.chartDate.avgTemp.splice(index,0,null)
+                            item.chartDate.coldSpaceNum&&item.chartDate.coldSpaceNum.splice(index,0,0)
+                            item.chartDate.coldSpaceProprotion&&item.chartDate.coldSpaceProprotion.splice(index,0,0)
+                            item.chartDate.hotSpaceNum&&item.chartDate.hotSpaceNum.splice(index,0,0)
+                            item.chartDate.hotSpaceProprotion&&item.chartDate.hotSpaceProprotion.splice(index,0,0)
+                            item.chartDate.normalSpaceNum&&item.chartDate.normalSpaceNum.splice(index,0,0);
+                            item.chartDate.normalSpaceProprotion&&item.chartDate.normalSpaceProprotion.splice(index,0,0);
+                            (items.slice(1)=='0000')?item.chartDate.outSideTemp.splice(Number(items.slice(0,2))-6,0,'-'):item.chartDate.outSideTemp.splice(index,0,null)
+                            item.chartDate.spaceNum&&item.chartDate.spaceNum.splice(index,0,0)
+                            item.chartDate.time.splice(index,0,items)
+                        }
+                    })
+                })
                 console.log(this.daysDate,"this.daysDate")
                 this.dataDeal=true;
             }else{