$(() => { let fun = () => { // onDutyPlan(1234,1202,33); $.getJSON('/preassemble/getTeamStatisticsJson', function (result) { storageStatistics(result.className, result.planAmount, result.actualAmount, result.differenceAmount,) }); //按型号统计产量 $.getJSON('/preassemble/getMaterialProdutionJson', function (result) { horizontalBarChart(result, document.getElementById("statisticalOutputByModel")); }); //小时产量 $.getJSON('/preassemble/getHourProdutionJson', function (result) { greenPolygonalHistogram(result, document.getElementById("hourlyOutputStatistics")); }); //库存统计 $.getJSON('/preassemble/getMaterialStoreJson', function (result) { threeDimensionalCylindrical(result, document.getElementById("inventoryStatistics")); }); setTimeout(fun, 10000) } fun() })