-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
589 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import fetch from '@/utils/fetch' | ||
export function GetDepts(){ | ||
return fetch({ | ||
url: '/admin/pulldeptlist', | ||
method: 'post' | ||
}) | ||
} | ||
|
||
export function DeleteDept(ID){ | ||
return fetch({ | ||
url: '/admin/Deldept', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
} | ||
|
||
export function GetDeptDetail(ID){ | ||
return fetch({ | ||
url: '/admin/PulldeptDetail', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
} | ||
|
||
export function SaveNewDept(data){ | ||
return fetch({ | ||
url: '/admin/SaveNewdept', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
export function UpdateDept(data){ | ||
return fetch({ | ||
url: '/admin/Updatedept', | ||
method: 'post', | ||
data | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import fetch from '@/utils/fetch' | ||
export function GetRoles(){ | ||
return fetch({ | ||
url: '/admin/pullrolelist', | ||
method: 'post' | ||
}) | ||
} | ||
|
||
export function DeleteRole(ID){ | ||
return fetch({ | ||
url: '/admin/Delrole', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
} | ||
|
||
export function GetRoleDetail(ID){ | ||
return fetch({ | ||
url: '/admin/PullroleDetail', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
} | ||
|
||
export function SaveNewRole(data){ | ||
return fetch({ | ||
url: '/admin/SaveNewrole', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
export function UpdateRole(data){ | ||
return fetch({ | ||
url: '/admin/Updaterole', | ||
method: 'post', | ||
data | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.