|
@@ -1,10 +1,9 @@
|
|
|
/*
|
|
|
* @Author: your name
|
|
|
* @Date: 2021-12-21 09:22:04
|
|
|
- * @LastEditTime: 2022-03-30 10:53:51
|
|
|
+ * @LastEditTime: 2022-04-06 10:43:22
|
|
|
* @LastEditors: your name
|
|
|
- * @Description: 权限项管理
|
|
|
- * @FilePath: \Foshan4A2.0\src\api\apiAuthority.js
|
|
|
+ * @Description: 权限项管理api
|
|
|
*/
|
|
|
import request from '@/utils/request'
|
|
|
|
|
@@ -13,8 +12,7 @@ export function GetAuthTree (params) {
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetAuthTree/v1',
|
|
|
method: 'post',
|
|
|
- data: params,
|
|
|
- proxy: true
|
|
|
+ data: params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -24,8 +22,7 @@ export function SaveApp (params) {
|
|
|
url: '/api/fs4a/SaveApp/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '应用新增',
|
|
|
- proxy: true
|
|
|
+ msg: '新增应用'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -34,8 +31,7 @@ export function GetAppDetails (params) {
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetAppDetails/v1',
|
|
|
method: 'post',
|
|
|
- data: params,
|
|
|
- proxy: true
|
|
|
+ data: params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -45,8 +41,7 @@ export function EditApp (params) {
|
|
|
url: '/api/fs4a/EditApp/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '应用编辑',
|
|
|
- proxy: true
|
|
|
+ msg: '更新应用信息'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -56,8 +51,7 @@ export function UpdateAppStatus (params) {
|
|
|
url: '/api/fs4a/UpdateAppStatus/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '应用状态变更',
|
|
|
- proxy: true
|
|
|
+ msg: '应用状态更新'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -67,8 +61,7 @@ export function DeleteApp (params) {
|
|
|
url: '/api/fs4a/DeleteApp/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '应用删除',
|
|
|
- proxy: true
|
|
|
+ msg: '删除应用'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -79,9 +72,8 @@ export function EditAuth (params) {
|
|
|
url: '/api/fs4a/EditAuth/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '权限项编辑',
|
|
|
- Ident: 'appupdate_box_save',
|
|
|
- proxy: true
|
|
|
+ msg: '更新权限信息',
|
|
|
+ Ident: 'appupdate_box_save'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -90,8 +82,7 @@ export function GetAuthDetails (params) {
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetAuthDetails/v1',
|
|
|
method: 'post',
|
|
|
- data: params,
|
|
|
- proxy: true
|
|
|
+ data: params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -100,8 +91,7 @@ export function GetAuthTo (params) {
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetAuthTo/v1',
|
|
|
method: 'post',
|
|
|
- data: params,
|
|
|
- proxy: true
|
|
|
+ data: params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -111,9 +101,8 @@ export function SaveAuth (params) {
|
|
|
url: '/api/fs4a/SaveAuth/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '权限项新增',
|
|
|
- Ident: 'authtree_btn_add_auth',
|
|
|
- proxy: true
|
|
|
+ msg: '新增权限',
|
|
|
+ Ident: 'authtree_btn_add_auth'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -123,9 +112,8 @@ export function DeleteAuth (params) {
|
|
|
url: '/api/fs4a/DeleteAuth/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '权限项删除',
|
|
|
- Ident: 'authtree_btn_del_auth',
|
|
|
- proxy: true
|
|
|
+ msg: '删除权限',
|
|
|
+ Ident: 'authtree_btn_del_auth'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -135,9 +123,8 @@ export function UpdateAuthStatus (params) {
|
|
|
url: '/api/fs4a/UpdateAuthStatus/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '权限项状态变更',
|
|
|
- Ident: 'authtree_btn_state_switch',
|
|
|
- proxy: true
|
|
|
+ msg: '权限状态更新',
|
|
|
+ Ident: 'authtree_btn_state_switch'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -147,9 +134,8 @@ export function SaveRole (params) {
|
|
|
url: '/api/fs4a/SaveRole/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '角色新增',
|
|
|
- Ident: 'role_add',
|
|
|
- proxy: true
|
|
|
+ msg: '新增角色',
|
|
|
+ Ident: 'role_add'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -158,8 +144,7 @@ export function QueryRole (params) {
|
|
|
return request({
|
|
|
url: '/api/fs4a/QueryRole/v1',
|
|
|
method: 'post',
|
|
|
- data: params,
|
|
|
- proxy: true
|
|
|
+ data: params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -168,8 +153,7 @@ export function GetUserList (params) {
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetUserList/v1',
|
|
|
method: 'post',
|
|
|
- data: params,
|
|
|
- proxy: true
|
|
|
+ data: params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -178,8 +162,7 @@ export function RoleDetails (params) {
|
|
|
return request({
|
|
|
url: '/api/fs4a/RoleDetails/v1',
|
|
|
method: 'post',
|
|
|
- data: params,
|
|
|
- proxy: true
|
|
|
+ data: params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -188,8 +171,7 @@ export function RoleAuths (params) {
|
|
|
return request({
|
|
|
url: '/api/fs4a/RoleAuths/v1',
|
|
|
method: 'post',
|
|
|
- data: params,
|
|
|
- proxy: true
|
|
|
+ data: params
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -199,9 +181,8 @@ export function DeleteRole (params) {
|
|
|
url: '/api/fs4a/DeleteRole/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '角色删除',
|
|
|
- Ident: 'role_delete',
|
|
|
- proxy: true
|
|
|
+ msg: '删除角色',
|
|
|
+ Ident: 'role_delete'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -211,9 +192,8 @@ export function EditRole (params) {
|
|
|
url: '/api/fs4a/EditRole/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '角色编辑',
|
|
|
- Ident: 'role_edit_save',
|
|
|
- proxy: true
|
|
|
+ msg: '更新角色信息',
|
|
|
+ Ident: 'role_edit_save'
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -223,8 +203,7 @@ export function UpdateStatus (params) {
|
|
|
url: '/api/fs4a/UpdateStatus/v1',
|
|
|
method: 'post',
|
|
|
data: params,
|
|
|
- msg: '角色状态变更',
|
|
|
- Ident: 'role_state_switch',
|
|
|
- proxy: true
|
|
|
+ msg: '角色状态更新',
|
|
|
+ Ident: 'role_state_switch'
|
|
|
})
|
|
|
}
|