Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
Hgs
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
徐州
Hgs
Commits
27c9301d
Commit
27c9301d
authored
May 19, 2021
by
gaoyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.9.3需求---增加批量转移按钮
parent
3059507c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
89 additions
and
0 deletions
+89
-0
myPlatformCustomer.jsp
...INF/views/platformmanagement/pages/myPlatformCustomer.jsp
+89
-0
No files found.
house365-hgs-web/src/main/webapp/WEB-INF/views/platformmanagement/pages/myPlatformCustomer.jsp
View file @
27c9301d
...
...
@@ -472,6 +472,10 @@
</select>
</li>
</ul>
<div
class=
"bottomBtn"
style=
"overflow: hidden"
>
<div
class=
"checkAll"
>
选择全部:
<input
type=
"checkbox"
onclick=
"checkAll(this)"
/></div>
<div
class=
"bottomBtnR"
onclick=
"assignManager()"
>
批量转移
</div>
</div>
</div>
</div>
</form>
...
...
@@ -907,6 +911,91 @@
}
});
}
function
assignManager
()
{
var
customerIds
=
""
,
customerCont
=
0
;
for
(
i
=
0
;
i
<
document
.
getElementsByName
(
'memberCheck'
).
length
;
i
++
)
{
if
(
document
.
getElementsByName
(
'memberCheck'
)[
i
].
checked
)
{
customerIds
+=
document
.
getElementsByName
(
'memberCheck'
)[
i
].
value
+
","
;
customerCont
+=
1
;
}
}
if
(
customerIds
==
''
)
{
alert
(
"请至少选择一个客户!"
);
return
false
;
}
House365Util
.
createRemoteModal
(
"客户转移"
,
"/house365-hgs-web/customer/transManager?customerCount="
+
customerCont
,
null
,
function
()
{
var
userIds
=
""
;
if
(
$
(
"#custom-headers"
).
find
(
"option:selected"
).
length
==
0
)
{
alert
(
"分派人员不可为空!"
);
return
false
;
}
$
(
"#custom-headers"
).
find
(
"option:selected"
).
each
(
function
()
{
userIds
=
userIds
+
$
(
this
).
val
()
+
","
;
});
if
(
customerIds
==
''
)
{
alert
(
"至少要选择一个客户!"
);
return
false
;
}
$
.
ajax
({
url
:
'/house365-hgs-web/customer/assign'
,
data
:
{
"userIds"
:
userIds
,
"customerIds"
:
customerIds
,
"type"
:
'handover'
},
type
:
"GET"
,
success
:
function
(
data
)
{
if
(
data
.
result
==
'1'
)
{
window
.
location
.
reload
();
}
else
{
alert
(
"操作失败,"
+
data
.
msg
);
}
}
});
return
true
;
});
$
(
".modal"
).
css
(
"width"
,
"560px"
);
}
//全选
var
checkNum
=
0
;
function
checkAll
(
btn
)
{
if
(
btn
.
checked
)
{
for
(
var
i
=
0
;
i
<
document
.
getElementsByName
(
'memberCheck'
).
length
;
i
++
)
{
checkNum
++
;
document
.
getElementsByName
(
'memberCheck'
)[
i
].
checked
=
"checked"
;
}
}
else
{
for
(
var
i
=
0
;
i
<
document
.
getElementsByName
(
'memberCheck'
).
length
;
i
++
)
{
checkNum
++
;
document
.
getElementsByName
(
'memberCheck'
)[
i
].
checked
=
""
;
}
}
}
//单选
function
checkMember
(
btn
)
{
if
(
btn
.
checked
)
{
var
checkAll
=
true
;
for
(
i
=
0
;
i
<
document
.
all
(
"memberCheck"
).
length
;
i
++
)
{
if
(
document
.
all
(
"memberCheck"
)[
i
].
checked
==
false
)
{
checkAll
=
false
;
}
}
if
(
checkAll
)
{
document
.
getElementById
(
"memberCheckAll"
).
checked
=
true
;
}
}
else
{
document
.
getElementById
(
"memberCheckAll"
).
checked
=
false
;
}
}
</script>
<script
src=
"${static_common}/jquery-ui/jquery-ui.min.js"
type=
"text/javascript"
></script>
...
...
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