Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
7ab7d08a
Commit
7ab7d08a
authored
May 06, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
膜打印更新工作组
parent
2d751025
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
18 deletions
+15
-18
task.js
src/main/resources/static/views/task/task.js
+12
-10
taskListPrint.html
src/main/resources/static/views/task/taskListPrint.html
+3
-8
No files found.
src/main/resources/static/views/task/task.js
View file @
7ab7d08a
...
...
@@ -186,23 +186,25 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
name
:
'B组'
}
]
$scope
.
updateGroup
=
function
(
group
)
{
if
(
group
>
0
){
var
checks
=
$
(
"#checkOneBox:checked"
);
var
arr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
arr
.
push
(
checks
[
i
].
value
)
}
$scope
.
updateGroup
=
function
()
{
var
groupSelected
=
$
(
"#groupSelected"
).
val
();
console
.
log
(
groupSelected
)
var
checks
=
$
(
"#checkOneBox:checked"
);
var
arr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
arr
.
push
(
checks
[
i
].
value
)
}
if
(
arr
.
length
>
0
){
var
json
=
{
workGroup
:
group
,
workGroup
:
group
Selected
,
taskIdList
:
arr
}
console
.
log
(
group
,
"==="
,
json
,
" 更新工作组"
)
HttpService
.
updateWorkGroup
(
json
,
function
(
data
)
{
console
.
log
(
data
)
$scope
.
searchTaskList
();
})
}
else
{
MessageService
.
showAlert
(
"请选择要更新的任务单"
)
}
}
...
...
src/main/resources/static/views/task/taskListPrint.html
View file @
7ab7d08a
...
...
@@ -101,22 +101,17 @@
<!-- /.table -->
<div
class=
"box-footer"
>
<div
class=
"pull-left"
>
<select
class=
"form-control select2"
style=
"border-radius:5px"
ng-model=
"workGroup"
>
<option
value=
""
>
请选择工作组
</option>
<option
value=
"1"
>
A组
</option>
<option
value=
"2"
>
B组
</option>
<select
class=
"form-control select2"
id=
"groupSelected"
style=
"border-radius:5px"
>
<option
value=
"{{group.id}}"
ng-repeat=
"group in groupList"
>
{{group.name}}
</option>
</select>
</div>
<div
class=
"pull-left"
style=
"margin-left: 10px;"
>
<button
class=
"btn btn-info"
ng-click=
"updateGroup(
workGroup
)"
>
更新工作组
</button>
<button
class=
"btn btn-info"
ng-click=
"updateGroup()"
>
更新工作组
</button>
</div>
<div
class=
"pull-right"
style=
"margin-left: 10px;"
>
<button
class=
"btn btn-primary"
ng-click=
"goes()"
>
转出任务单
</button>
</div>
</div>
</div>
</div>
<!-- /.mail-box-messages -->
<div
ng-if=
"cycleSheetData.length==0"
>
<h4>
暂无数据
</h4>
...
...
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