Commit 97ed2825 by 孙香冬

no message

parent 38a33cb6
......@@ -7,4 +7,5 @@
/video
*test*
*.log
*.xml
dist/嘉定汽车城用户手册.docx
......@@ -225,7 +225,6 @@ export async function carInfo(req, res) {
let isNull = false
let 监控视频列表 = [];
if (testVideoData && videoPictureData) {
let map = {};
videoPictureData.vehiclePhotoList.forEach(info => {
let { photo, photoChannel } = info;
......@@ -251,8 +250,4 @@ export async function carInfo(req, res) {
}
res.send(ret);
}
function isNull() {
}
\ No newline at end of file
......@@ -70,7 +70,7 @@ export async function getQytlzdjs() {
let endTime = moment().format('YYYY-MM-DD');
let data = await getInterfaceByInterfaceName(dataCenterInterfaceConfig.enterpriseExitRate, {startTime, endTime});
let { enterpriseExitList } = data;
enterpriseExitList.sort( (a, b) => {
if ( !a.ratio ) {
a.ratio = Math.ceil((a.exitCount/a.autoMileage)*100/100);
......@@ -91,22 +91,20 @@ export async function getQytlzdjs() {
let 企业名称data = [];
let 次数data = [];
let 里程data = [];
let 比率data = [];
let enterpriseExitListTop10 = enterpriseExitList.slice(0, 10);
let enterpriseExitListTop10 = enterpriseExitList.slice(0, 10);
enterpriseExitListTop10.forEach( info => {
let {autoMileage, enterpriseName, exitCount, ratio} = info;
企业名称data.push(enterpriseName);
次数data.push(exitCount + "次");
里程data.push(autoMileage + "公里");
次数data.push(ratio + "次/公里");
比率data.push(ratio + "%")
});
let 企业测试自动驾驶比率 = [
{key:"企业名称", values: 企业名称data},
{key:"次数", values: 次数data},
{key:"里程", values: 里程data},
{key:"次/公里", values: 次数data},
{key:"比率", values: 比率data},
];
......
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