|
@@ -7,9 +7,10 @@
|
|
|
* @FilePath: \Foshan4A2.0\src\api\apiAuthority.js
|
|
|
*/
|
|
|
import request from '@/utils/axiosReq'
|
|
|
-
|
|
|
+import { getToken } from '@/utils/auth'
|
|
|
//权限树查询
|
|
|
export function GetAuthTree(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetAuthTree/v1',
|
|
|
method: 'post',
|
|
@@ -19,6 +20,7 @@ export function GetAuthTree(params) {
|
|
|
|
|
|
//应用新增保存
|
|
|
export function SaveApp(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/SaveApp/v1',
|
|
|
method: 'post',
|
|
@@ -28,6 +30,7 @@ export function SaveApp(params) {
|
|
|
|
|
|
//应用详情查询
|
|
|
export function GetAppDetails(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetAppDetails/v1',
|
|
|
method: 'post',
|
|
@@ -37,6 +40,7 @@ export function GetAppDetails(params) {
|
|
|
|
|
|
//应用修改保存
|
|
|
export function EditApp(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/EditApp/v1',
|
|
|
method: 'post',
|
|
@@ -46,6 +50,7 @@ export function EditApp(params) {
|
|
|
|
|
|
//应用状态变更
|
|
|
export function UpdateAppStatus(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/UpdateAppStatus/v1',
|
|
|
method: 'post',
|
|
@@ -55,6 +60,7 @@ export function UpdateAppStatus(params) {
|
|
|
|
|
|
//应用删除
|
|
|
export function DeleteApp(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/DeleteApp/v1',
|
|
|
method: 'post',
|
|
@@ -64,6 +70,7 @@ export function DeleteApp(params) {
|
|
|
|
|
|
//权限项修改保存
|
|
|
export function EditAuth(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/EditAuth/v1',
|
|
|
method: 'post',
|
|
@@ -73,6 +80,7 @@ export function EditAuth(params) {
|
|
|
|
|
|
//权限详情查询
|
|
|
export function GetAuthDetails(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetAuthDetails/v1',
|
|
|
method: 'post',
|
|
@@ -82,6 +90,7 @@ export function GetAuthDetails(params) {
|
|
|
|
|
|
//根据权限获取授权规则
|
|
|
export function GetAuthTo(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetAuthTo/v1',
|
|
|
method: 'post',
|
|
@@ -91,6 +100,7 @@ export function GetAuthTo(params) {
|
|
|
|
|
|
//权限项新增保存
|
|
|
export function SaveAuth(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/SaveAuth/v1',
|
|
|
method: 'post',
|
|
@@ -100,6 +110,7 @@ export function SaveAuth(params) {
|
|
|
|
|
|
//权限项删除
|
|
|
export function DeleteAuth(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/DeleteAuth/v1',
|
|
|
method: 'post',
|
|
@@ -109,6 +120,7 @@ export function DeleteAuth(params) {
|
|
|
|
|
|
//权限状态变更
|
|
|
export function UpdateAuthStatus(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/UpdateAuthStatus/v1',
|
|
|
method: 'post',
|
|
@@ -118,6 +130,7 @@ export function UpdateAuthStatus(params) {
|
|
|
|
|
|
//角色新增保存
|
|
|
export function SaveRole(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/SaveRole/v1',
|
|
|
method: 'post',
|
|
@@ -127,6 +140,7 @@ export function SaveRole(params) {
|
|
|
|
|
|
//角色列表查询
|
|
|
export function QueryRole(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/QueryRole/v1',
|
|
|
method: 'post',
|
|
@@ -136,6 +150,7 @@ export function QueryRole(params) {
|
|
|
|
|
|
//账号列表查询
|
|
|
export function GetUserList(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/GetUserList/v1',
|
|
|
method: 'post',
|
|
@@ -145,6 +160,7 @@ export function GetUserList(params) {
|
|
|
|
|
|
//角色明细查询
|
|
|
export function RoleDetails(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/RoleDetails/v1',
|
|
|
method: 'post',
|
|
@@ -154,6 +170,7 @@ export function RoleDetails(params) {
|
|
|
|
|
|
//角色权限列表
|
|
|
export function RoleAuths(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/RoleAuths/v1',
|
|
|
method: 'post',
|
|
@@ -163,6 +180,7 @@ export function RoleAuths(params) {
|
|
|
|
|
|
//角色删除
|
|
|
export function DeleteRole(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/DeleteRole/v1',
|
|
|
method: 'post',
|
|
@@ -172,6 +190,7 @@ export function DeleteRole(params) {
|
|
|
|
|
|
//角色编辑保存
|
|
|
export function EditRole(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/EditRole/v1',
|
|
|
method: 'post',
|
|
@@ -181,6 +200,7 @@ export function EditRole(params) {
|
|
|
|
|
|
//角色状态变更
|
|
|
export function UpdateStatus(params) {
|
|
|
+ params = Object.assign(params, { userid: getToken('userid') || null })
|
|
|
return request({
|
|
|
url: '/api/fs4a/UpdateStatus/v1',
|
|
|
method: 'post',
|