log.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" ng-app="app">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  5. <meta http-equiv="Pragma" content="no-cache" />
  6. <meta http-equiv="Expires" content="0" />
  7. <title>日志管理</title>
  8. <link href="../../AFrontEnd/css/animate.css" rel="stylesheet" />
  9. <link href="../../AFrontEnd/css/fontawesome/css/font-awesome.css" rel="stylesheet" />
  10. <link href="../../AFrontEnd/css/bootstrap.css" rel="stylesheet" />
  11. <link href="../../AFrontEnd/css/style.css" rel="stylesheet" />
  12. <script>document.write("<link href='../../AFrontEnd/css/special.css?time=" + new Date().getTime() + "' rel='stylesheet'>");</script>
  13. </head>
  14. <body ng-controller="logCtrl as ctl">
  15. <div class="wrapper wrapper-content animated fadeInDown">
  16. <div class="row">
  17. <div class="col-md-12">
  18. <div class="ibox float-e-margins">
  19. <div class="ibox-content">
  20. <div class="row">
  21. <div class="col-md-12">
  22. <div class="sp-page">
  23. <div class="sp-page-col">
  24. <div class="sp-page-title">
  25. <span>日志管理</span>
  26. </div>
  27. </div>
  28. <div class="sp-page-col sp-pull-right">
  29. <span class="sp-btn-gray sp-btn-radius" ng-click="ctl.logKanBan()"><i class="fa fa-file sp-mr-5"></i>日志看板</span>
  30. <span class="sp-btn-gray sp-btn-radius" ng-click="ctl.openLayer()"><i class="fa fa-search sp-mr-5"></i>筛 选</span>
  31. <span class="sp-btn-gray sp-btn-radius" ng-click="ctl.refresh()"><i class="fa fa-refresh sp-mr-5"></i>刷 新</span>
  32. <span class="sp-btn-gray sp-btn-radius" ng-click="ctl.btnDelDate()"><i class="fa fa-trash sp-mr-5"></i>删除日志</span>
  33. </div>
  34. </div>
  35. <div class="sp-page sp-mt-10">
  36. <table class="sp-table">
  37. <thead>
  38. <tr>
  39. <th style="width:60px;">序号</th>
  40. <th>登录人员</th>
  41. <th>操作功能</th>
  42. <th>IP地址</th>
  43. <th>方式</th>
  44. <th style="width: 200px;">登录时间</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <tr dir-paginate="item in ctl.rows|itemsPerPage:ctl.itemsPerPage"
  49. total-items="ctl.total_count">
  50. <td ng-bind="(ctl.pageno-1)*ctl.itemsPerPage+($index+1)"></td>
  51. <td>
  52. <a class="sp-color-blue" ng-bind="item.LOGUSER"></a>
  53. </td>
  54. <td style="width: 200px;">
  55. <span style="width: 120px;display: inline-block" ng-bind="item.LOGFUNC"></span>
  56. <span ng-click="ctl.openAddFuncLayer(item)" style="padding:2px 6px; border: 1px solid #18b566; color: #18b566; border-radius: 3px;cursor: pointer" class="ng-hide" ng-show="item.LOGFUNC=='[需加功能标签]'">添加</span>
  57. <span ng-click="ctl.openEditFuncLayer(item)" style="padding:2px 6px; border: 1px solid #1f90d8; color: #1f90d8; border-radius: 3px;cursor: pointer" class="ng-hide" ng-show="item.LOGFUNC!='[需加功能标签]'">修改</span>
  58. </td>
  59. <td ng-bind="item.LOGIP"></td>
  60. <td ng-bind="item.REMARK"></td>
  61. <td ng-bind="item.LOGTIME"></td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. </div>
  66. <div class="sp-table-tip ng-hide" ng-show="ctl.noDataTip == 0">
  67. <i class="fa fa-exclamation-circle sp-mr-10"></i>您好,暂未查询到相关信息!
  68. </div>
  69. <div class="sp-page" ng-show="ctl.noDataTip != 0">
  70. <div class="sp-page-col sp-pull-right">
  71. <div class="sp-lh-34">
  72. 每页 <select ng-model="ctl.itemsPerPage" ng-options="x for x in ctl.pageOptions" ng-init="ctl.itemsPerPage=ctl.pageOptions[0]"></select> 条
  73. </div>
  74. </div>
  75. <div class="sp-page-col sp-pull-right">
  76. <dir-pagination-controls max-size="8" direction-links="true" boundary-links="true"
  77. on-page-change="ctl.getData(newPageNumber)">
  78. </dir-pagination-controls>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div class="sp-layer" data-title="筛选" id="layer_search" style="width:500px;">
  89. <div class="sp-layer-body">
  90. <table class="sp-grid-job">
  91. <tbody>
  92. <tr>
  93. <td>登录用户</td>
  94. <td>
  95. <input type="text" class="sp-input" ng-model="ctl.search.LOGUSER" placeholder="请输入关键字" />
  96. </td>
  97. </tr>
  98. <tr>
  99. <td style="width:100px;">系统功能</td>
  100. <td>
  101. <input type="text" class="sp-input" ng-model="ctl.search.LOGFUNC" placeholder="请输入关键字" />
  102. </td>
  103. </tr>
  104. </tbody>
  105. </table>
  106. <div class="sp-page sp-text-center sp-pt-10">
  107. <a class="sp-btn-blue sp-radius" ng-click="ctl.btnSearch()"><i class="fa fa-search sp-mr-5"></i>查 询</a>
  108. <a class="sp-btn-blue sp-btn-sm sp-radius" ng-click="ctl.closeSeach()">
  109. <i class="fa fa-close sp-mr-5"></i>重 置
  110. </a>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="sp-layer" data-title="删除日志" id="layer_delLog" style="width: 500px;">
  115. <div class="sp-layer-body">
  116. <table class="sp-grid-job">
  117. <tr>
  118. <td>请选择</td>
  119. <td>
  120. <select ng-model="ctl.delDateSelect">
  121. <option ng-repeat="item in ctl.logDate" value="{{item.CVAL}}">{{item.CNAME}}</option>
  122. </select>
  123. </td>
  124. </tr>
  125. </table>
  126. <div class="sp-page sp-text-center sp-mt-20">
  127. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnDelDateTrue()">
  128. <i class="fa fa-check sp-mr-5"></i>确定删除</button>
  129. <button class="sp-btn-default sp-btn-radius" ng-click="ctl.btnCancel()">
  130. <i class="fa fa-close sp-mr-5"></i>取消删除</button>
  131. </div>
  132. </div>
  133. </div>
  134. <!-- 新建、编辑操作功能 -->
  135. <div class="sp-layer" id="layer_func" style="width: 500px;">
  136. <div class="sp-layer-head" style="background:#2176d6">
  137. <div class="sp-page sp-text-center sp-font16">
  138. <span ng-bind="ctl.func.TITLE"></span>
  139. <div class="sp-layer-close" title="关闭" onclick="sp.closeCenter('.sp-layer')">
  140. ×
  141. </div>
  142. </div>
  143. </div>
  144. <div class="sp-layer-body">
  145. <table class="sp-grid-job">
  146. <tbody>
  147. <tr>
  148. <td>功能链接</td>
  149. <td><input type="text" readonly ng-model="ctl.func.logfuncurl" /></td>
  150. </tr>
  151. <tr>
  152. <td>API说明</td>
  153. <td><input type="text" readonly ng-model="ctl.func.logapi" /></td>
  154. </tr>
  155. <tr>
  156. <td>功能名称</td>
  157. <td><input type="text" ng-model="ctl.func.logfunc" /></td>
  158. </tr>
  159. </tbody>
  160. </table>
  161. <div class="sp-page sp-text-center sp-mt-20">
  162. <button class="sp-btn-blue sp-btn-radius" ng-click="ctl.btnDataSave()">
  163. <i class="fa fa-check sp-mr-5"></i>保 存
  164. </button>
  165. <button class="sp-btn-default sp-btn-radius" ng-click="ctl.btnDataCancel()">
  166. <i class="fa fa-close sp-mr-5"></i>取 消
  167. </button>
  168. </div>
  169. </div>
  170. </div>
  171. <script src="../../AFrontEnd/js/jquery/jquery-2.1.4.min.js"></script>
  172. <script src="../../AFrontEnd/js/angularjs/angular.js"></script>
  173. <script src="../../AFrontEnd/js/angularjs/dirPagination.js"></script>
  174. <script src="../../apiurljs.js"></script>
  175. <script src="../../js/sm4.js"></script>
  176. <script>document.write('<scri' + 'pt src="../../AFrontEnd/js/special/special.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');</script>
  177. <script>document.write('<scri' + 'pt src="js/log.js?time=' + new Date().getTime() + '" type="text/javascript"></s' + 'cript>');</script>
  178. <script src="../../AFrontEnd/js/special/spng.js"></script>
  179. </body>
  180. </html>