From 5fcfd0f8da0c7882650e072464b8bf1da88af961 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 20 Feb 2024 17:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/index.js | 15 +++ api/login.js | 16 ++- pages/index.vue | 307 ++++++++++++++++++++++++++++++++++++++++++++++-- pages/login.vue | 215 ++++++++++++++++++++++++++++++++- 4 files changed, 536 insertions(+), 17 deletions(-) create mode 100644 api/index.js diff --git a/api/index.js b/api/index.js new file mode 100644 index 0000000..39ab82d --- /dev/null +++ b/api/index.js @@ -0,0 +1,15 @@ +import request from '@/utils/request' +// 获取首页数量信息 +export function getCounts() { + return request({ + url: '/eam/device-accounts/getCounts', + 'method': 'GET' + }) +} +// 获取首页代办信息 +export function getToDoCountsByUser() { + return request({ + url: '/eam/device-accounts/getToDoCountsByUser', + 'method': 'GET' + }) +} diff --git a/api/login.js b/api/login.js index b79fd07..4c9663e 100644 --- a/api/login.js +++ b/api/login.js @@ -1,11 +1,15 @@ import request from '@/utils/request' // 登录方法 -export function login(username, password, captchaVerification) { +export function login(username, password, captchaVerification,tenantName,rememberMe,code,uuid) { const data = { username, password, - captchaVerification + captchaVerification, + tenantName, + rememberMe, + code, + uuid, } return request({ url: '/system/auth/login', @@ -19,12 +23,18 @@ export function login(username, password, captchaVerification) { // 获取用户详细信息 export function getInfo() { + return request({ + url: '/system/user/profile/get', + 'method': 'GET' + }) +} +// 获取权限 +export function getPermissionInfo() { return request({ url: '/system/auth/get-permission-info', 'method': 'GET' }) } - // 退出方法 export function logout() { return request({ diff --git a/pages/index.vue b/pages/index.vue index c6b28ca..b775629 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,24 +1,309 @@ \ No newline at end of file diff --git a/pages/login.vue b/pages/login.vue index 776720a..fc3cfb2 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -1,23 +1,232 @@ \ No newline at end of file