daily.html 4.1 KB

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