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
f5d9d0cc
Commit
f5d9d0cc
authored
Mar 20, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已选择数量
parent
0c801cd6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
39 deletions
+6
-39
createTaskList.js
...n/resources/static/views/createTaskList/createTaskList.js
+1
-16
dispatchTask.js
src/main/resources/static/views/dispatchTask/dispatchTask.js
+1
-23
task.js
src/main/resources/static/views/task/task.js
+4
-0
No files found.
src/main/resources/static/views/createTaskList/createTaskList.js
View file @
f5d9d0cc
...
...
@@ -31,7 +31,7 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
$scope
.
isHistory
=
0
;
$scope
.
searchCurrent
=
function
(){
$
rootScope
.
cardsTotal
=
0
;
$
scope
.
selected
=
[]
;
$scope
.
isHistory
=
0
;
HttpService
.
getTaskListToCreate
(
$
(
'#datepicker'
).
val
(),
function
(
data
){
$scope
.
cycleSheetData
=
data
;
...
...
@@ -173,15 +173,6 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
var
checkbox
=
$event
.
target
;
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
updateSelected
(
action
,
task
);
$scope
.
cardsTotal
=
0
;
var
sum
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
sum
+=
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
);
}
$scope
.
cardsTotal
=
$scope
.
cardsTotal
+
sum
;
};
//全选操作
$scope
.
selectAll
=
function
(
task
,
$event
)
{
...
...
@@ -191,12 +182,6 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
var
contact
=
task
[
i
];
updateSelected
(
action
,
contact
);
}
$rootScope
.
cardsTotal
=
0
;
var
sum
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
sum
+=
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
);
}
$rootScope
.
cardsTotal
=
$rootScope
.
cardsTotal
+
sum
;
};
$scope
.
isSelected
=
function
(
task
)
{
return
$scope
.
selected
.
indexOf
(
task
)
>=
0
;
...
...
src/main/resources/static/views/dispatchTask/dispatchTask.js
View file @
f5d9d0cc
...
...
@@ -27,7 +27,7 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
isHistory
=
0
;
$scope
.
searchTaskList
=
function
(){
$
rootScope
.
cardsTotal
=
0
;
$
scope
.
selected
=
[]
;
$scope
.
isHistory
=
0
;
HttpService
.
getTaskListByProcess
(
function
(
data
){
$scope
.
cycleSheetData
=
data
;
...
...
@@ -72,18 +72,6 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
var
checkbox
=
$event
.
target
;
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
updateSelected
(
action
,
task
);
$rootScope
.
cardsTotal
=
0
;
var
sum
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
if
(
$scope
.
selected
[
i
].
faileCount
==
0
){
sum
+=
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
)
-
parseInt
(
$scope
.
selected
[
i
].
specialCount
);
}
else
{
continue
;
}
}
$rootScope
.
cardsTotal
=
$rootScope
.
cardsTotal
+
sum
;
};
//全选操作
$scope
.
selectAll
=
function
(
task
,
$event
)
{
...
...
@@ -93,16 +81,6 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
var
contact
=
task
[
i
];
updateSelected
(
action
,
contact
);
}
$rootScope
.
cardsTotal
=
0
;
var
sum
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
if
(
$scope
.
selected
[
i
].
faileCount
==
0
){
sum
+=
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
)
-
parseInt
(
$scope
.
selected
[
i
].
specialCount
);
}
else
{
continue
;
}
}
$rootScope
.
cardsTotal
=
$rootScope
.
cardsTotal
+
sum
;
};
$scope
.
isSelected
=
function
(
task
)
{
...
...
src/main/resources/static/views/task/task.js
View file @
f5d9d0cc
...
...
@@ -47,6 +47,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope
.
isHistory
=
0
;
$scope
.
searchTaskList
=
function
(){
$scope
.
selected
=
[];
$rootScope
.
cardsTotal
=
0
;
$scope
.
restCount
=
0
;
$scope
.
isHistory
=
0
;
...
...
@@ -248,6 +249,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope
.
isHistory
=
0
;
$scope
.
searchTaskList
=
function
(){
$scope
.
selected
=
[];
$scope
.
isHistory
=
0
;
HttpService
.
getPingTaskListByProcess
(
function
(
data
){
$scope
.
cycleSheetData
=
data
.
typeList
;
...
...
@@ -418,6 +420,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope
.
isHistory
=
0
;
$scope
.
searchTaskList
=
function
(){
$scope
.
selected
=
[];
$scope
.
isHistory
=
0
;
HttpService
.
getFjTaskListByProcess
(
function
(
data
){
$scope
.
cycleSheetData
=
data
;
...
...
@@ -584,6 +587,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope
.
isHistory
=
0
;
$scope
.
searchTaskList
=
function
(){
$scope
.
selected
=
[];
$scope
.
isHistory
=
0
;
HttpService
.
getFjTaskListByProcess
(
function
(
data
){
$scope
.
cycleSheetData
=
data
;
...
...
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