Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intelligent_qp_manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
intelligent_qp_manager
Commits
5e671761
Commit
5e671761
authored
Oct 25, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口文件夹规范
parent
b4a23b35
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
6 deletions
+55
-6
dept.ts
src/api/system/dept/dept.ts
+20
-0
role.ts
src/api/system/role/role.ts
+20
-0
user.ts
src/api/system/user/user.ts
+11
-1
AccountModal.vue
src/views/system/user/AccountModal.vue
+1
-1
DeptTree.vue
src/views/system/user/DeptTree.vue
+1
-1
account.data.ts
src/views/system/user/account.data.ts
+1
-2
index.vue
src/views/system/user/index.vue
+1
-1
No files found.
src/api/system/dept/dept.ts
0 → 100644
View file @
5e671761
import
{
AccountParams
,
DeptListItem
,
MenuParams
,
RoleParams
,
RolePageParams
,
MenuListGetResultModel
,
DeptListGetResultModel
,
AccountListGetResultModel
,
RolePageListGetResultModel
,
RoleListGetResultModel
,
}
from
'../../demo/model/systemModel'
;
import
{
defHttp
}
from
'@/utils/http/axios'
;
enum
Api
{
DeptList
=
'/system/dept/listAll'
,
}
export
const
getDeptList
=
(
params
?:
DeptListItem
)
=>
defHttp
.
get
<
DeptListGetResultModel
>
({
url
:
Api
.
DeptList
,
params
});
src/api/system/role/role.ts
0 → 100644
View file @
5e671761
import
{
AccountParams
,
DeptListItem
,
MenuParams
,
RoleParams
,
RolePageParams
,
MenuListGetResultModel
,
DeptListGetResultModel
,
AccountListGetResultModel
,
RolePageListGetResultModel
,
RoleListGetResultModel
,
}
from
'../../demo/model/systemModel'
;
import
{
defHttp
}
from
'@/utils/http/axios'
;
enum
Api
{
GetAllRoleList
=
'/system/role/listAll'
,
}
export
const
getAllRoleList
=
(
params
?:
RoleParams
)
=>
defHttp
.
get
<
RoleListGetResultModel
>
({
url
:
Api
.
GetAllRoleList
,
params
});
src/api/system/user/user.ts
View file @
5e671761
...
...
@@ -17,8 +17,18 @@ enum Api {
userDetail
=
'/system/user/'
,
updataApi
=
'/system/user/update'
,
changeFlag
=
'/system/user/changeStatus'
,
AccountList
=
'/system/user/list'
,
deleteUserApi
=
'/system/user/deleteLogical/'
,
}
/** 用户列表查询*/
export
const
getAccountList
=
(
params
:
AccountParams
)
=>
defHttp
.
get
<
AccountListGetResultModel
>
({
url
:
Api
.
AccountList
,
params
});
/** 用户删除*/
export
const
deleteUser
=
(
params
?:
any
)
=>
defHttp
.
delete
<
any
>
({
url
:
Api
.
deleteUserApi
+
params
.
id
});
/** 用户add*/
export
const
addUserApi
=
(
params
:
any
)
=>
defHttp
.
post
({
...
...
@@ -39,7 +49,7 @@ export const UserUpdataApi = (params: any) =>
});
/** 用户
信息
编辑*/
/** 用户
状态
编辑*/
export
const
changeFlagApi
=
(
params
:
any
)
=>
defHttp
.
put
<
any
>
({
url
:
Api
.
changeFlag
,
...
...
src/views/system/user/AccountModal.vue
View file @
5e671761
...
...
@@ -8,7 +8,7 @@ import {ref, computed, unref, reactive} from 'vue';
import
{
BasicModal
,
useModalInner
}
from
'@/components/Modal'
;
import
{
BasicForm
,
useForm
}
from
'@/components/Form'
;
import
{
accountFormSchema
}
from
'./account.data'
;
import
{
getDeptList
,
getAllRoleList
}
from
'@/api/demo/system
'
;
import
{
getDeptList
}
from
'@/api/system/dept/dept
'
;
import
{
addUserApi
,
UserDetailApi
,
UserUpdataApi
}
from
'@/api/system/user/user'
import
{
encryptTwo
}
from
'../../../../src/utils/jsencrypt.js'
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
...
...
src/views/system/user/DeptTree.vue
View file @
5e671761
...
...
@@ -17,7 +17,7 @@
<
script
lang=
"ts"
setup
>
import
{
onMounted
,
ref
}
from
'vue'
;
import
{
BasicTree
,
TreeItem
}
from
'@/components/Tree'
;
import
{
getDeptList
}
from
'@/api/
demo/system
'
;
import
{
getDeptList
}
from
'@/api/
system/dept/dept
'
;
defineOptions
({
name
:
'DeptTree'
});
...
...
src/views/system/user/account.data.ts
View file @
5e671761
import
{
getAllRoleList
}
from
'@/api/
demo/system
'
;
import
{
getAllRoleList
}
from
'@/api/
system/role/role
'
;
import
{
BasicColumn
,
FormSchema
}
from
'@/components/Table'
;
import
{
optionsListApi
}
from
"@/api/demo/select"
;
import
{
h
}
from
"vue"
;
import
{
Tag
}
from
"ant-design-vue"
;
import
{
Switch
}
from
'ant-design-vue'
;
...
...
src/views/system/user/index.vue
View file @
5e671761
...
...
@@ -36,7 +36,7 @@
<
script
lang=
"ts"
setup
>
import
{
reactive
}
from
'vue'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'@/components/Table'
;
import
{
getAccountList
,
deleteUser
}
from
'@/api/
demo/system
'
;
import
{
getAccountList
,
deleteUser
}
from
'@/api/
system/user/user
'
;
import
{
PageWrapper
}
from
'@/components/Page'
;
import
DeptTree
from
'./DeptTree.vue'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment