| | |
| | | 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); |