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
79a5b47e
Commit
79a5b47e
authored
Mar 18, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
已选择数量
parent
5214116b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
gotoDistribute.html
src/main/resources/static/dialogs/gotoDistribute.html
+1
-1
createTaskList.js
...n/resources/static/views/createTaskList/createTaskList.js
+8
-5
dispatchTask.js
src/main/resources/static/views/dispatchTask/dispatchTask.js
+7
-1
task.js
src/main/resources/static/views/task/task.js
+0
-0
No files found.
src/main/resources/static/dialogs/gotoDistribute.html
View file @
79a5b47e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
提示
提示
</div>
</div>
<div
class=
"ui-dialog-content"
>
<div
class=
"ui-dialog-content"
>
<div>
本次转出总数:{{
cardsTotal
}}
</div>
<div>
本次转出总数:{{
selectCount
}}
</div>
</div>
</div>
<div
class=
"ui-dialog-confirm"
>
<div
class=
"ui-dialog-confirm"
>
<button
type=
"submit"
class=
"btn btn-info"
ng-click=
"confirmGoTo()"
>
确认
</button>
<button
type=
"submit"
class=
"btn btn-info"
ng-click=
"confirmGoTo()"
>
确认
</button>
...
...
src/main/resources/static/views/createTaskList/createTaskList.js
View file @
79a5b47e
...
@@ -168,19 +168,19 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
...
@@ -168,19 +168,19 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
if
(
action
===
'remove'
&&
$scope
.
selected
.
indexOf
(
task
)
!==
-
1
)
$scope
.
selected
.
splice
(
$scope
.
selected
.
indexOf
(
task
),
1
);
if
(
action
===
'remove'
&&
$scope
.
selected
.
indexOf
(
task
)
!==
-
1
)
$scope
.
selected
.
splice
(
$scope
.
selected
.
indexOf
(
task
),
1
);
};
};
//更新某一列数据的选择
//更新某一列数据的选择
$
rootS
cope
.
cardsTotal
=
0
;
$
s
cope
.
cardsTotal
=
0
;
$scope
.
updateSelection
=
function
(
$event
,
task
)
{
$scope
.
updateSelection
=
function
(
$event
,
task
)
{
var
checkbox
=
$event
.
target
;
var
checkbox
=
$event
.
target
;
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
updateSelected
(
action
,
task
);
updateSelected
(
action
,
task
);
$
rootScope
.
cardsTotal
=
0
;
$
scope
.
cardsTotal
=
0
;
var
sum
=
0
;
var
sum
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
sum
+=
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
);
sum
+=
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
);
}
}
$
rootScope
.
cardsTotal
=
$rootS
cope
.
cardsTotal
+
sum
;
$
scope
.
cardsTotal
=
$s
cope
.
cardsTotal
+
sum
;
};
};
//全选操作
//全选操作
...
@@ -206,6 +206,11 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
...
@@ -206,6 +206,11 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
};
};
$scope
.
createTaskList
=
function
(
typeCode
){
$scope
.
createTaskList
=
function
(
typeCode
){
$rootScope
.
selectCount
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
$rootScope
.
selectCount
=
$rootScope
.
selectCount
+
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
);
}
console
.
log
(
"for"
,
$rootScope
.
selectCount
)
var
go
=
function
()
{
var
go
=
function
()
{
if
(
$scope
.
selected
.
length
>
0
||
$rootScope
.
selectedGroup
.
length
>
0
){
if
(
$scope
.
selected
.
length
>
0
||
$rootScope
.
selectedGroup
.
length
>
0
){
var
arr
=
[];
var
arr
=
[];
...
@@ -233,8 +238,6 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
...
@@ -233,8 +238,6 @@ angular.module('AvatarCheck.createTaskList', ['ngRoute', 'AvatarCheck.http', 'tm
console
.
log
(
$scope
.
searchCurrent
)
console
.
log
(
$scope
.
searchCurrent
)
$scope
.
searchCurrent
();
$scope
.
searchCurrent
();
$scope
.
selected
=
[];
$scope
.
selected
=
[];
$rootScope
.
selectedGroup
=
[];
$rootScope
.
cardsTotal
=
0
;
$rootScope
.
closeThis
();
$rootScope
.
closeThis
();
})
})
}
else
{
}
else
{
...
...
src/main/resources/static/views/dispatchTask/dispatchTask.js
View file @
79a5b47e
...
@@ -159,6 +159,11 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -159,6 +159,11 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
$scope
.
goes
=
function
(){
$scope
.
goes
=
function
(){
$rootScope
.
selectCount
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
$rootScope
.
selectCount
=
$rootScope
.
selectCount
+
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
);
}
console
.
log
(
"for"
,
$rootScope
.
selectCount
)
var
go
=
function
()
{
var
go
=
function
()
{
var
checks
=
$
(
".checkOneBox:checked"
);
var
checks
=
$
(
".checkOneBox:checked"
);
if
(
checks
.
length
>
0
){
if
(
checks
.
length
>
0
){
...
@@ -181,7 +186,7 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -181,7 +186,7 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
$scope
.
searchTaskList
();
$scope
.
searchTaskList
();
MessageService
.
showAlert
(
"下发完成"
)
MessageService
.
showAlert
(
"下发完成"
)
$
rootScope
.
cardsTotal
=
0
;
$
scope
.
selected
=
[]
;
$rootScope
.
closeThis
();
$rootScope
.
closeThis
();
})
})
}
else
{
}
else
{
...
@@ -199,6 +204,7 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -199,6 +204,7 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
}]
}]
})
})
}
}
});
});
...
...
src/main/resources/static/views/task/task.js
View file @
79a5b47e
This diff is collapsed.
Click to expand it.
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