index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title>PersonMangerment</title>
  7. <link rel="stylesheet" href="../css/bootstrap.min.css">
  8. <link rel="stylesheet" href="../css/index.css">
  9. <script src="../jq/jquery-1.12.4.js"></script>
  10. <script src="../jq/index-jq.js"></script>
  11. <script src="../jq/jquery.mockjax.min.js"></script>
  12. <script src="../jq/echarts.min.js"></script>
  13. </head>
  14. <body>
  15. <header>
  16. <div class="header">
  17. <p class="h2">员工管理系统</p>
  18. <div class="form-group find">
  19. <input type="text" class="form-control" id="inputfind">
  20. </div>
  21. <div class="btnbox">
  22. <button type="button"
  23. class="btn btn-info btn-primary btn-sm"
  24. data-toggle="modal"
  25. id="findbtn" data-target="#findperson">查询
  26. </button>
  27. <button type="button" class="btn btn-success btn-primary btn-sm"
  28. data-toggle="modal" data-target="#addperson"
  29. id="addbtn">新增
  30. </button>
  31. <button type="button" class="btn btn-danger btn-primary btn-sm"
  32. id="delbtn" disabled>删除
  33. </button>
  34. </div>
  35. </div>
  36. </header>
  37. <article>
  38. <div class="content">
  39. <table class="table">
  40. <thead class="thead-light">
  41. <tr>
  42. <th>
  43. <input type="checkbox"
  44. aria-label="Radio button for following text input"
  45. id="checkall">
  46. </th>
  47. <th scope="col">#</th>
  48. <th scope="col">empName</th>
  49. <th scope="col">email</th>
  50. <th scope="col">gander</th>
  51. <th scope="col">deptName</th>
  52. <th scope="col">操作</th>
  53. </tr>
  54. </thead>
  55. <tbody>
  56. </tbody>
  57. </table>
  58. </div>
  59. </article>
  60. <div class="foot">
  61. <nav aria-label="Page navigation example col-sm-4">
  62. <ul class="pagination">
  63. <li class="page-item">
  64. <a id="prevent" class="page-link" href="javascript:;"
  65. aria-label="Previous" aria-disabled="true">
  66. <span aria-hidden="true">&laquo;</span>
  67. </a>
  68. </li>
  69. <li class="page-item"><a class="page-link pagebtn"
  70. href="javascript:;">1</a></li>
  71. <li class="page-item"><a class="page-link pagebtn"
  72. href="javascript:;">2</a></li>
  73. <li class="page-item"><a class="page-link pagebtn"
  74. href="javascript:;">3</a></li>
  75. <li class="page-item"><a class="page-link pagebtn"
  76. href="javascript:;">4</a></li>
  77. <li class="page-item"><a class="page-link pagebtn"
  78. href="javascript:;">5</a></li>
  79. <li class="page-item">
  80. <a id="next" class="page-link" href="javascript:;"
  81. aria-label="Next">
  82. <span aria-hidden="true">&raquo;</span>
  83. </a>
  84. </li>
  85. </ul>
  86. </nav>
  87. </div>
  88. <!--表格-->
  89. <div class="tabdiv">
  90. <div id="main" style="width: 600px;height: 360px;"></div>
  91. <div id="main1" style="width: 600px;height: 360px;"></div>
  92. </div>
  93. <!--增加-->
  94. <div class="modal fade" id="addperson" tabindex="-1"
  95. role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
  96. <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  97. <div class="modal-content">
  98. <div class="modal-header">
  99. <h5 class="modal-title"
  100. id="exampleModalCenterTitle">新增员工</h5>
  101. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  102. <span aria-hidden="true">&times;</span>
  103. </button>
  104. </div>
  105. <form action="">
  106. <!--empName-->
  107. <div class="form-group row">
  108. <label for="exampleFormControlInput1"
  109. class="col-sm-1 col-form-label">
  110. </label>
  111. <label for="exampleFormControlInput1"
  112. class="col-sm-2 col-form-label">empName
  113. </label>
  114. <div class="col-sm-7">
  115. <input type="text" class="form-control"
  116. id="exampleFormControlInput1"
  117. placeholder="empName" >
  118. </div>
  119. <div class="alert alert-danger none" role="alert">
  120. A simple danger alert—check it out!
  121. </div>
  122. </div>
  123. <!--email-->
  124. <div class="form-group row">
  125. <label for="exampleFormControlInput1"
  126. class="col-sm-1 col-form-label">
  127. </label>
  128. <label for="exampleFormControlInput2"
  129. class="col-sm-2 col-form-label">email
  130. </label>
  131. <div class="col-sm-7">
  132. <input type="email" class="form-control"
  133. id="exampleFormControlInput2"
  134. placeholder="email@gmail.com"
  135. >
  136. </div>
  137. <div class="alert alert-danger none" role="alert">
  138. A simple danger alert—check it out!
  139. </div>
  140. </div>
  141. <!--gender-->
  142. <div class="form-group row" id="addgender">
  143. <label for="exampleFormControlInput1"
  144. class="col-sm-1 col-form-label">
  145. </label>
  146. <label for="exampleFormControlInput2"
  147. class="col-sm-2 col-form-label">gender
  148. </label>
  149. <div class="form-check form-check-inline">
  150. <input class="form-check-input" type="radio"
  151. name="gender" id="inlineRadio1"
  152. value="1" checked="checked">
  153. <label class="form-check-label"
  154. for="inlineRadio1">男</label>
  155. </div>
  156. <div class="form-check form-check-inline">
  157. <input class="form-check-input" type="radio"
  158. name="gender" id="inlineRadio2"
  159. value="2">
  160. <label class="form-check-label"
  161. for="inlineRadio2">女</label>
  162. </div>
  163. </div>
  164. <!--deptName-->
  165. <div class="form-group row">
  166. <label for="exampleFormControlInput1"
  167. class="col-sm-1 col-form-label">
  168. </label>
  169. <label for="exampleFormControlInput2"
  170. class="col-sm-2 col-form-label">deptName
  171. </label>
  172. <div class="col-sm-3">
  173. <select class="form-control " id="adddept">
  174. <option value="1">开发部</option>
  175. <option value="2">测试部</option>
  176. </select>
  177. </div>
  178. </div>
  179. </form>
  180. <div class="modal-footer">
  181. <button type="button" class="btn btn-secondary"
  182. data-dismiss="modal">关闭</button>
  183. <button type="button" class="btn btn-primary"
  184. id="savebtn">保存
  185. </button>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <!--修改-->
  191. <div class="modal fade" id="editperson" tabindex="-1"
  192. role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
  193. <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
  194. <div class="modal-content">
  195. <div class="modal-header">
  196. <h5 class="modal-title"
  197. id="exampleModalCenterTitle2">员工修改</h5>
  198. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  199. <span aria-hidden="true">&times;</span>
  200. </button>
  201. </div>
  202. <form action="">
  203. <!--empName-->
  204. <div class="form-group row">
  205. <label for="exampleFormControlInput1"
  206. class="col-sm-1 col-form-label">
  207. </label>
  208. <label for="editInput1"
  209. class="col-sm-2 col-form-label">empName
  210. </label>
  211. <div class="col-sm-7">
  212. <input type="text" class="form-control"
  213. id="editInput1"
  214. placeholder="empName">
  215. </div>
  216. <div class="alert alert-danger none" role="alert">
  217. A simple danger alert—check it out!
  218. </div>
  219. </div>
  220. <!--email-->
  221. <div class="form-group row">
  222. <label for="exampleFormControlInput1"
  223. class="col-sm-1 col-form-label">
  224. </label>
  225. <label for="editInput2"
  226. class="col-sm-2 col-form-label">email
  227. </label>
  228. <div class="col-sm-7">
  229. <input type="text" class="form-control"
  230. id="editInput2"
  231. placeholder="email@gmail.com">
  232. </div>
  233. <div class="alert alert-danger none" role="alert">
  234. A simple danger alert—check it out!
  235. </div>
  236. </div>
  237. <!--gender-->
  238. <div class="form-group row" id="editgender">
  239. <label for="inlineRadio1"
  240. class="col-sm-1 col-form-label">
  241. </label>
  242. <label for="inlineRadio3"
  243. class="col-sm-2 col-form-label">gender
  244. </label>
  245. <div class="form-check form-check-inline">
  246. <input class="form-check-input" type="radio"
  247. name="gender" id="inlineRadio3"
  248. value="1" checked="checked">
  249. <label class="form-check-label"
  250. for="inlineRadio1">男</label>
  251. </div>
  252. <div class="form-check form-check-inline">
  253. <input class="form-check-input" type="radio"
  254. name="gender" id="inlineRadio4"
  255. value="2">
  256. <label class="form-check-label"
  257. for="inlineRadio2">女</label>
  258. </div>
  259. </div>
  260. <!--deptName-->
  261. <div class="form-group row" id="editdept">
  262. <label for="exampleFormControlInput1"
  263. class="col-sm-1 col-form-label">
  264. </label>
  265. <label for="exampleFormControlInput2"
  266. class="col-sm-2 col-form-label">deptName
  267. </label>
  268. <div class="col-sm-3">
  269. <select class="form-control ">
  270. <option value="1">开发部</option>
  271. <option value="2" selected="selected">
  272. 测试部</option>
  273. </select>
  274. </div>
  275. </div>
  276. </form>
  277. <div class="modal-footer">
  278. <button type="button" class="btn btn-primary"
  279. id="editbtn">保存
  280. </button>
  281. </div>
  282. </div>
  283. </div>
  284. </div>
  285. <!--查询-->
  286. <div class="modal fade" id="findperson" tabindex="-1" role="dialog">
  287. <div class="modal-dialog" role="document">
  288. <div class="modal-content">
  289. <div class="modal-header">
  290. <h5 class="modal-title">查询结果</h5>
  291. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  292. <span aria-hidden="true">&times;</span>
  293. </button>
  294. </div>
  295. <div class="modal-body">
  296. <p></p>
  297. </div>
  298. <div class="modal-footer">
  299. </div>
  300. </div>
  301. </div>
  302. </div>
  303. <script src="../jq/bootstrap.min.js"></script>
  304. </body>
  305. </html>