daily.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <script type="text/javascript" src="/static/jquery-2.2.4.min.js"></script>
  8. <title>日常工作统计</title>
  9. <style>
  10. html,body,ul {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. html,body {
  15. overflow-y: scroll;
  16. -webkit-overflow-scrolling: touch;
  17. background-color: #F1F1F1;
  18. }
  19. .select-tab {
  20. margin: 10px 10px 0;
  21. border-radius: 10px;
  22. background: #fff;
  23. }
  24. .nav {
  25. display: flex;
  26. display: -webkit-flex;
  27. justify-content: center;
  28. -webkit-justify-content: center;
  29. align-items: center;
  30. border:1px solid #148d8f;
  31. border-radius:5px;
  32. list-style: none;
  33. }
  34. .nav>li {
  35. width: 100%;
  36. flex: 1;
  37. text-align: center;
  38. display: block;
  39. }
  40. .nav-tabs>li.active>a {
  41. line-height: 2;
  42. font-size: 16px;
  43. color: #fff;
  44. font-weight: 500;
  45. cursor: default;
  46. background-color: #148d8f;
  47. }
  48. .nav-tabs>li>a {
  49. line-height: 2;
  50. font-size: 16px;
  51. color: #999999;
  52. font-weight: 500;
  53. }
  54. a {
  55. display: block;
  56. text-decoration: none;
  57. }
  58. .daily-record {
  59. margin: 10px;
  60. border-radius: 10px;
  61. background: #fff;
  62. }
  63. .chart-wrapper {
  64. margin: 10px;
  65. border-radius: 10px;
  66. background: #fff;
  67. }
  68. .record-data {
  69. display: flex;
  70. display: -webkit-flex;
  71. justify-content: space-between;
  72. -webkit-justify-content: space-between;
  73. align-items: center;
  74. -webkit-box-align: center;
  75. height: 7vh;
  76. }
  77. .line {
  78. margin: 0 15px;
  79. height: 1px;
  80. background-color: #CCCCCC;
  81. }
  82. .daily-title, .daily-nums {
  83. display: inline;
  84. font-size: 17px;
  85. font-weight: 500;
  86. }
  87. .daily-title {
  88. margin-left: 15px;
  89. }
  90. .daily-nums {
  91. margin-right: 15px;
  92. color:rgba(153,153,153,1);
  93. }
  94. </style>
  95. </head>
  96. <body>
  97. <div class="select-tab">
  98. <ul class="nav nav-tabs">
  99. <li {eq name="type" value="0"}class="active"{/eq}>
  100. <a href="{:url('daily',['type'=>0,'orgId'=>$orgId])}">日统计</a>
  101. </li>
  102. <li {eq name="type" value="1"}class="active"{/eq}>
  103. <a href="{:url('daily',['type'=>1,'orgId'=>$orgId])}">月统计</a>
  104. </li>
  105. <li {eq name="type" value="2"}class="active"{/eq}>
  106. <a href="{:url('daily',['type'=>2,'orgId'=>$orgId])}">总统计</a>
  107. </li>
  108. </ul>
  109. </div>
  110. <div class="daily-record">
  111. <div class="record-data first" onclick="daily(this)" data-day="{$type}" data-orgId="{$orgId}">
  112. <span class="daily-title">工作地点</span>
  113. <span class="daily-nums">{$alladdr}</span>
  114. </div>
  115. <div class="line"></div>
  116. <div class="record-data" onclick="dailyRecord(this)" data-day="{$type}" data-orgId="{$orgId}">
  117. <span class="daily-title">工作记录</span>
  118. <span class="daily-nums">{$allcount}</span>
  119. </div>
  120. </div>
  121. </body>
  122. </html>
  123. <script>
  124. function daily(obj) {
  125. var orgId = $(obj).attr('data-orgId');
  126. var day = $(obj).attr('data-day');
  127. var url = "{:url('Statistics/dailyList')}?orgId="+orgId+'&day='+day;
  128. window.location.href=url;
  129. }
  130. function dailyRecord(obj) {
  131. var orgId = $(obj).attr('data-orgId');
  132. var day = $(obj).attr('data-day');
  133. var url = "{:url('Statistics/dailyRecordList')}?orgId="+orgId+'&day='+day;
  134. window.location.href=url;
  135. }
  136. </script>