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
fa547c2f
Commit
fa547c2f
authored
Oct 30, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门管理模块bug修改
parent
12bbe151
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
dept.ts
src/api/system/dept/dept.ts
+2
-2
index.vue
src/views/system/dept/index.vue
+9
-4
No files found.
src/api/system/dept/dept.ts
View file @
fa547c2f
...
...
@@ -23,8 +23,8 @@ enum Api {
listDeptExcludeChildApi
=
'/system/dept/list/exclude/'
,
}
/** 列表查询*/
export
const
getDeptList
=
()
=>
defHttp
.
get
<
any
>
({
url
:
Api
.
DeptList
});
export
const
getDeptList
=
(
params
:
any
)
=>
defHttp
.
get
<
DeptListGetResultModel
>
({
url
:
Api
.
DeptList
,
params
});
/** 部门状态修改*/
export
const
statusChange
=
(
params
:
any
)
=>
...
...
src/views/system/dept/index.vue
View file @
fa547c2f
...
...
@@ -56,10 +56,15 @@
const
[
registerTable
,
{
reload
,
expandAll
,
getForm
}]
=
useTable
({
title
:
'部门管理列表'
,
api
:
async
(
params
)
=>
{
const
response
=
await
getDeptList
(
params
);
//进行处理数据
const
transformedData
=
transformData
(
response
.
data
);
// 定义一个函数transformData来做你需要的数据转换
return
{
...
response
,
data
:
transformedData
};
if
(
params
.
deptName
===
undefined
&&
params
.
flag
===
undefined
){
//进行处理数据
const
response
=
await
getDeptList
(
params
);
const
transformedData
=
transformData
(
response
.
data
);
// 定义一个函数transformData来做你需要的数据转换
return
{
...
response
,
data
:
transformedData
};
}
else
{
const
response
=
await
getDeptList
(
params
);
return
{
...
response
,
data
:
response
.
data
};
}
},
columns
,
formConfig
:
{
...
...
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