From e99fe0d12125c0c5dd80d90b445b308c13ecaec2 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 12 Jul 2023 10:12:51 +0800
Subject: [PATCH] 运维管理按钮显示权限,电子沙盘权限调整
---
src/api/user/index.js | 41 ++++++++++++++++++++++++-----------------
1 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/src/api/user/index.js b/src/api/user/index.js
index 22bd7c8..d1b0ad0 100644
--- a/src/api/user/index.js
+++ b/src/api/user/index.js
@@ -2,26 +2,33 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2023-02-20 14:16:37
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-02-20 14:23:06
+ * @LastEditTime: 2023-07-12 09:23:27
* @FilePath: \srs-police-affairs\src\api\user\index.js
- * @Description:
- *
- * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
+ * @Description:
+ *
+ * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
*/
-import request from "@/router/axios.js"
+import request from "@/router/axios.js";
-export const refreshToken = (refresh_token, tenantId) => request({
- url: '/api/blade-auth/oauth/token',
- method: 'post',
+export const refreshToken = (refresh_token, tenantId) =>
+ request({
+ url: "/api/blade-auth/oauth/token",
+ method: "post",
headers: {
- 'Tenant-Id': tenantId,
- 'Dept-Id': '',
- 'Role-Id': ''
+ "Tenant-Id": tenantId,
+ "Dept-Id": "",
+ "Role-Id": "",
},
params: {
- tenantId,
- refresh_token,
- grant_type: "refresh_token",
- scope: "all",
- }
-})
\ No newline at end of file
+ tenantId,
+ refresh_token,
+ grant_type: "refresh_token",
+ scope: "all",
+ },
+ });
+
+export const getButtons = () =>
+ request({
+ url: "/api/blade-system/menu/buttons",
+ method: "get",
+ });
--
Gitblit v1.9.3