| | |
| | | data1.tokenAuth = user.tokenAuth; |
| | | data2.tokenAuth = user.tokenAuth; |
| | | data.data.deptId = selectDeptId; |
| | | data2.data.deptId = selectDeptId; |
| | | data1.data.deptId = selectDeptId; |
| | | dateTime = getDate(new Date()) |
| | | document.getElementById("date").value = dateTime; |
| | | console.log(JSON.stringify(data.data),"电子巡更记录","security-patrol") |
| | | //获取巡更记录 |
| | | getPatrolList() |
| | | |
| | |
| | | } else { |
| | | renderPatrol(); |
| | | mui.toast(result.msg); |
| | | console.log(JSON.stringify(result)) |
| | | // console.log(JSON.stringify(result)) |
| | | } |
| | | }, |
| | | error: function() { |
| | |
| | | if (PatrolList && PatrolList.length > 0) { |
| | | $.each(PatrolList, function(index, item) { |
| | | html += '<li><div class="item"><div class="top">' |
| | | html += '<div class="date">' + item.createTime + '</div><div class="r-btn" id = "' + item.id + |
| | | '">查看照片</div></div>'; |
| | | html += '<div class="date">' + item.createTime + '</div><div class="r-btn" id = "' + item.id + '">查看照片</div></div>'; |
| | | html += '<div class="cards"><div class="cd"><div class="con user">' |
| | | html += '<div class="tit">打卡人</div><div class="txt">' + item.userName + '</div></div></div>'; |
| | | html += '<div class="cd"><div class="con loc"><div class="tit">坐标</div>' |
| | |
| | | $('.m-pop').fadeOut(); |
| | | }); |
| | | |
| | | |
| | | |
| | | //使用相机拍照 |
| | | function cameraImg() { |
| | | var cmr = plus.camera.getCamera(); |
| | |
| | | }, |
| | | function(t, status) { //上传完成 |
| | | if (status == 200) { |
| | | var html = ''; |
| | | // var html = ''; |
| | | var obj = JSON.parse(t.responseText); |
| | | mui.toast("上传成功!"); |
| | | data1.data.imgName = obj.data.fileName; |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | // function getLatLon() { |
| | | // plus.geolocation.getCurrentPosition(function(position) { |