diff --git a/src/api/user.js b/src/api/user.js index dabe483..6b95340 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -75,6 +75,13 @@ export function myOauth () { }) } +export function myPeer (params) { + return request({ + url: '/user/myPeer', + params, + }) +} + export function groupUsers (data) { return request({ url: '/user/groupUsers', diff --git a/src/router/index.js b/src/router/index.js index c74697e..95f23d0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -58,9 +58,15 @@ export const asyncRoutes = [ { path: '/', name: 'MyInfo', - meta: { title: 'Info', icon: 'User' /*keepAlive: true*/ }, + meta: { title: 'Userinfo', icon: 'User' /*keepAlive: true*/ }, component: () => import('@/views/my/info.vue'), }, + { + path: 'peer', + name: 'MyPeer', + meta: { title: 'MyPeer', icon: 'Monitor' /*keepAlive: true*/ }, + component: () => import('@/views/my/peer/index.vue'), + }, { path: 'address_book_collection', name: 'MyAddressBookCollection', diff --git a/src/utils/i18n/zh_CN.json b/src/utils/i18n/zh_CN.json index d50946c..b46c8ec 100644 --- a/src/utils/i18n/zh_CN.json +++ b/src/utils/i18n/zh_CN.json @@ -460,5 +460,14 @@ }, "Email": { "One": "邮箱" + }, + "MyPeer": { + "One": "我的设备" + }, + "View": { + "One": "查看" + }, + "Information": { + "One": "信息" } } diff --git a/src/views/my/peer/index.vue b/src/views/my/peer/index.vue new file mode 100644 index 0000000..7f0ffa2 --- /dev/null +++ b/src/views/my/peer/index.vue @@ -0,0 +1,367 @@ + + + + + + + + + + + + + + + + + {{ T('Filter') }} + {{ T('Export') }} + {{ T('BatchDelete') }} + + + + + + + + + {{ row.id }} + + + + + + + + + + {{ row.last_online_time ? timeAgo(row.last_online_time * 1000) : '-' }} + + + + + + + + + + + + {{ T('Link') }} + Web Client + {{ T('AddToAddressBook') }} + {{ T('View') }} + {{ T('Delete') }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ T('Cancel') }} + {{ T('Submit') }} + + + + + + + + +