| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <html>
- <head>
- </head>
- <body class="body-bg-white">
- <div id="space-content">
- <div class="content-wrap">
- <!-- 列表 -->
- <div id="mescroll" class="mescroll">
- <div class="main-contacts-list">
- <ul>
- <li v-for="item in loginLogList" >
- <a href="javascript:;">
- <!-- 左边 -->
- <div class="contacts-list-left">
- <van-icon name="underway-o" />
- <van-image :src="item.icon_path" v-show="item.icon_path">
- <template v-slot:error>{{item.surname}}</template>
- </van-image>
- </div>
- <!-- 右边 -->
- <div class="contacts-list-right">
- <div class="contacts-list-title">
- {{item.ip}}
- </div>
- <div class="contacts-list-desc">
- <span>
- {{item.describe}}
- </span>
- <span class="contacts-list-time">
- {{item.login_time}}
- </span>
- </div>
- </div>
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- space.vue = new Vue({
- el: space.appContent,
- data: function () {
- return {
- obj: {
- rowCountPerPage: 20 // 每页的数据条数
- },
- loginLogList: [],
- }
- },
- mounted: function () {
- this.initData();
- },
- methods: {
- initData: function () {
- var that = this;
- space.plugin.paging.init({
- url: '@service{name: "personnel.person_login_log_list", params:`{personid:"${personid}"}` }@',
- data: that.obj,
- up: function (resp) {
- that.loginLogList.push.apply(that.loginLogList, resp.loginLogList);
- },
- down: function () {
- that.loginLogList = [];
- },
- });
- }
- }
- })
- </script>
- </html>
|