Authored by 王涛

性能曲线,展示异常

... ... @@ -179,25 +179,7 @@ export default {
let timeDay = parseInt(endTime / 60 / 60 / 24); //相差天数
return timeDay;
}
//计算需要传参的code值
// const calcCode=(val)=>{
// let code='';
// if(val>0 && val<7){
// code='time_scope_DAY';
// }else if(val>=7 && val<30){
// code='time_scope_WEEK';
// }else if(val>=30 && val<90){
// code='time_scope_MONTH';
// }else if(val>=90 && val<180){
// code='time_scope_QUARTER';
// }else if(val>=180 && val<365){
// code='time_scope_SEMESTER';
// }else if(val>=365){
// code='time_scope_YEAR';
// }
// return code;
// }
;''
//确定
const sureBtn=()=>{
loadPerformance();
... ...
... ... @@ -136,8 +136,6 @@ export default {
}
const getInfluxOption = (res) => {
debugger
if (res.map && Object.keys(res.map).length == 0) {
rateData.value = {
names: ['00:00', '01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'],
... ... @@ -372,6 +370,7 @@ export default {
keys,
optionDataInit,
getOptionData,
getInfluxOption,
getLineChart,
changeInterval
}
... ...