Commit e7df3614 authored by gaoyuan's avatar gaoyuan

4.9.3需求---标星、创建人模糊搜索

parent b1a0fb1e
......@@ -418,7 +418,23 @@
</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;
<%--</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="请输入添加人姓名">&nbsp;
<div style="float: right">
<button type="button" class="btn btn-default"
onclick="$('#filterForm').submit();">搜索
......@@ -616,8 +632,12 @@
</div>
</div>
</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 class="mangerItem mangerOperate" style="display: table;padding: 0;overflow:visible;">
<div class="mangerOperate__time" style="right:160px;width:150px;">
<c:if test="${null ne customer.bindTime && '' ne customer.bindTime}">
......@@ -946,27 +966,72 @@
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;
$.ajax({
url: '/house365-hgs-web/customer/batchTransferCreator',
data: {
"userIds": userIds,
"customerIds": customerIds,
"type": 'transferCreator'
},
type: "GET",
success: function (data) {
if (data.result == '1') {
window.location.reload();
} else {
alert("操作失败," + data.msg);
}
}
});
return true;
});
$(".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() {
var customerIdArr = [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment