note-list.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>巡检记录列表</title>
  6. <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
  7. <meta content="yes" name="apple-mobile-web-app-capable" />
  8. <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  9. <meta content="telephone=no" name="format-detection" />
  10. <!-- 引入YDUI样式 -->
  11. <link rel="stylesheet" href="http://m.ydui.org/css/ydui.css" />
  12. <!-- 引入YDUI自适应解决方案类库 -->
  13. <script src="http://m.ydui.org/js/ydui.flexible.js"></script>
  14. <style>
  15. body{
  16. background-color: #fff;
  17. font-size: 12px;
  18. }
  19. img{
  20. max-width: 100%;
  21. }
  22. i{
  23. font-size: 14px;
  24. }
  25. input {
  26. -webkit-appearance: textfield;
  27. background-color: white;
  28. -webkit-rtl-ordering: logical;
  29. cursor: text;
  30. padding: 1px;
  31. border-width: 2px;
  32. border-style: inset;
  33. border-color: initial;
  34. border-image: initial;
  35. }
  36. input[type="date"]:before{
  37. color: #2c3e50;
  38. content:attr(placeholder);
  39. }
  40. input[type="date"].full:before{
  41. color: #2c3e50;
  42. content: "" !important;
  43. }
  44. .filter-time{
  45. margin: 10px 30px;
  46. }
  47. .filter-time .form-control{
  48. /*display: block;*/
  49. width: 120px;
  50. height: 36px;
  51. padding: 6px 12px;
  52. font-size: 12px;
  53. color: #555;
  54. background-color: #fff;
  55. background-image: none;
  56. border: 1px solid #ecf0f1;
  57. border-radius: 4px;
  58. overflow: hidden;
  59. /*-webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;*/
  60. /*-o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;*/
  61. /*transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;*/
  62. }
  63. .filter-time .form-group{
  64. display: inline-block;
  65. }
  66. .filter-time .line{
  67. display: inline-block;
  68. color: #ECF0F1;
  69. margin:0 2px;
  70. }
  71. .filter-time .btn{
  72. border-radius: 0px;
  73. height: 30px;
  74. line-height: 30px;
  75. margin: 3px auto;
  76. }
  77. .btn-blue{
  78. background-color: #3498DB;
  79. color: #FFF;
  80. min-width: 65px;
  81. }
  82. .inline{
  83. display: inline-block;
  84. }
  85. .inline.right{
  86. float: right;
  87. }
  88. .card{
  89. background-color: #ecf0f1;
  90. font-size: 14px;
  91. position: relative;
  92. overflow: hidden;
  93. margin: 5px 20px;
  94. border-radius: 2px;
  95. background-color: #fff;
  96. background-clip: padding-box;
  97. /*border-bottom: 2px solid #ECF0F1;*/
  98. border-width: 2px;
  99. border-style: dashed;
  100. border-color: #ECF0F1;
  101. }
  102. .card-header{
  103. font-size: 14px;
  104. border-radius: 2px 2px 0 0;
  105. }
  106. .card-footer, .card-header {
  107. position: relative;
  108. display: -webkit-box;
  109. display: -webkit-flex;
  110. display: flex;
  111. min-height: 44px;
  112. padding: 10px 15px;
  113. -webkit-box-pack: justify;
  114. -webkit-justify-content: space-between;
  115. justify-content: space-between;
  116. -webkit-box-align: center;
  117. -webkit-align-items: center;
  118. align-items: center;
  119. }
  120. .card-footer:before, .card-header:after {
  121. position: absolute;
  122. top: 0;
  123. right: 0;
  124. left: 0;
  125. height: 1px;
  126. content: '';
  127. -webkit-transform: scaleY(.5);
  128. transform: scaleY(.5);
  129. background-color: #c8c7cc;
  130. }
  131. .card-header:after {
  132. top: auto;
  133. bottom: 0;
  134. }
  135. .card-footer {
  136. color: #6d6d72;
  137. border-radius: 0 0 2px 2px;
  138. }
  139. .card-content {
  140. font-size: 14px;
  141. position: relative;
  142. }
  143. .card-content-inner {
  144. position: relative;
  145. padding: 15px 0px;
  146. }
  147. .child-list{
  148. position: relative;
  149. margin:0 30px;
  150. padding: 0 40px;
  151. border-left: 1px solid #ecf0f1;
  152. }
  153. .child-list .icon{
  154. width: 24px;
  155. }
  156. .child-list .name{
  157. line-height: 30px;
  158. font-size: 14px;
  159. color: #2c3e50;
  160. }
  161. .child-list .time{
  162. line-height: 30px;
  163. font-size: 14px;
  164. color: #bdc3c7;
  165. }
  166. .child-list .status{
  167. line-height: 30px;
  168. font-size: 14px;
  169. color: #bdc3c7;
  170. }
  171. .child-list .icon{
  172. position: absolute;
  173. left: -13px;
  174. top: 4px;
  175. }
  176. .list{
  177. position: relative;
  178. }
  179. .list .more{
  180. position: absolute;
  181. right: 18px;
  182. top: 0px;
  183. width: 5px;
  184. }
  185. </style>
  186. </head>
  187. <body>
  188. <div class="g-flexview">
  189. <!-- 开始结束时间 -->
  190. <div class="filter-time">
  191. <div class="form-group">
  192. <input class="form-control" type="date" value="" placeholder="开始时间">
  193. </div>
  194. <div class="line"> — </div>
  195. <div class="form-group">
  196. <input class="form-control" type="date" value="" placeholder="结束时间">
  197. </div>
  198. <div class="inline right">
  199. <button type="submit" class="btn btn-blue">确定</button>
  200. </div>
  201. </div>
  202. <section id="J_List">
  203. <div id="J_ListContent">
  204. </div>
  205. </section>
  206. </div>
  207. <!-- 引入jQuery 2.0+ -->
  208. <script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
  209. <!-- 引入YDUI脚本 -->
  210. <script src="//m.ydui.org/js/ydui.js"></script>
  211. <script src="../js/cofig.js"></script>
  212. <script src="../js/function.js"></script>
  213. <script src="recordList.js"></script>
  214. <script>
  215. !function ($) {
  216. $("input[type=date]").on("input",function(){
  217. if($(this).val().length>0){
  218. $(this).addClass("full");
  219. }
  220. else{
  221. $(this).removeClass("full");
  222. }
  223. });
  224. }(jQuery);
  225. function f() {
  226. var obj = {
  227. startTime:'',
  228. endTime:'',
  229. }
  230. $.ajax({
  231. url:'http://apptest.jieweizhineng.com/api/swagger/api/record/v1/getRecordList',
  232. data:'',
  233. type:'get',
  234. success:function (res) {
  235. console.log(res)
  236. },
  237. error:function () {
  238. }
  239. })
  240. }
  241. </script>
  242. </body>
  243. </html>