Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
najiu-frontend
najiu-admin-template
Commits
424b171e
Commit
424b171e
authored
Jun 30, 2021
by
无木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(demo): account list fetch loss param
修复账号管理列表发起请求时可能缺少当前选中的部门ID参数的问题 fixed: #830
parent
9de6ac11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
index.vue
src/views/demo/system/account/index.vue
+6
-3
No files found.
src/views/demo/system/account/index.vue
View file @
424b171e
<
template
>
<PageWrapper
dense
contentFullHeight
fixedHeight
contentClass=
"flex"
>
<DeptTree
class=
"w-1/4 xl:w-1/5"
@
select=
"handleSelect"
/>
<BasicTable
@
register=
"registerTable"
class=
"w-3/4 xl:w-4/5"
>
<BasicTable
@
register=
"registerTable"
class=
"w-3/4 xl:w-4/5"
:searchInfo=
"searchInfo"
>
<template
#toolbar
>
<a-button
type=
"primary"
@
click=
"handleCreate"
>
新增账号
</a-button>
</
template
>
...
...
@@ -35,7 +35,7 @@
</PageWrapper>
</template>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
'
vue
'
;
import
{
defineComponent
,
reactive
}
from
'
vue
'
;
import
{
BasicTable
,
useTable
,
TableAction
}
from
'
/@/components/Table
'
;
import
{
getAccountList
}
from
'
/@/api/demo/system
'
;
...
...
@@ -54,6 +54,7 @@
setup
()
{
const
go
=
useGo
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
searchInfo
=
reactive
<
Recordable
>
({});
const
[
registerTable
,
{
reload
,
updateTableDataRecord
}]
=
useTable
({
title
:
'
账号列表
'
,
api
:
getAccountList
,
...
...
@@ -104,7 +105,8 @@
}
function
handleSelect
(
deptId
=
''
)
{
reload
({
searchInfo
:
{
deptId
}
});
searchInfo
.
deptId
=
deptId
;
reload
();
}
function
handleView
(
record
:
Recordable
)
{
...
...
@@ -120,6 +122,7 @@
handleSuccess
,
handleSelect
,
handleView
,
searchInfo
,
};
},
});
...
...
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