Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
Project
Project
Details
Activity
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
wangqinghua
smart
Commits
752f9630
Commit
752f9630
authored
Jan 02, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1c6e8601
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
+21
-14
select-person.component.html
...bapp/app/modal/select-person/select-person.component.html
+7
-4
select-person.component.ts
...webapp/app/modal/select-person/select-person.component.ts
+14
-9
group.component.ts
src/main/webapp/app/system/group/group.component.ts
+0
-1
No files found.
src/main/webapp/app/modal/select-person/select-person.component.html
View file @
752f9630
<!--添加资源-->
<nz-modal
[
nzWidth
]="
10
80
"
[(
nzVisible
)]="
isVisible
"
[
nzTitle
]="
title
"
(
nzOnCancel
)="
handleEditCancel
()"
<nz-modal
[
nzWidth
]="
7
80
"
[(
nzVisible
)]="
isVisible
"
[
nzTitle
]="
title
"
(
nzOnCancel
)="
handleEditCancel
()"
(
nzOnOk
)="
handEditleOk
()"
>
<div
nz-form
class=
"ant-advanced-search-form form-select"
>
<div
nz-row
[
nzGutter
]="
24
"
>
<div
nz-col
[
nzSpan
]="
8
"
class=
"padding-8-0"
>
<nz-tree
[(
ngModel
)]="
nodes
"
></nz-tree>
<div
nz-col
[
nzSpan
]="
6
"
class=
"padding-8-0"
>
<nz-tree
[(
ngModel
)]="
nodes
"
(
nzClick
)="
getOrg
($
event
)"
></nz-tree>
</div>
<div
nz-col
[
nzSpan
]="
8
"
>
<div
nz-col
[
nzSpan
]="
10
"
>
<nz-table
#
basicTable
[
nzData
]="
userList
"
(
nzCurrentPageDataChange
)="
currentPageDataChange
($
event
)"
(
nzPageIndexChange
)="
refreshStatus
()"
...
...
src/main/webapp/app/modal/select-person/select-person.component.ts
View file @
752f9630
...
...
@@ -18,11 +18,15 @@ export class SelectPersonComponent implements OnInit {
selectList
=
[];
nodes
:
any
[];
allChecked
=
false
;
checkedNumber
=
0
;
disabledButton
=
true
;
indeterminate
=
false
;
roleId
;
deleteList
=
[];
pageNum
=
1
;
pageSize
=
10
;
organizationId
=
null
;
displayData
:
Array
<
{
key1
:
string
;
key2
:
number
;
key3
:
string
;
key4
:
string
;
checked
:
boolean
}
>
=
[];
constructor
(
private
systemSer
:
SystemService
,
private
commonSer
:
CommonService
)
{
...
...
@@ -71,7 +75,6 @@ export class SelectPersonComponent implements OnInit {
this
.
allChecked
=
allChecked
;
this
.
indeterminate
=
(
!
allChecked
)
&&
(
!
allUnChecked
);
this
.
disabledButton
=
!
this
.
userList
.
some
(
value
=>
value
.
checked
);
this
.
checkedNumber
=
this
.
userList
.
filter
(
value
=>
value
.
checked
).
length
;
}
ngOnInit
()
{
...
...
@@ -82,7 +85,6 @@ export class SelectPersonComponent implements OnInit {
this
.
selectList
=
[];
this
.
deleteList
=
[];
this
.
allChecked
=
false
;
this
.
checkedNumber
=
0
;
this
.
disabledButton
=
true
;
this
.
indeterminate
=
false
;
}
...
...
@@ -101,12 +103,10 @@ export class SelectPersonComponent implements OnInit {
getUser
()
{
const
data
=
{
'userBo'
:
{
search
:
null
,
organizationId
:
null
},
'pageNum'
:
'1'
,
'pageSize'
:
'10'
'search'
:
null
,
'organizationId'
:
this
.
organizationId
=
this
.
organizationId
==
''
?
null
:
this
.
organizationId
,
'pageNum'
:
this
.
pageNum
,
'pageSize'
:
this
.
pageSize
};
this
.
systemSer
.
user
(
data
).
subscribe
(
(
res
)
=>
{
...
...
@@ -115,6 +115,11 @@ export class SelectPersonComponent implements OnInit {
);
}
getOrg
(
e
)
{
this
.
organizationId
=
e
.
node
.
key
;
this
.
getUser
();
}
//组织信息
getGroup
()
{
this
.
systemSer
.
organization
().
subscribe
(
...
...
src/main/webapp/app/system/group/group.component.ts
View file @
752f9630
...
...
@@ -105,7 +105,6 @@ export class GroupComponent implements OnInit {
}
getOrg
(
e
)
{
console
.
log
(
e
);
this
.
organizationId
=
e
.
key
;
this
.
getUser
();
}
...
...
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