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
e7df3614
Commit
e7df3614
authored
May 24, 2021
by
gaoyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.9.3需求---标星、创建人模糊搜索
parent
b1a0fb1e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
19 deletions
+84
-19
myPlatformCustomer.jsp
...INF/views/platformmanagement/pages/myPlatformCustomer.jsp
+84
-19
No files found.
house365-hgs-web/src/main/webapp/WEB-INF/views/platformmanagement/pages/myPlatformCustomer.jsp
View file @
e7df3614
...
@@ -418,7 +418,23 @@
...
@@ -418,7 +418,23 @@
</option>
</option>
</select>
</select>
<
%
--
</
c:if
>
--%>
<
%
--
</
c:if
>
--%>
是否星标:
<select
style=
"width: 6rem"
name=
"search_EQ_isPtStar"
id=
"search_EQ_isPtStar"
>
<option
value=
"1"
<
c:if
test=
"${'1' eq param['search_EQ_isPtStar']}"
>
selected="selected"
</c:if>
>
全部
</option>
<option
value=
"2"
<
c:if
test=
"${'2' eq param['search_EQ_isPtStar']}"
>
selected="selected"
</c:if>
>
是
</option>
<option
value=
"3"
<
c:if
test=
"${'3' eq param['search_EQ_isPtStar']}"
>
selected="selected"
</c:if>
>
否
</option>
</select>
平台人:
<input
style=
"width: 8rem;border: 1px solid #d5d5d5;"
type=
"text"
id=
"search_LIKE_creater"
name=
"search_LIKE_creater"
value=
"${param['search_LIKE_creater']}"
class=
"m-wrap small"
placeholder=
"请输入添加人姓名"
>
<div
style=
"float: right"
>
<div
style=
"float: right"
>
<button
type=
"button"
class=
"btn btn-default"
<button
type=
"button"
class=
"btn btn-default"
onclick=
"$('#filterForm').submit();"
>
搜索
onclick=
"$('#filterForm').submit();"
>
搜索
...
@@ -616,8 +632,12 @@
...
@@ -616,8 +632,12 @@
</div>
</div>
</div>
</div>
</c:if>
</c:if>
<div
class=
"mangerItem__border"
></div>
</td>
<td
class=
"mangerItem mangerCollect ${customer.star}"
onclick=
"toggleCollect(this,'${customer.id}', '${customer.starUserId}', '${customer.star}', '${customer.managerId}')"
>
<div
class=
"mangerItem__border"
></div>
</td>
</td>
<td
class=
"mangerItem mangerOperate"
style=
"display: table;padding: 0;overflow:visible;"
>
<td
class=
"mangerItem mangerOperate"
style=
"display: table;padding: 0;overflow:visible;"
>
<div
class=
"mangerOperate__time"
style=
"right:160px;width:150px;"
>
<div
class=
"mangerOperate__time"
style=
"right:160px;width:150px;"
>
<c:if
test=
"${null ne customer.bindTime && '' ne customer.bindTime}"
>
<c:if
test=
"${null ne customer.bindTime && '' ne customer.bindTime}"
>
...
@@ -946,27 +966,72 @@
...
@@ -946,27 +966,72 @@
return
false
;
return
false
;
}
}
//
$.ajax({
$
.
ajax
({
// url: '/house365-hgs-web/customer/assign
',
url
:
'/house365-hgs-web/customer/batchTransferCreator
'
,
//
data: {
data
:
{
//
"userIds": userIds,
"userIds"
:
userIds
,
//
"customerIds": customerIds,
"customerIds"
:
customerIds
,
// "type": 'handove
r'
"type"
:
'transferCreato
r'
//
},
},
//
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"
);
}
}
/**
* 客户标星
* @param _this
* @param _customerId
* @param userId
* @param star
* @param managerId
* @returns {boolean}
*/
function
toggleCollect
(
_this
,
_customerId
,
userId
,
star
,
managerId
)
{
setCookie
(
"lastChoseCustomerId"
,
_customerId
);
var
currentUserId
=
$
(
"#currentUserId"
).
val
();
if
(
star
==
'on'
&&
managerId
!=
currentUserId
)
{
alert
(
"其他人的星标客户不能取消哦"
);
return
false
;
}
if
(
star
==
'off'
&&
userId
!=
''
&&
userId
!=
currentUserId
)
{
alert
(
"不能为其他客户添加星标哦"
);
return
false
;
}
if
(
star
==
'off'
&&
userId
==
''
&&
managerId
!=
currentUserId
)
{
alert
(
"不能为其他客户添加星标哦"
);
return
false
;
}
//收藏
var
flag
=
"off"
;
if
(
$
(
_this
).
hasClass
(
'on'
))
{
$
(
_this
).
removeClass
(
'on'
);
$
(
_this
).
parents
(
"tr"
).
removeClass
(
"table-star"
);
}
else
{
flag
=
"on"
;
$
(
_this
).
addClass
(
'on'
);
$
(
_this
).
parents
(
"tr"
).
addClass
(
"table-star"
);
}
/*$.ajax({
url: "${ctx}/customermanagement/starToggle",
data: {flag: flag, 'customerId': _customerId},
success: function (data) {
window.location.reload();
}
});*/
}
//批量删除
//批量删除
function
batchDel
()
{
function
batchDel
()
{
var
customerIdArr
=
[],
var
customerIdArr
=
[],
...
...
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