From f50e1f8f20d98a255044d938a7e98bfc0b18d1b0 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期五, 27 十二月 2024 16:51:46 +0800
Subject: [PATCH] 业务功能模块 管理功能模块更改菜单唯一标识以及样式 操作类型管理添加按钮图标功能 系统运行监控修改为当前在线人员信息图标
---
Source/plt-web/plt-web-ui/src/api/user.js | 119 ++++++++++++++---------------------------------------------
1 files changed, 28 insertions(+), 91 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/api/user.js b/Source/plt-web/plt-web-ui/src/api/user.js
index 3e9891a..f66c597 100644
--- a/Source/plt-web/plt-web-ui/src/api/user.js
+++ b/Source/plt-web/plt-web-ui/src/api/user.js
@@ -19,100 +19,37 @@
}
});
-export const loginBySocial = (tenantId, source, state) => request({
- url: '/api/blade-auth/oauth/token',
- method: 'post',
- headers: {
- 'Tenant-Id': tenantId
- },
- params: {
- tenantId,
- source,
- state,
- grant_type: "social",
- scope: "all",
- }
-})
-
-export const loginBySso = (state) => request({
- url: '/api/blade-auth/oauth/token',
- method: 'post',
- headers: {
- 'Tenant-Id': state
- },
- params: {
- tenantId: state,
- grant_type: "authorization_code",
- scope: "all",
- redirect_uri: website.redirectUri,
- }
-})
-
-export const refreshToken = (refresh_token, tenantId, deptId, roleId) => request({
- url: '/api/blade-auth/oauth/token',
- method: 'post',
- headers: {
- 'Tenant-Id': tenantId,
- 'Dept-Id': (website.switchMode ? deptId : ''),
- 'Role-Id': (website.switchMode ? roleId : '')
- },
- params: {
- tenantId,
- refresh_token,
- grant_type: "refresh_token",
- scope: "all",
- }
-});
-
-export const registerGuest = (form, oauthId) => request({
- url: '/api/blade-user/register-guest',
- method: 'post',
- params: {
- tenantId: form.tenantId,
- name: form.name,
- account: form.account,
- password: form.password,
- oauthId
- }
-});
-
-export const getButtons = () => request({
- url: '/api/blade-system/menu/buttons',
- method: 'get'
-});
-
-export const getCaptcha = () => request({
- url: '/api/blade-auth/oauth/captcha',
- method: 'get',
- authorization: false
-});
-
-export const logout = () => request({
- url: '/api/blade-auth/oauth/logout',
- method: 'get',
- authorization: false
-});
-
export const getUserInfo = () => request({
url: '/api/framework/loginController/getSessionInfo',
method: 'post'
});
-export const sendLogs = (list) => request({
- url: '/api/blade-auth/oauth/logout',
- method: 'post',
- data: list
-});
+// 淇敼瀵嗙爜
+export function changePassword(params) {
+ let formData = new FormData;
+ for (let key in params) {
+ formData.append(key, params[key])
+ }
+ return request({
+ url: "/api/userQueryController/changePassword",
+ method: "post",
+ data: formData
+ });
+}
-export const clearCache = () => request({
- url: '/api/blade-auth/oauth/clear-cache',
- method: 'get',
- authorization: false
-});
-
-export const selcetList = () => request({
- url: '/api/blade-system/tenant/tenant-map',
- method: 'get',
-});
-
-
+// 閫�鍑虹櫥褰�
+export function logout(params) {
+ return request({
+ url: "/api/framework/loginController/logout",
+ method: "post",
+ params
+ });
+}
+// 鎸夐挳鏉冮檺鎺ュ彛
+export function getButtons(params) {
+ return request({
+ url: "/api/smFunctionController/getAllButtons",
+ method: "get",
+ params
+ });
+}
--
Gitblit v1.9.3