You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

addbook.html 3.3 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
  3. <head>
  4. <th:block th:include="include :: header('新增联系人')" />
  5. <!-- <link th:href="@{/css/use/css1.css}" rel="stylesheet"/>-->
  6. <link th:href="@{/ruoyi/css/address.css}" rel="stylesheet"/>
  7. <th:block th:include="include :: bootstrap-duallistbox-css" />
  8. </head>
  9. <body class="white-bg">
  10. <!-- <ul class="nav head_top" id="tab">-->
  11. <!-- <div class="text-right hidden-print" style="float: right">-->
  12. <!-- <button class="btn btn-unite" onclick="submitHandler()">保存</button>-->
  13. <!-- </div>-->
  14. <!-- </ul>-->
  15. <div style="height: 50px;width: 100%"></div>
  16. <form class="form-horizontal" id="form-addressbook-add">
  17. <div class="col-md-12" >
  18. <div class="form-group" >
  19. <div class="address-from-left">
  20. <span style="color: red">*</span>姓名:
  21. </div>
  22. <div class="address-from-right">
  23. <input type="text" id="bookName" name="bookName" class="form-control" placeholder="请输入姓名">
  24. </div>
  25. </div>
  26. <div class="form-group" style="margin-top: 30px">
  27. <div class="address-from-left">
  28. 电话:
  29. </div>
  30. <div class="address-from-right">
  31. <input type="text" name="information" class="form-control" placeholder="请输入电话">
  32. </div>
  33. </div>
  34. <div class="form-group" style="margin-top: 30px">
  35. <div class="address-from-left">
  36. Email:
  37. </div>
  38. <div class="address-from-right">
  39. <input type="text" name="email" class="form-control" placeholder="请输入Email">
  40. </div>
  41. </div>
  42. <div class="form-group" style="margin-top: 30px">
  43. <div class="address-from-left">
  44. 其他联系方式:
  45. </div>
  46. <div class="address-from-right">
  47. <input type="text" name="othersInf" class="form-control" placeholder="请输入其他联系方式">
  48. </div>
  49. </div>
  50. <div class="form-group" style="margin-top: 30px">
  51. <div class="address-from-left">
  52. 分组归类:
  53. </div>
  54. <div class="address-from-right">
  55. <select name="addressGroup" class="form-control" placeholder="请选择分组归类">
  56. <option value="">默认分组</option>
  57. <option th:each="item : ${rwkAddressGroups}" th:text="${item.groupName}" th:value="${item.id}"></option>
  58. </select>
  59. </div>
  60. </div>
  61. </div>
  62. </form>
  63. <th:block th:include="include :: footer" />
  64. <script th:inline="javascript">
  65. var prefix = ctx + "system/addressbook";
  66. $("#form-addressbook-add").validate({
  67. focusCleanup: true
  68. });
  69. function submitHandler() {
  70. let bookname=$('#bookName').val();
  71. if (bookname == '') {
  72. $.modal.alertWarning("请填写姓名再提交!");
  73. return;
  74. }else {
  75. $.operate.save(prefix + "/address/add", $('#form-addressbook-add').serialize());
  76. $.modal.close();
  77. parent.location.reload(true);
  78. }
  79. }
  80. </script>
  81. </body>
  82. </html>