importAndExportSuccess.blade.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <!-- CSRF Token -->
  7. <meta name="csrf-token" content="{{ csrf_token() }}">
  8. </head>
  9. <body >
  10. <div style="text-align: center" id="page">
  11. <h4 style="margin-bottom: 0">宝时物流 欢迎你</h4><br/>
  12. <h5 style="margin-top: 0;color:#B8860B ">
  13. @if($type=='登入')
  14. <b style="color: #2a9055">进场打卡</b>
  15. @endif
  16. @if($type=='登出')
  17. <b style="color: #2a9055">出场打卡</b>
  18. @endif
  19. </h5><br/>
  20. <h3 style="margin-bottom: 0">姓名:@if($full_name)<b style="color: #2a9055">{{$full_name}}</b>@endif&nbsp;&nbsp;&nbsp;&nbsp;进场时间:@if($checked_at)<b style="color: #2a9055">{{$checked_at}}</b> @endif</h3><br/>
  21. @if($type=='登入')
  22. <div v-if="userDutyCheck.verify_user_id"><h5 style="color: #2a9055" >门卫审核完成,请到工作组入组打卡审核</h5></div>
  23. <h5 v-else style="margin-top: 0;color: red">等待门卫审核,请勿关闭:<span id="_lefttime" ></span></h5>
  24. @endif
  25. @if($type=='登出')
  26. <h5 style="margin-top: 0;color: red">下班登出成功</h5>
  27. @endif
  28. </div>
  29. <script src="{{ asset('js/app.js') }}"></script>
  30. <script>
  31. new Vue({
  32. el:'#page',
  33. data:{
  34. userDutyCheck:{
  35. verify_user_id:''
  36. },
  37. },
  38. mounted(){
  39. initEcho();
  40. Echo.channel('{{$laravelEchoPrefix}}userDutyCheck').listen('GuardAuditEvent',(e)=>{
  41. let _this=this;
  42. let userDutyCheck=e.userDutyCheck;
  43. _this.userDutyCheck.verify_user_id=userDutyCheck.verify_user_id;
  44. });
  45. },
  46. });
  47. let secondsInit = 0;
  48. function _fresh()
  49. {
  50. secondsInit ++;
  51. let seconds = secondsInit;
  52. let result = '';
  53. if (seconds >= 3600)
  54. {
  55. let h = Math.floor(seconds / 3600);
  56. result += h + "小时";
  57. seconds -= 3600 * h;
  58. }
  59. if (seconds >= 60)
  60. {
  61. let m = Math.floor(seconds / 60);
  62. result += m + "分";
  63. seconds -= 60 * m;
  64. }
  65. result += seconds + "秒";
  66. document.getElementById('_lefttime').innerHTML = result;
  67. }
  68. _fresh();
  69. setInterval(_fresh,1000);
  70. </script>
  71. </body>
  72. </html>