| | |
| | | function init() { |
| | | var user = JSON.parse(localStorage.getItem('user')); |
| | | var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId')); |
| | | url = user.url + "/api-phone/v35/gateway"; |
| | | url = user.url + "/api/phone/v35/gateway"; |
| | | data.tokenAuth = user.tokenAuth; |
| | | data.data.deptId = selectDeptId; |
| | | |
| | |
| | | data: JSON.stringify(data), |
| | | success: function(result) { |
| | | if (result.code == "0000") { |
| | | console.log(JSON.stringify(result)) |
| | | recordData = result.data; |
| | | renderData(); |
| | | } else { |
| | |
| | | //渲染页面 |
| | | function renderData() { |
| | | var html = ''; |
| | | console.log(JSON.stringify(recordData)) |
| | | if (recordData) { |
| | | $("#inSumNum").html(recordData.inSumNum); |
| | | $("#inCompleteNum").html(recordData.inCompleteNum); |
| | |
| | | $("#outSumNum").html("0"); |
| | | $("#outCompleteNum").html("0"); |
| | | $("#perOutComplete").html("0"); |
| | | $("#time").html("更新时间:" + recordData.time); |
| | | $("#time").html("更新时间:2023-01-01 00:00:00"); |
| | | html += '<div class="id" style="text-align: center;">暂无实时信息</div>'; |
| | | } |
| | | $("#listInout").html(html); |