people.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3. <head>
  4. <th:block th:include="include :: header('网格员信息列表')" />
  5. </head>
  6. <body class="gray-bg">
  7. <div class="container-div">
  8. <div class="row">
  9. <div class="col-sm-12 search-collapse">
  10. <form id="formId">
  11. <div class="select-list">
  12. <ul>
  13. <li>
  14. <p>登录账号:</p>
  15. <input type="text" name="loginName"/>
  16. </li>
  17. <li>
  18. <p>姓名:</p>
  19. <input type="text" name="userName"/>
  20. </li>
  21. <li>
  22. <p>手机号码:</p>
  23. <input type="text" name="phonenumber"/>
  24. </li>
  25. <li>
  26. <p>性别:</p>
  27. <select name="sex" th:with="type=${@dict.getType('')}">
  28. <option value="">所有</option>
  29. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  30. </select>
  31. </li>
  32. <li>
  33. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  34. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  35. </li>
  36. </ul>
  37. </div>
  38. </form>
  39. </div>
  40. <div class="btn-group-sm" id="toolbar" role="group">
  41. <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="people:people:add">
  42. <i class="fa fa-plus"></i> 添加
  43. </a>
  44. </div>
  45. <div class="col-sm-12 select-table table-striped">
  46. <table id="bootstrap-table"></table>
  47. </div>
  48. </div>
  49. </div>
  50. <th:block th:include="include :: footer" />
  51. <script th:inline="javascript">
  52. var editFlag = [[${@permission.hasPermi('people:people:edit')}]];
  53. var removeFlag = [[${@permission.hasPermi('people:people:remove')}]];
  54. var prefix = ctx + "people/people";
  55. $(function() {
  56. var options = {
  57. url: prefix + "/list",
  58. createUrl: prefix + "/add",
  59. updateUrl: prefix + "/edit/{id}",
  60. removeUrl: prefix + "/remove",
  61. exportUrl: prefix + "/export",
  62. modalName: "人员信息",
  63. columns: [{
  64. checkbox: true
  65. },
  66. {
  67. field : 'userId',
  68. title : 'ID',
  69. visible: false
  70. },
  71. {
  72. field : 'loginName',
  73. title : '登录账号',
  74. visible: false
  75. },
  76. {
  77. field : 'userName',
  78. title : '姓名'
  79. },
  80. {
  81. field : 'phonenumber',
  82. title : '手机号码'
  83. },
  84. {
  85. field : 'sex',
  86. title : '性别',
  87. formatter: function (value, row, index) {
  88. if(value==0){
  89. return "男"
  90. }else if(value==1){
  91. return "女"
  92. }
  93. }
  94. },
  95. {
  96. field : 'isWuhan',
  97. title : '是否有武汉旅居史',
  98. formatter: function (value, row, index) {
  99. if(value==0){
  100. return "否"
  101. }else if(value==1){
  102. return "是"
  103. }
  104. }
  105. },
  106. {
  107. field : 'idCard',
  108. title : '身份证'
  109. },
  110. {
  111. field : 'communityName',
  112. title : '所处社区'
  113. },
  114. {
  115. title: '操作',
  116. align: 'center',
  117. formatter: function(value, row, index) {
  118. var actions = [];
  119. actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="openTemperature(\'' + row.userId + '\')"><i class="fa fa-edit"></i>体温</a> ');
  120. //actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.userId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
  121. //actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.userId + '\')"><i class="fa fa-remove"></i>删除</a>');
  122. return actions.join('');
  123. }
  124. }]
  125. };
  126. $.table.init(options);
  127. });
  128. function openTemperature(userId){
  129. $.modal.open("温度列表", "temperature/"+userId);
  130. }
  131. </script>
  132. </body>
  133. </html>