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
933c6fc6
Commit
933c6fc6
authored
Apr 24, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
膜打印更新工作组
parent
d345bead
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
6 deletions
+48
-6
service.js
src/main/resources/static/js/service.js
+12
-0
task.js
src/main/resources/static/views/task/task.js
+28
-0
taskListPrint.html
src/main/resources/static/views/task/taskListPrint.html
+8
-6
No files found.
src/main/resources/static/js/service.js
View file @
933c6fc6
...
@@ -575,6 +575,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -575,6 +575,18 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
success
(
response
.
data
)
})
})
},
},
updateWorkGroup
:
function
(
data
,
success
){
var
body
=
JSON
.
stringify
(
data
);
console
.
log
(
"data:"
,
body
)
$http
({
method
:
'POST'
,
url
:
"../TaskList/updateWorkGroup"
,
data
:
body
,
headers
:
{
'Content-Type'
:
'application/json'
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
getFjHistoryTask
:
function
(
date
,
success
){
getFjHistoryTask
:
function
(
date
,
success
){
console
.
log
(
date
)
console
.
log
(
date
)
$http
({
$http
({
...
...
src/main/resources/static/views/task/task.js
View file @
933c6fc6
...
@@ -176,6 +176,34 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -176,6 +176,34 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
}
}
$scope
.
groupList
=
[
{
id
:
1
,
name
:
'A组'
},
{
id
:
2
,
name
:
'B组'
}
]
$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
)
}
var
json
=
{
workGroup
:
groupSelected
,
taskIdList
:
arr
}
HttpService
.
updateWorkGroup
(
json
,
function
(
data
)
{
console
.
log
(
data
)
$scope
.
searchTaskList
();
})
}
$scope
.
goes
=
function
(){
$scope
.
goes
=
function
(){
$rootScope
.
selectCount
=
0
;
$rootScope
.
selectCount
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
...
...
src/main/resources/static/views/task/taskListPrint.html
View file @
933c6fc6
...
@@ -100,15 +100,17 @@
...
@@ -100,15 +100,17 @@
</table>
</table>
<!-- /.table -->
<!-- /.table -->
<div
class=
"box-footer"
>
<div
class=
"box-footer"
>
<div
class=
"pull-left"
>
<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()"
>
更新工作组
</button>
</div>
<div
class=
"pull-right"
style=
"margin-left: 10px;"
>
<div
class=
"pull-right"
style=
"margin-left: 10px;"
>
<button
class=
"btn btn-primary"
ng-click=
"goes()"
>
转出任务单
</button>
<button
class=
"btn btn-primary"
ng-click=
"goes()"
>
转出任务单
</button>
</div>
</div>
<div
class=
"pull-right"
>
<select
class=
"form-control select2"
id=
"group"
style=
"border-radius:5px"
>
<option
value=
"1"
>
A组
</option>
<option
value=
"2"
>
B组
</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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