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
92d6d24c
Commit
92d6d24c
authored
May 07, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分拣转出任务单弹框bug
parent
22e694ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
50 deletions
+49
-50
task.js
src/main/resources/static/views/task/task.js
+49
-50
No files found.
src/main/resources/static/views/task/task.js
View file @
92d6d24c
...
...
@@ -724,58 +724,56 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
}
$scope
.
goes
=
function
(){
var
checks
=
$
(
".checkOneBox:checked"
);
if
(
checks
.
length
>
0
){
var
go
=
function
()
{
$rootScope
.
closeBtn
();
$rootScope
.
selectCount
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
$rootScope
.
selectCount
=
$rootScope
.
selectCount
+
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
-
$scope
.
selected
[
i
].
specialCount
);
}
console
.
log
(
"for"
,
$rootScope
.
selectCount
)
var
arr
=
[];
var
failedArr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
if
(
checks
[
i
].
value
.
length
<
11
){
failedArr
.
push
(
checks
[
i
].
value
)
}
else
{
arr
.
push
(
checks
[
i
].
value
)
}
}
var
json
=
{
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
name
:
$rootScope
.
loginData
.
name
,
taskIdList
:
arr
,
failedList
:
failedArr
$rootScope
.
selectCount
=
0
;
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
$rootScope
.
selectCount
=
$rootScope
.
selectCount
+
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
-
$scope
.
selected
[
i
].
specialCount
);
}
console
.
log
(
"for"
,
$rootScope
.
selectCount
)
var
go
=
function
()
{
$rootScope
.
closeBtn
();
var
checks
=
$
(
".checkOneBox:checked"
);
if
(
checks
.
length
>
0
){
var
arr
=
[];
var
failedArr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
if
(
checks
[
i
].
value
.
length
<
11
){
failedArr
.
push
(
checks
[
i
].
value
)
}
else
{
arr
.
push
(
checks
[
i
].
value
)
}
console
.
log
(
json
)
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
$scope
.
searchTaskList
();
$scope
.
selected
=
[];
$rootScope
.
ableBtn
();
$rootScope
.
closeThis
();
})
}
var
json
=
{
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
name
:
$rootScope
.
loginData
.
name
,
taskIdList
:
arr
,
failedList
:
failedArr
}
console
.
log
(
json
)
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
$scope
.
searchTaskList
();
$scope
.
selected
=
[];
$rootScope
.
ableBtn
();
$rootScope
.
closeThis
();
})
}
else
{
MessageService
.
showAlert
(
"请选择转出的任务单"
);
}
ngDialog
.
open
({
template
:
'dialogs/gotoDistribute.html'
+
urlTimeStamp
(),
width
:
800
,
cache
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
$rootScope
.
ableBtn
=
function
(){
$
(
".create"
).
prop
(
"disabled"
,
"false"
);
}
$rootScope
.
closeBtn
=
function
(){
$
(
".create"
).
prop
(
"disabled"
,
"true"
);
}
$scope
.
confirmGoTo
=
go
;
}]
})
}
else
{
MessageService
.
showAlert
(
"请选择转出的任务单"
);
}
ngDialog
.
open
({
template
:
'dialogs/gotoDistribute.html'
+
urlTimeStamp
(),
width
:
800
,
cache
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
$rootScope
.
ableBtn
=
function
(){
$
(
".create"
).
prop
(
"disabled"
,
"false"
);
}
$rootScope
.
closeBtn
=
function
(){
$
(
".create"
).
prop
(
"disabled"
,
"true"
);
}
$scope
.
confirmGoTo
=
go
;
}]
})
}
})
\ No newline at end of file
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