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
879cf19b
Commit
879cf19b
authored
Mar 28, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建任务单
parent
0c4daab6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
createTaskList.js
...n/resources/static/views/createTaskList/createTaskList.js
+16
-11
No files found.
src/main/resources/static/views/createTaskList/createTaskList.js
View file @
879cf19b
...
@@ -193,7 +193,10 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
...
@@ -193,7 +193,10 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
$scope
.
createTaskList
=
function
(
typeCode
){
$scope
.
createTaskList
=
function
(
typeCode
){
$rootScope
.
selectCount
=
0
;
$rootScope
.
selectCount
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
$rootScope
.
selectCount
=
$rootScope
.
selectCount
+
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
);
$rootScope
.
selectCount
=
$rootScope
.
selectCount
+
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
)
}
for
(
var
j
=
0
;
j
<
$rootScope
.
selectedGroup
.
length
;
j
++
){
$rootScope
.
selectCount
=
$rootScope
.
selectCount
+
parseInt
(
$rootScope
.
selectedGroup
[
j
].
VALID_COUNT
);
}
}
console
.
log
(
"for"
,
$rootScope
.
selectCount
)
console
.
log
(
"for"
,
$rootScope
.
selectCount
)
var
go
=
function
()
{
var
go
=
function
()
{
...
@@ -206,24 +209,26 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
...
@@ -206,24 +209,26 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
}
}
groupList
.
push
(
arr
)
groupList
.
push
(
arr
)
}
}
var
arrGroup
=
[];
for
(
var
i
=
0
;
i
<
$scope
.
selectedGroup
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
$scope
.
selectedGroup
.
length
;
i
++
){
groupList
.
push
(
$scope
.
selectedGroup
[
i
].
GROUP_NO
)
arrGroup
.
push
(
$scope
.
selectedGroup
[
i
].
GROUP_NO
)
}
}
groupList
.
push
(
arrGroup
);
var
map
=
{
var
map
=
{
date
:
$
(
'#datepicker'
).
val
(),
date
:
$
(
'#datepicker'
).
val
(),
name
:
$rootScope
.
loginData
.
name
,
name
:
$rootScope
.
loginData
.
name
,
groupList
:
groupList
groupList
:
groupList
}
}
console
.
log
(
map
)
console
.
log
(
map
)
HttpService
.
createTask
(
map
,
function
(
data
){
// HttpService.createTask(map,function(data){
console
.
log
(
data
)
// console.log(data)
MessageService
.
showAlert
(
data
.
msg
)
// MessageService.showAlert(data.msg)
console
.
log
(
$scope
.
searchCurrent
)
// console.log($scope.searchCurrent)
$scope
.
searchCurrent
();
// $scope.searchCurrent();
$scope
.
selected
=
[];
// $scope.selected=[];
$rootScope
.
closeThis
();
// $rootScope.selectCount=[];
})
// $rootScope.closeThis();
// })
}
else
{
}
else
{
MessageService
.
showAlert
(
"请选择创建任务单的组"
)
MessageService
.
showAlert
(
"请选择创建任务单的组"
)
}
}
...
...
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