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
65da0ad7
Commit
65da0ad7
authored
May 21, 2021
by
gaoyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.9.3需求---增加批量转移按钮
parent
8aadd0a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
18 deletions
+124
-18
transferCreator.jsp
...n/webapp/WEB-INF/views/customer/pages/transferCreator.jsp
+103
-0
myPlatformCustomer.jsp
...INF/views/platformmanagement/pages/myPlatformCustomer.jsp
+21
-18
No files found.
house365-hgs-web/src/main/webapp/WEB-INF/views/customer/pages/transferCreator.jsp
0 → 100644
View file @
65da0ad7
<
%@
page
language=
"java"
pageEncoding=
"UTF-8"
%
>
<
%@
include
file=
"/WEB-INF/common/layouts/common.jsp"
%
>
<html>
<head>
<title>
客户转移
</title>
<link
href=
"${static_common }/customize/jquery-ui-bootstrap/css/multi-select.css"
media=
"screen"
rel=
"stylesheet"
type=
"text/css"
>
</head>
<body>
请选择用户:
<select
id=
'custom-headers'
multiple=
'multiple'
class=
"nochosen"
>
<c:forEach
items=
"${users}"
var=
"user"
>
<option
value=
'${user.id}'
>
${user.realName}(${user.name})
</option>
</c:forEach>
</select>
</body>
<script
src=
"${static_common }/script/jquery/jquery.multi-select.js"
type=
"text/javascript"
></script>
<script
src=
"${static_common }/script/jquery/jquery.quicksearch.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
>
function
reset
(){
$
(
'#custom-headers'
).
multiSelect
(
'deselect_all'
);
}
$
(
document
).
ready
(
function
()
{
$
(
'#custom-headers'
).
multiSelect
({
selectableHeader
:
"<input type='text' class='search-input span3' autocomplete='off' placeholder='请输入'>"
,
selectionHeader
:
"<div class='search-input span3' style='height:50px;'> </div>"
,
selectableFooter
:
""
,
selectionFooter
:
"<input type='button' onclick='reset()' value='重置'>"
,
keepOrder
:
true
,
afterInit
:
function
(
ms
)
{
var
that
=
this
,
$selectableSearch
=
that
.
$selectableUl
.
prev
(),
$selectionSearch
=
that
.
$selectionUl
.
prev
(),
selectableSearchString
=
'#'
+
that
.
$container
.
attr
(
'id'
)
+
' .ms-elem-selectable:not(.ms-selected)'
,
selectionSearchString
=
'#'
+
that
.
$container
.
attr
(
'id'
)
+
' .ms-elem-selection.ms-selected'
;
that
.
qs1
=
$selectableSearch
.
quicksearch
(
selectableSearchString
)
.
on
(
'keydown'
,
function
(
e
)
{
if
(
e
.
which
===
40
)
{
that
.
$selectableUl
.
focus
();
return
false
;
}
});
that
.
qs2
=
$selectionSearch
.
quicksearch
(
selectionSearchString
)
.
on
(
'keydown'
,
function
(
e
)
{
if
(
e
.
which
==
40
)
{
that
.
$selectionUl
.
focus
();
return
false
;
}
});
},
afterSelect
:
function
()
{
this
.
qs1
.
cache
();
this
.
qs2
.
cache
();
},
afterDeselect
:
function
()
{
this
.
qs1
.
cache
();
this
.
qs2
.
cache
();
},
afterSelect
:
function
(
values
)
{
this
.
qs1
.
cache
();
this
.
qs2
.
cache
();
// console.log(values);
// console.log(this.results(true))
var
select_text
;
$
(
"#custom-headers"
).
find
(
"option"
).
each
(
function
()
{
if
(
$
(
this
).
val
()
==
values
)
{
select_text
=
$
(
this
).
text
();
$
(
this
).
attr
(
"selected"
,
"selected"
);
}
else
{
$
(
this
).
removeAttr
(
"selected"
);
}
});
$
(
".ms-selectable span"
).
each
(
function
()
{
if
(
$
(
this
).
text
()
==
select_text
){
$
(
this
).
parent
(
"li"
).
hide
();
}
else
{
$
(
this
).
parent
(
"li"
).
show
();
}
});
$
(
".ms-selection span"
).
each
(
function
()
{
if
(
$
(
this
).
text
()
!=
select_text
){
$
(
this
).
parent
(
"li"
).
hide
();
}
else
{
$
(
this
).
parent
(
"li"
).
show
();
}
});
},
afterDeselect
:
function
(
values
)
{
this
.
qs1
.
cache
();
this
.
qs2
.
cache
();
$
(
"#custom-headers"
).
find
(
"option"
).
each
(
function
()
{
if
(
$
(
this
).
val
()
==
values
)
{
$
(
this
).
removeAttr
(
"selected"
);
}
});
}
});
})
</script>
</html>
house365-hgs-web/src/main/webapp/WEB-INF/views/platformmanagement/pages/myPlatformCustomer.jsp
View file @
65da0ad7
...
@@ -474,6 +474,9 @@
...
@@ -474,6 +474,9 @@
</ul>
</ul>
<div
class=
"bottomBtn"
style=
"overflow: hidden"
>
<div
class=
"bottomBtn"
style=
"overflow: hidden"
>
<div
class=
"checkAll"
>
选择全部:
<input
type=
"checkbox"
id=
"memberCheckAll"
onclick=
"checkAll(this)"
/></div>
<div
class=
"checkAll"
>
选择全部:
<input
type=
"checkbox"
id=
"memberCheckAll"
onclick=
"checkAll(this)"
/></div>
<shiro:hasPermission
name=
"FUNC:BATCHTRANSFER"
>
<div
class=
"bottomBtnR"
onclick=
"assignManager()"
>
批量转移
</div>
</shiro:hasPermission>
<div
class=
"bottomBtnR"
onclick=
"assignManager()"
>
批量转移
</div>
<div
class=
"bottomBtnR"
onclick=
"assignManager()"
>
批量转移
</div>
<div
class=
"bottomBtnR"
name=
"batchDel"
onclick=
"batchDel()"
>
批量删除
</div>
<div
class=
"bottomBtnR"
name=
"batchDel"
onclick=
"batchDel()"
>
批量删除
</div>
</div>
</div>
...
@@ -928,7 +931,7 @@
...
@@ -928,7 +931,7 @@
return
false
;
return
false
;
}
}
House365Util
.
createRemoteModal
(
"客户转移"
,
"/house365-hgs-web/customer/trans
Manage
r?customerCount="
+
customerCont
,
null
,
function
()
{
House365Util
.
createRemoteModal
(
"客户转移"
,
"/house365-hgs-web/customer/trans
ferCreato
r?customerCount="
+
customerCont
,
null
,
function
()
{
var
userIds
=
""
;
var
userIds
=
""
;
if
(
$
(
"#custom-headers"
).
find
(
"option:selected"
).
length
==
0
)
{
if
(
$
(
"#custom-headers"
).
find
(
"option:selected"
).
length
==
0
)
{
alert
(
"分派人员不可为空!"
);
alert
(
"分派人员不可为空!"
);
...
@@ -944,23 +947,23 @@
...
@@ -944,23 +947,23 @@
return
false
;
return
false
;
}
}
$
.
ajax
({
//
$.ajax({
url
:
'/house365-hgs-web/customer/assign'
,
//
url: '/house365-hgs-web/customer/assign',
data
:
{
//
data: {
"userIds"
:
userIds
,
//
"userIds": userIds,
"customerIds"
:
customerIds
,
//
"customerIds": customerIds,
"type"
:
'handover'
//
"type": 'handover'
},
//
},
type
:
"GET"
,
//
type: "GET",
success
:
function
(
data
)
{
//
success: function (data) {
if
(
data
.
result
==
'1'
)
{
//
if (data.result == '1') {
window
.
location
.
reload
();
//
window.location.reload();
}
else
{
//
} else {
alert
(
"操作失败,"
+
data
.
msg
);
//
alert("操作失败," + data.msg);
}
//
}
}
//
}
});
//
});
return
true
;
//
return true;
});
});
$
(
".modal"
).
css
(
"width"
,
"560px"
);
$
(
".modal"
).
css
(
"width"
,
"560px"
);
}
}
...
...
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