Commit 6275a44b authored by xxx's avatar xxx

1

parent 9ff6cec6
...@@ -258,10 +258,10 @@ export default { ...@@ -258,10 +258,10 @@ export default {
if(res.length != 0){ if(res.length != 0){
this.carryCenterData.dayAllCarry1 = res[0].finish; this.carryCenterData.dayAllCarry1 = res[0].finish;
this.carryCenterData.dayAverageCarry1 = parseFloat(res[0].pfin).toFixed(2); this.carryCenterData.dayAverageCarry1 = parseFloat(res[0].pfin).toFixed(2);
this.carryCenterData.dayAllMil1 = 0; this.carryCenterData.dayAllMil1 = res[0].allmil ? parseFloat(res[0].allmil).toFixed(2) : 0;
this.carryCenterData.dayAllCarNum = res[0].num; this.carryCenterData.dayAllCarNum = res[0].num;
this.carryCenterData.singleAverageTime = parseFloat(res[0].time).toFixed(2); this.carryCenterData.singleAverageTime = parseFloat(res[0].time).toFixed(2);
this.carryCenterData.singleAverageMil = 0; this.carryCenterData.singleAverageMil = res[0].averagemil ? parseFloat(res[0].averagemil).toFixed(2) : 0;
} }
}) })
//中间echarts装载数据 //中间echarts装载数据
...@@ -361,10 +361,10 @@ export default { ...@@ -361,10 +361,10 @@ export default {
if(res.length != 0){ if(res.length != 0){
this.carryCenterData.dayAllCarry1 = res[0].finish; this.carryCenterData.dayAllCarry1 = res[0].finish;
this.carryCenterData.dayAverageCarry1 = parseFloat(res[0].pfin).toFixed(2); this.carryCenterData.dayAverageCarry1 = parseFloat(res[0].pfin).toFixed(2);
this.carryCenterData.dayAllMil1 = 0; this.carryCenterData.dayAllMil1 = res[0].allmil ? parseFloat(res[0].allmil).toFixed(2) : 0;
this.carryCenterData.dayAllCarNum = res[0].num; this.carryCenterData.dayAllCarNum = res[0].num;
this.carryCenterData.singleAverageTime = parseFloat(res[0].time).toFixed(2); this.carryCenterData.singleAverageTime = parseFloat(res[0].time).toFixed(2);
this.carryCenterData.singleAverageMil = 0; this.carryCenterData.singleAverageMil = res[0].averagemil ? parseFloat(res[0].averagemil).toFixed(2) : 0;
} }
}) })
//中间echarts装载数据 //中间echarts装载数据
......
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