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
4e1094e0
Commit
4e1094e0
authored
Jan 13, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
efa063cb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
44 deletions
+41
-44
select-person.component.html
...bapp/app/modal/select-person/select-person.component.html
+1
-2
examine.component.html
src/main/webapp/app/system/examine/examine.component.html
+5
-5
examine.component.ts
src/main/webapp/app/system/examine/examine.component.ts
+32
-28
group.component.ts
src/main/webapp/app/system/group/group.component.ts
+3
-9
No files found.
src/main/webapp/app/modal/select-person/select-person.component.html
View file @
4e1094e0
...
@@ -17,8 +17,7 @@
...
@@ -17,8 +17,7 @@
(
nzPageIndexChange
)="
changePage
($
event
)"
>
(
nzPageIndexChange
)="
changePage
($
event
)"
>
<thead>
<thead>
<tr>
<tr>
<th
nzShowCheckbox
[(
nzChecked
)]="
allChecked
"
[
nzIndeterminate
]="
indeterminate
"
<th
nzShowCheckbox
[(
nzChecked
)]="
allChecked
"
[
nzIndeterminate
]="
indeterminate
"
(
nzCheckedChange
)="
checkAll
($
event
)"
></th>
(
nzCheckedChange
)="
checkAll
($
event
)"
></th>
<th>
姓名
</th>
<th>
姓名
</th>
<th>
手机号码
</th>
<th>
手机号码
</th>
</tr>
</tr>
...
...
src/main/webapp/app/system/examine/examine.component.html
View file @
4e1094e0
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
</div>
</div>
<nz-tabset
(
nzSelectedIndexChange
)="
changeIndex
($
event
)"
[
nzTabPosition
]="'
top
'"
[
nzType
]="'
card
'"
>
<nz-tabset
(
nzSelectedIndexChange
)="
changeIndex
($
event
)"
[
nzTabPosition
]="'
top
'"
[
nzType
]="'
card
'"
>
<nz-tab
nzTitle=
"待审批"
>
<nz-tab
nzTitle=
"待审批"
>
<nz-table
#
basicTable
[
nzData
]="
noList
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
totalNumNo
"
[
nzPageIndex
]="
pageNoNo
"
[
nzPageSize
]="
pageSize
"
(
nzPageIndexChange
)="
changeNoPage
($
event
)"
>
<nz-table
#
basicTable
1
[
nzData
]="
noList
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
totalNumNo
"
[
nzPageIndex
]="
pageNoNo
"
[
nzPageSize
]="
pageSize
"
(
nzCurrentPageDataChange
)="
currentPageDataChange
($
event
)
"
(
nzPageIndexChange
)="
changeNoPage
($
event
)"
>
<thead>
<thead>
<tr>
<tr>
<th
nzShowCheckbox
[(
nzChecked
)]="
allChecked
"
[
nzIndeterminate
]="
indeterminate
"
(
nzCheckedChange
)="
checkAll
($
event
)"
></th>
<th
nzShowCheckbox
[(
nzChecked
)]="
allChecked
"
[
nzIndeterminate
]="
indeterminate
"
(
nzCheckedChange
)="
checkAll
($
event
)"
></th>
...
@@ -49,8 +49,8 @@
...
@@ -49,8 +49,8 @@
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
<tr
*
ngFor=
"let data of
noList
"
>
<tr
*
ngFor=
"let data of
basicTable1.data
"
>
<td
nzShowCheckbox
[(
nzChecked
)]="
data
.
checked
"
[
nzDisabled
]="
data
.
disabled
"
(
nzCheckedChange
)="
selectItem
(
data
,
$
event
)"
></td>
<td
nzShowCheckbox
[(
nzChecked
)]="
data
.
checked
"
(
nzCheckedChange
)="
refreshStatus
(
$
event
)"
></td>
<td>
{{data.createUserName}}
</td>
<td>
{{data.createUserName}}
</td>
<td>
{{data.comment}}
</td>
<td>
{{data.comment}}
</td>
<td>
{{data.createTime | date:"yyyy-MM-dd HH:mm:ss"}}
</td>
<td>
{{data.createTime | date:"yyyy-MM-dd HH:mm:ss"}}
</td>
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
</nz-table>
</nz-table>
</nz-tab>
</nz-tab>
<nz-tab
nzTitle=
"已审批"
>
<nz-tab
nzTitle=
"已审批"
>
<nz-table
#
basicTable
[
nzData
]="
areadyList
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
totalNumAlready
"
[
nzPageIndex
]="
pageNoAlready
"
[
nzPageSize
]="
pageSize
"
(
nzPageIndexChange
)="
changeAlreadyPage
($
event
)"
>
<nz-table
#
basicTable
2
[
nzData
]="
areadyList
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
totalNumAlready
"
[
nzPageIndex
]="
pageNoAlready
"
[
nzPageSize
]="
pageSize
"
(
nzPageIndexChange
)="
changeAlreadyPage
($
event
)"
>
<thead>
<thead>
<tr>
<tr>
<th>
操作用户
</th>
<th>
操作用户
</th>
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
<tr
*
ngFor=
"let data of basicTable.data"
>
<tr
*
ngFor=
"let data of basicTable
2
.data"
>
<td>
{{data.createUserName}}
</td>
<td>
{{data.createUserName}}
</td>
<td>
{{data.comment}}
</td>
<td>
{{data.comment}}
</td>
<td>
{{data.createTime | date:"yyyy-MM-dd HH:mm:ss"}}
</td>
<td>
{{data.createTime | date:"yyyy-MM-dd HH:mm:ss"}}
</td>
...
...
src/main/webapp/app/system/examine/examine.component.ts
View file @
4e1094e0
...
@@ -26,9 +26,9 @@ export class ExamineComponent implements OnInit {
...
@@ -26,9 +26,9 @@ export class ExamineComponent implements OnInit {
totalNumNo
;
totalNumNo
;
noList
=
[];
noList
=
[];
allChecked
;
allChecked
=
false
;
indeterminate
;
indeterminate
=
false
;
displayData
=
[];
displayData
:
Array
<
{
id
:
string
;
checked
:
boolean
}
>
=
[];
selectList
=
[];
selectList
=
[];
menuList
=
[];
menuList
=
[];
...
@@ -39,36 +39,22 @@ export class ExamineComponent implements OnInit {
...
@@ -39,36 +39,22 @@ export class ExamineComponent implements OnInit {
private
layoutSer
:
LayoutService
)
{
private
layoutSer
:
LayoutService
)
{
}
}
currentPageDataChange
(
$event
:
Array
<
{
entityName
:
string
;
checked
:
boolean
;
disabled
:
boolean
;
}
>
):
void
{
currentPageDataChange
(
$event
:
Array
<
{
id
:
string
;
checked
:
boolean
}
>
):
void
{
this
.
displayData
=
$event
;
this
.
displayData
=
$event
;
this
.
refreshStatus
();
this
.
refreshStatus
();
}
}
selectItem
(
item
,
e
){
if
(
e
){
this
.
selectList
.
push
(
item
.
id
);
}
else
{
this
.
selectList
.
forEach
((
value
,
index
)
=>
{
if
(
value
==
item
.
id
){
this
.
selectList
.
splice
(
index
,
1
)
}
});
}
this
.
refreshStatus
()
}
refreshStatus
():
void
{
refreshStatus
():
void
{
const
allChecked
=
this
.
displayData
.
filter
(
value
=>
!
value
.
disabled
).
every
(
value
=>
value
.
checked
===
true
);
const
allChecked
=
this
.
displayData
.
every
(
value
=>
value
.
checked
===
true
);
const
allUnChecked
=
this
.
displayData
.
filter
(
value
=>
!
value
.
disabled
).
every
(
value
=>
!
value
.
checked
);
const
allUnChecked
=
this
.
displayData
.
every
(
value
=>
!
value
.
checked
);
this
.
allChecked
=
allChecked
;
this
.
allChecked
=
allChecked
;
this
.
indeterminate
=
(
!
allChecked
)
&&
(
!
allUnChecked
);
this
.
indeterminate
=
(
!
allChecked
)
&&
(
!
allUnChecked
);
console
.
log
(
this
.
indeterminate
);
}
}
checkAll
(
value
:
boolean
):
void
{
checkAll
(
value
:
boolean
):
void
{
this
.
displayData
.
forEach
(
data
=>
{
this
.
displayData
.
forEach
(
data
=>
{
if
(
!
data
.
disabled
)
{
data
.
checked
=
value
;
data
.
checked
=
value
;
}
});
});
this
.
refreshStatus
();
this
.
refreshStatus
();
}
}
...
@@ -150,12 +136,18 @@ export class ExamineComponent implements OnInit {
...
@@ -150,12 +136,18 @@ export class ExamineComponent implements OnInit {
//审批通过
//审批通过
approvalPass
(){
approvalPass
(){
if
(
this
.
selectList
.
length
==
0
){
let
arr
=
[];
this
.
message
.
warning
(
"请选择需要审核数据"
)
this
.
displayData
.
forEach
(
e
=>
{
if
(
e
.
checked
)
{
arr
.
push
(
e
.
id
);
}
});
if
(
arr
.
length
==
0
){
this
.
message
.
warning
(
'请选择需要审核数据'
);
return
false
;
return
false
;
}
}
this
.
commonSer
.
confirmThing
(
"通过"
,
"确定通过所选请求"
,()
=>
{
this
.
commonSer
.
confirmThing
(
"通过"
,
"确定通过所选请求"
,()
=>
{
this
.
systemSer
.
approvalPass
(
this
.
selectList
).
subscribe
(
this
.
systemSer
.
approvalPass
(
arr
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
if
(
res
.
errCode
==
10000
){
this
.
message
.
success
(
"已通过"
);
this
.
message
.
success
(
"已通过"
);
...
@@ -172,12 +164,18 @@ export class ExamineComponent implements OnInit {
...
@@ -172,12 +164,18 @@ export class ExamineComponent implements OnInit {
//审批不通过
//审批不通过
approvalUnPass
(){
approvalUnPass
(){
if
(
this
.
selectList
.
length
==
0
){
let
arr
=
[];
this
.
displayData
.
forEach
(
e
=>
{
if
(
e
.
checked
)
{
arr
.
push
(
e
.
id
);
}
});
if
(
arr
.
length
==
0
){
this
.
message
.
warning
(
"请选择需要审核数据"
)
this
.
message
.
warning
(
"请选择需要审核数据"
)
return
false
;
return
false
;
}
}
this
.
commonSer
.
confirmThing
(
"退回"
,
"确定拒绝所选请求"
,()
=>
{
this
.
commonSer
.
confirmThing
(
"退回"
,
"确定拒绝所选请求"
,()
=>
{
this
.
systemSer
.
approvUnPass
(
this
.
selectList
).
subscribe
(
this
.
systemSer
.
approvUnPass
(
arr
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
if
(
res
.
errCode
==
10000
){
this
.
message
.
success
(
"退回成功"
);
this
.
message
.
success
(
"退回成功"
);
...
@@ -194,12 +192,18 @@ export class ExamineComponent implements OnInit {
...
@@ -194,12 +192,18 @@ export class ExamineComponent implements OnInit {
//审批取消
//审批取消
approvalCancle
(){
approvalCancle
(){
if
(
this
.
selectList
.
length
==
0
){
let
arr
=
[];
this
.
displayData
.
forEach
(
e
=>
{
if
(
e
.
checked
)
{
arr
.
push
(
e
.
id
);
}
});
if
(
arr
.
length
==
0
){
this
.
message
.
warning
(
"请选择需要审核数据"
)
this
.
message
.
warning
(
"请选择需要审核数据"
)
return
false
;
return
false
;
}
}
this
.
commonSer
.
confirmThing
(
"撤回"
,
"确定取消所选请求"
,()
=>
{
this
.
commonSer
.
confirmThing
(
"撤回"
,
"确定取消所选请求"
,()
=>
{
this
.
systemSer
.
approvCancle
(
this
.
selectList
).
subscribe
(
this
.
systemSer
.
approvCancle
(
arr
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
if
(
res
.
errCode
==
10000
){
this
.
message
.
success
(
"撤回成功"
);
this
.
message
.
success
(
"撤回成功"
);
...
...
src/main/webapp/app/system/group/group.component.ts
View file @
4e1094e0
...
@@ -168,22 +168,16 @@ export class GroupComponent implements OnInit {
...
@@ -168,22 +168,16 @@ export class GroupComponent implements OnInit {
//删除用户-- 批量
//删除用户-- 批量
batchDelete
()
{
batchDelete
()
{
let
bool
=
false
;
let
arr
=
[]
;
this
.
dataSet
.
forEach
(
e
=>
{
this
.
dataSet
.
forEach
(
e
=>
{
if
(
e
.
checked
)
{
if
(
e
.
checked
)
{
bool
=
true
;
arr
.
push
(
e
.
id
)
;
}
}
});
});
if
(
!
bool
)
{
if
(
arr
.
length
==
0
)
{
this
.
message
.
warning
(
'请选择需要删除的用户'
);
this
.
message
.
warning
(
'请选择需要删除的用户'
);
return
false
;
return
false
;
}
}
let
arr
=
[];
this
.
dataSet
.
forEach
(
e
=>
{
if
(
e
.
checked
)
{
arr
.
push
(
e
.
id
);
}
});
this
.
commonSer
.
confirmThing
(
'删除'
,
'确定删除选择的用户'
,
()
=>
{
this
.
commonSer
.
confirmThing
(
'删除'
,
'确定删除选择的用户'
,
()
=>
{
this
.
systemSer
.
batchDeleteUser
(
arr
).
subscribe
(
this
.
systemSer
.
batchDeleteUser
(
arr
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
...
...
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