|
@@ -1079,7 +1079,7 @@ export default {
|
|
components:{lineChart,barChart,chartLegend,Tabs,ringChart,envSurvey},
|
|
components:{lineChart,barChart,chartLegend,Tabs,ringChart,envSurvey},
|
|
beforeMount(){
|
|
beforeMount(){
|
|
// console.log(this.$route,"---------------------------------------")
|
|
// console.log(this.$route,"---------------------------------------")
|
|
- // http://192.168.0.24:9906/weekpdf?startDate=20201207&endDate=20201213&projectName=你好&projectId=Pj1101080259
|
|
|
|
|
|
+ // http://192.168.0.24:9906/weekpdf?startDate=20210118&endDate=20210124&projectName=你好&projectId=Pj1101080259
|
|
this.comstartDate= this.$route.query.startDate;
|
|
this.comstartDate= this.$route.query.startDate;
|
|
this.comendDate=this.$route.query.endDate;
|
|
this.comendDate=this.$route.query.endDate;
|
|
this.projectName=this.$route.query.projectName;
|
|
this.projectName=this.$route.query.projectName;
|
|
@@ -1215,7 +1215,7 @@ export default {
|
|
this.getTableList("hotProprotion","hotgirdDate","hotRemark");
|
|
this.getTableList("hotProprotion","hotgirdDate","hotRemark");
|
|
this.getTableList("coldProprotion","coldgirdDate","coldRemark");
|
|
this.getTableList("coldProprotion","coldgirdDate","coldRemark");
|
|
this.getTableList("co2AbnormalTime","co2girdDate","co2Remark",1000);
|
|
this.getTableList("co2AbnormalTime","co2girdDate","co2Remark",1000);
|
|
- this.getTableList("hchoAbnormalTime","hchogirdDate","hchoRemark",1);
|
|
|
|
|
|
+ this.getTableList("hchoAbnormalTime","hchogirdDate","hchoRemark",0.1);
|
|
this.getDayDate();
|
|
this.getDayDate();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1255,7 +1255,11 @@ export default {
|
|
let ctypeMap={4:0,6:1,8:2,5:3,7:4};
|
|
let ctypeMap={4:0,6:1,8:2,5:3,7:4};
|
|
let ctype= ctypeMap[item.type];
|
|
let ctype= ctypeMap[item.type];
|
|
//4 5 6 7 8
|
|
//4 5 6 7 8
|
|
- this.surveyTable[ctype].weekAvg =(typeof item.avgDate =="number")?item.avgDate.toFixed(this.surveyTable[ctype].init):'--';
|
|
|
|
|
|
+ if(ctype==4){
|
|
|
|
+ this.surveyTable[ctype].weekAvg =(typeof item.avgDate =="number")?(item.avgDate*this.multipleInit).toFixed(this.surveyTable[ctype].init):'--';
|
|
|
|
+ }else{
|
|
|
|
+ this.surveyTable[ctype].weekAvg =(typeof item.avgDate =="number")?item.avgDate.toFixed(this.surveyTable[ctype].init):'--';
|
|
|
|
+ }
|
|
(typeof item.normalProprotion=="number")&&(this.surveyTable[ctype].weeknormalProprotion=(item.normalProprotion*100).toFixed(0));
|
|
(typeof item.normalProprotion=="number")&&(this.surveyTable[ctype].weeknormalProprotion=(item.normalProprotion*100).toFixed(0));
|
|
(typeof item.coldProprotion=="number")&&(this.surveyTable[ctype].weekcoldProprotion=(item.coldProprotion*100).toFixed(0));
|
|
(typeof item.coldProprotion=="number")&&(this.surveyTable[ctype].weekcoldProprotion=(item.coldProprotion*100).toFixed(0));
|
|
(typeof item.hotProprotion=="number")&&(this.surveyTable[ctype].weekhotProprotion=(item.hotProprotion*100).toFixed(0));
|
|
(typeof item.hotProprotion=="number")&&(this.surveyTable[ctype].weekhotProprotion=(item.hotProprotion*100).toFixed(0));
|
|
@@ -1595,6 +1599,7 @@ export default {
|
|
let dataList = this.generateDate(startTime,14);
|
|
let dataList = this.generateDate(startTime,14);
|
|
let copeArr=dataList.map(index=>{
|
|
let copeArr=dataList.map(index=>{
|
|
let items = arr.filter(v=> index ===v.date).length&&arr.filter(v=> index===v.date)[0];
|
|
let items = arr.filter(v=> index ===v.date).length&&arr.filter(v=> index===v.date)[0];
|
|
|
|
+ items.avgPm2d5&&(items.avgPm2d5 =items.avgPm2d5*this.multipleInit);
|
|
let itemsModel={
|
|
let itemsModel={
|
|
avgTemp: -9999,
|
|
avgTemp: -9999,
|
|
coldLastTime:-9999,
|
|
coldLastTime:-9999,
|
|
@@ -1819,6 +1824,12 @@ export default {
|
|
return this.surveyTable.findIndex(item=>{
|
|
return this.surveyTable.findIndex(item=>{
|
|
return item.id==this.envType
|
|
return item.id==this.envType
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ multipleInit(){
|
|
|
|
+ if(this.projectId==="Pj1101080259"){
|
|
|
|
+ return 1000;
|
|
|
|
+ }
|
|
|
|
+ return 1
|
|
}
|
|
}
|
|
},
|
|
},
|
|
}
|
|
}
|