| | |
| | | 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; |
| | | |
| | |
| | | } else { |
| | | renderData(); |
| | | mui.toast(result.msg); |
| | | console.log(JSON.stringify(result)) |
| | | } |
| | | }, |
| | | error: function() { |
| | |
| | | if (inRecordData) { |
| | | sumHtml = inRecordData.sum; |
| | | var inRecordList = inRecordData.listInout; |
| | | console.log(JSON.stringify(inRecordList)) |
| | | // console.log(JSON.stringify(inRecordList)) |
| | | if (inRecordList && inRecordList.length > 0) { |
| | | $.each(inRecordList, function(index, item) { |
| | | html += '<div class="item">'; |