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 @@
- 1
+
+
+
+
+
+
+
+
+ {{counts.allCount || 0}}
+ 设备总数
+
+
+ {{counts.breakDownCount || 0}}
+ 故障中设备
+
+
+ {{counts.repairCount || 0}}
+ 已报修设备
+
+
+
+
+ {{counts1.gongdan || 0}}
+ 待接单
+
+
+ {{counts1.yanzheng || 0}}
+ 待验证
+
+
+ {{counts1.shenpi || 0}}
+ 待审核
+
+
+
+
+
+
+ 设备维护
+
+
+
+
+ 设备报修
+
+
+
+
+
+ 维修工单
+
+
+
+
+
+ 检修工单
+
+
+
+
+
+ 点检工单
+
+
+
+
+
+ 保养工单
+
+
+
+
+
+
+
+ 模具维护
+
+
+
+
+ 设备报修
+
+
+
+
+
+ 维修工单
+
+
+
+
+
+ 检修工单
+
+
+
+
+
+ 保养工单
+
+
+
+
+ 备件管理
+
+
+
+
+ 领用申请审批
+
+
+
+
+
+ 领用申请
+
+
+
+
+
+ 维修工单
+
+
+
+
+
\ 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