personnalDeFrm.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <title></title>
  8. <link rel="stylesheet" type="text/css" href="../../css/api.css">
  9. <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
  10. <link rel="stylesheet" href="../../css/aui.css">
  11. <link rel="stylesheet" href="../../css/projeck.css">
  12. <style>
  13. body{
  14. background: #fff;
  15. }
  16. .nav_title{
  17. padding: 0 5px;
  18. background: #f3f6fa;
  19. }
  20. .nav_title li{
  21. text-align: center;
  22. font-size: 14px;
  23. padding: 12px 0 ;
  24. }
  25. .row_content{
  26. padding: 0 5px;
  27. }
  28. .row_content li{
  29. text-align: center;
  30. font-size: 13px;
  31. padding: 12px 0;
  32. align-items: center;
  33. }
  34. </style>
  35. </head>
  36. <body>
  37. <div class="api_layout">
  38. <div class="row_contents">
  39. <ul class="row_content" id="row_content">
  40. </ul>
  41. </div>
  42. </div>
  43. <div class="noText hide" id="nocode">
  44. <img src="../../image/noText.png" alt="">
  45. </div>
  46. <script type="text/template" id="templateStatu">
  47. {{~it:value}}
  48. <li class="flex-wrap after-border relative">
  49. <span class="flex-con">{{=value.name}}</span>
  50. <span class="flex-con">{{=value.depart_name}}</span>
  51. <span class="flex-con">{{=value.down_time}}</span>
  52. </li>
  53. {{~}}
  54. </script>
  55. <script src="../../script/api.js"></script>
  56. <!-- <script src="../../script/fastclick.min.js"></script> -->
  57. <!-- <script src="../../script/aui-toast.js" charset="utf-8"></script> -->
  58. <script src="../../script/doT.min.js"></script>
  59. <script src="../../script/config.js"></script>
  60. <script>
  61. var title = "";
  62. var toast = new auiToast();
  63. apiready = function () {
  64. var id = api.pageParam.id;
  65. monitorStatusFun(id);
  66. }
  67. // 全部数据详情
  68. function monitorStatusFun(id) {
  69. var data = {
  70. station_id:id
  71. }
  72. toast.loading({
  73. title: "加载中",
  74. duration: 2000
  75. });
  76. $http.fnReuestDataNologing(UrlRouter.getPersonnalDe,'','post',data,function(ret,err){
  77. toast.hide();
  78. if (ret.data.length == 0) {
  79. document.getElementById("nocode").style.display = 'block';
  80. return false;
  81. }else {
  82. document.getElementById("nocode").style.display = 'none';
  83. }
  84. if (ret && ret.code == 0) {
  85. if (ret.data.length > 0) {
  86. $apis.html(row_content,'#templateStatu',ret.data);
  87. } else {
  88. }
  89. }else {
  90. api.toast({
  91. msg: '网络请求超时,请稍后重试',
  92. duration: 2000,
  93. location: 'bottom'
  94. });
  95. }
  96. })
  97. }
  98. </script>
  99. </body>
  100. </html>