1003710200_edit.jsp 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <html>
  2. <head>
  3. </head>
  4. <body class="body-bg-white">
  5. <div id="space-content">
  6. <div class="content-wrap">
  7. <!-- 列表 -->
  8. <div id="mescroll" class="mescroll">
  9. <div class="main-contacts-list">
  10. <ul>
  11. <li v-for="item in loginLogList" >
  12. <a href="javascript:;">
  13. <!-- 左边 -->
  14. <div class="contacts-list-left">
  15. <van-icon name="underway-o" />
  16. <van-image :src="item.icon_path" v-show="item.icon_path">
  17. <template v-slot:error>{{item.surname}}</template>
  18. </van-image>
  19. </div>
  20. <!-- 右边 -->
  21. <div class="contacts-list-right">
  22. <div class="contacts-list-title">
  23. {{item.ip}}
  24. </div>
  25. <div class="contacts-list-desc">
  26. <span>
  27. {{item.describe}}
  28. </span>
  29. <span class="contacts-list-time">
  30. {{item.login_time}}
  31. </span>
  32. </div>
  33. </div>
  34. </a>
  35. </li>
  36. </ul>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </body>
  42. <script type="text/javascript">
  43. space.vue = new Vue({
  44. el: space.appContent,
  45. data: function () {
  46. return {
  47. obj: {
  48. rowCountPerPage: 20 // 每页的数据条数
  49. },
  50. loginLogList: [],
  51. }
  52. },
  53. mounted: function () {
  54. this.initData();
  55. },
  56. methods: {
  57. initData: function () {
  58. var that = this;
  59. space.plugin.paging.init({
  60. url: '@service{name: "personnel.person_login_log_list", params:`{personid:"${personid}"}` }@',
  61. data: that.obj,
  62. up: function (resp) {
  63. that.loginLogList.push.apply(that.loginLogList, resp.loginLogList);
  64. },
  65. down: function () {
  66. that.loginLogList = [];
  67. },
  68. });
  69. }
  70. }
  71. })
  72. </script>
  73. </html>