Commit 271d1b1c authored by xxx's avatar xxx

1

parent 5739cd5a
......@@ -77,7 +77,7 @@ export default {
}
});
this.carWorkTimeData.listData[0].gongshi = allTime1;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? (100 - parseFloat(allEffic1 / num1)).toFixed(2) : 100;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? parseFloat(allEffic1 / num1).toFixed(2) : 0;
}
})
HttpReq.truckDispatching.apiManmadesChanjiedanYearQuery().then((res) => {
......@@ -102,7 +102,7 @@ export default {
}
});
this.carWorkTimeData.listData[0].gongshi = allTime1;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? (100 - parseFloat(allEffic1 / num1)).toFixed(2) : 100;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? parseFloat(allEffic1 / num1).toFixed(2) : 0;
}
})
HttpReq.truckDispatching.apiManmadesChanjiedanYearQuery().then((res) => {
......@@ -127,7 +127,7 @@ export default {
}
});
this.carWorkTimeData.listData[0].gongshi = allTime1;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? (100 - parseFloat(allEffic1 / num1)).toFixed(2) : 100;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? parseFloat(allEffic1 / num1).toFixed(2) : 0;
}
})
HttpReq.truckDispatching.apiManmadesChanjiedanYearQuery().then((res) => {
......@@ -155,7 +155,7 @@ export default {
}
});
this.carWorkTimeData.listData[0].gongshi = allTime1;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? (100 - parseFloat(allEffic1 / num1)).toFixed(2) : 100;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? parseFloat(allEffic1 / num1).toFixed(2) : 0;
}
})
HttpReq.truckDispatching.apiManmadesChanjiedanYearQuery().then((res) => {
......@@ -180,7 +180,7 @@ export default {
}
});
this.carWorkTimeData.listData[0].gongshi = allTime1;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? (100 - parseFloat(allEffic1 / num1)).toFixed(2) : 100;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? parseFloat(allEffic1 / num1).toFixed(2) : 0;
}
})
HttpReq.truckDispatching.apiManmadesChanjiedanYearQuery().then((res) => {
......@@ -205,7 +205,7 @@ export default {
}
});
this.carWorkTimeData.listData[0].gongshi = allTime1;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? (100 - parseFloat(allEffic1 / num1)).toFixed(2) : 100;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? parseFloat(allEffic1 / num1).toFixed(2) : 0;
}
})
HttpReq.truckDispatching.apiManmadesChanjiedanYearQuery().then((res) => {
......@@ -237,7 +237,7 @@ export default {
}
});
this.carWorkTimeData.listData[0].gongshi = allTime1;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? (100 - parseFloat(allEffic1 / num1)).toFixed(2) : 100;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? parseFloat(allEffic1 / num1).toFixed(2) : 0;
}
})
HttpReq.truckDispatching.apiManmadesChanjiedanYearQuery().then((res) => {
......@@ -262,7 +262,7 @@ export default {
}
});
this.carWorkTimeData.listData[0].gongshi = allTime1;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? (100 - parseFloat(allEffic1 / num1)).toFixed(2) : 100;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? parseFloat(allEffic1 / num1).toFixed(2) : 0;
}
})
HttpReq.truckDispatching.apiManmadesChanjiedanYearQuery().then((res) => {
......@@ -287,7 +287,7 @@ export default {
}
});
this.carWorkTimeData.listData[0].gongshi = allTime1;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? (100 - parseFloat(allEffic1 / num1)).toFixed(2) : 100;
this.carWorkTimeData.listData[0].xianzhi = allEffic1 ? parseFloat(allEffic1 / num1).toFixed(2) : 0;
}
})
HttpReq.truckDispatching.apiManmadesChanjiedanYearQuery().then((res) => {
......
......@@ -69,7 +69,10 @@ export default {
this.exploitationEfficiencyData.dayYield1 = text1;
this.exploitationEfficiencyData.dayMil1 = text2.toFixed(3);
let transitArr1 = [];
transitArr1.push((parseFloat(text2) / parseFloat(text1)).toFixed(2))
transitArr1.push((parseFloat(text2) / parseFloat(text1)).toFixed(2));
if(transitArr1[0] == 'NaN'){
transitArr1 = [0];
}
this.exploitationEfficiencyData.rate1 = transitArr1;
this.exploitationEfficiencyData.dayYield2 = text1;
HttpReq.truckDispatching.apiManmadeschanjiedanDayQuery({carclass:'铲车'}).then((reschanche) => {
......@@ -78,7 +81,10 @@ export default {
});
this.exploitationEfficiencyData.dayWorkTime2 = text3;
let transitArr2 = [];
transitArr2.push((parseFloat(text3) / parseFloat(text1)).toFixed(2))
transitArr2.push((parseFloat(text3) / parseFloat(text1)).toFixed(2));
if(transitArr2[0] == 'NaN'){
transitArr2 = [0];
}
this.exploitationEfficiencyData.rate2 = transitArr2;
this.initLiquidEchart1();
this.initLiquidEchart2();
......@@ -101,7 +107,10 @@ export default {
this.exploitationEfficiencyData.dayYield1 = text1;
this.exploitationEfficiencyData.dayMil1 = text2.toFixed(3);
let transitArr1 = [];
transitArr1.push((parseFloat(text2) / parseFloat(text1)).toFixed(2))
transitArr1.push((parseFloat(text2) / parseFloat(text1)).toFixed(2));
if(transitArr1[0] == 'NaN'){
transitArr1 = [0];
}
this.exploitationEfficiencyData.rate1 = transitArr1;
this.exploitationEfficiencyData.dayYield2 = text1;
HttpReq.truckDispatching.apiManmadeschanjiedanDayQuery({carclass:'铲车'}).then((reschanche) => {
......@@ -110,7 +119,10 @@ export default {
});
this.exploitationEfficiencyData.dayWorkTime2 = text3;
let transitArr2 = [];
transitArr2.push((parseFloat(text3) / parseFloat(text1)).toFixed(2))
transitArr2.push((parseFloat(text3) / parseFloat(text1)).toFixed(2));
if(transitArr2[0] == 'NaN'){
transitArr2 = [0];
}
this.exploitationEfficiencyData.rate2 = transitArr2;
this.initLiquidEchart1();
this.initLiquidEchart2();
......@@ -118,7 +130,7 @@ export default {
}
})
},10000)
},30000)
},
//矿石开采效率
initLiquidEchart1(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment