check_stuff_schedule.html 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>稽查</title>
  6. <link rel="import" href="/view/common/commoncsslink.html?__inline">
  7. <link rel="stylesheet" type="text/css" href="/css/main.css">
  8. <link rel="stylesheet" type="text/css" href="/node_modules/zui/dist/lib/calendar/zui.calendar.css">
  9. <link rel="import" href="/view/common/commonscriptlink.html?__inline">
  10. </head>
  11. <body>
  12. <link rel="import" href="/view/common/head.html?__inline">
  13. <!-- s-->
  14. <div id="main" class="container-fluid main">
  15. <div class="row">
  16. <div class="col-md-2" style="background: #328dc7;padding-right:0;z-index: 11;">
  17. <div id="mum_left" class="mum_left">
  18. <link rel="import" href="/view/mum.html?__inline">
  19. </div>
  20. </div>
  21. <div class="col-md-10">
  22. <div id="mum_right" class="mum_right">
  23. <div class="panel">
  24. <div class="panel-heading">
  25. <ol class="breadcrumb" style="margin-bottom: 0;">
  26. <li class="active">稽查人员排班</li>
  27. </ol>
  28. </div>
  29. <div class="panel-body" id="main_content">
  30. <!-- start -->
  31. <div class="container-fluid ">
  32. <div class="row">
  33. <div class="col-sm-12">
  34. <div id="calendar" class="calendar"></div>
  35. </div>
  36. </div>
  37. </div>
  38. <!-- end -->
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <!--对话框 开始-->
  45. <div class="modal fade" id="myModal">
  46. <div class="modal-dialog">
  47. <div class="modal-content">
  48. </div>
  49. <div class="modal-content">
  50. <div class="modal-header">
  51. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
  52. <h4 class="modal-title">添加排班-2017-03-05</h4>
  53. </div>
  54. <div class="modal-body">
  55. <!-- 添加对话框 -->
  56. <div class="container-fluid ">
  57. <form class="form-horizontal">
  58. <div class="form-group">
  59. <label for="exampleInputAccount4" class="col-sm-offset-1 col-sm-2">考核一组</label>
  60. <div class="col-md-6 col-sm-8">
  61. <select type="text" class="form-control" >
  62. <option>选择班次</option>
  63. </select>
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label for="exampleInputAccount4" class="col-sm-offset-1 col-sm-2">考核二组</label>
  68. <div class="col-md-6 col-sm-8">
  69. <select type="text" class="form-control" >
  70. <option>选择班次</option>
  71. </select>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label for="exampleInputAccount4" class="col-sm-offset-1 col-sm-2">考核三组</label>
  76. <div class="col-md-6 col-sm-8">
  77. <select type="text" class="form-control" >
  78. <option>选择班次</option>
  79. </select>
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label for="exampleInputAccount4" class="col-sm-offset-1 col-sm-2">考核四组</label>
  84. <div class="col-md-6 col-sm-8">
  85. <select type="text" class="form-control" >
  86. <option>选择班次</option>
  87. </select>
  88. </div>
  89. </div>
  90. <hr>
  91. <div class="form-group">
  92. <div class="col-sm-12">
  93. <button type="submit" style="float:right;margin-right:3px;" class="btn btn-info">生成本月排班</button>
  94. <button type="submit" style="float:right;margin-right:10px;" class="btn btn-info">生成今日排班</button>
  95. <button type="submit" style="float:right;margin-right:10px;" class="btn btn">关闭</button>
  96. </div>
  97. </div>
  98. </form>
  99. </div>
  100. <!--添加对话框结束-->
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. <!--对话框 结束-->
  106. </div>
  107. <!-- e-->
  108. <link rel="import" href="/view/common/foot.html?__inline">
  109. <script src="/node_modules/zui/dist/lib/calendar/zui.calendar.js"></script>
  110. </body>
  111. <style type="text/css" >
  112. span.time{
  113. display: none !important ;
  114. }
  115. div.day{
  116. text-align: center ;
  117. }
  118. </style>
  119. <script type="text/javascript">
  120. $(document).ready(function() {
  121. $('#calendar').calendar();
  122. var calendar = $('#calendar').data('zui.calendar');
  123. var newEvents =
  124. [
  125. {title: '考核二班-晚班', start: '2017-5-1 ', end: '2017-5-1 '},
  126. {title: '考核三班-晚班', start: '2017-5-1 ', end: '2017-5-1 '},
  127. {title: '考核四班-晚班', start: '2017-5-1 ', end: '2017-5-1 '},
  128. {title: '考核一班-休息', start: '2017-5-1 ', end: '2017-5-1 '},
  129. {title: '考核二班-晚班', start: '2017-5-12 ', end: '2017-5-12 '},
  130. {title: '考核三班-晚班', start: '2017-5-12 ', end: '2017-5-12 '},
  131. {title: '考核四班-晚班', start: '2017-5-12 ', end: '2017-5-12 '},
  132. {title: '考核一班-休息', start: '2017-5-12 ', end: '2017-5-12 '},
  133. {title: '未排班', start: '2017-5-11 ', end: '2017-5-11 '},
  134. {title: '未排班', start: '2017-5-11 ', end: '2017-5-11'},
  135. {title: '未排班', start: '2017-5-11 ', end: '2017-5-11 '},
  136. {title: '未排班', start: '2017-5-11 ', end: '2017-5-11 '},
  137. {title: '未排班', start: '2017-5-13 ', end: '2017-5-13 '},
  138. {title: '未排班', start: '2017-5-13 ', end: '2017-5-13'},
  139. {title: '未排班', start: '2017-5-13 ', end: '2017-5-13 '},
  140. {title: '未排班', start: '2017-5-13 ', end: '2017-5-13 '},
  141. ];
  142. calendar.addEvents(newEvents);
  143. $('#calendar').calendar().on("clickEvent.zui.calendar", function(event) {
  144. console.log(event.event);
  145. // alert(event.event.title);
  146. // console.log("你点击了一个事件");
  147. // 处理 clickEvent 事件
  148. // ...
  149. // 对话框弹出
  150. $('#myModal').modal();
  151. });
  152. })
  153. </script>
  154. </html>