|
|
@ -233,7 +233,7 @@ |
|
|
|
<div class="form-group"> |
|
|
|
<label class="col-sm-6 control-label">业务员:</label> |
|
|
|
<div class="col-sm-6"> |
|
|
|
<select name="businessMembers" th:field="*{businessMembers}" class="form-control" |
|
|
|
<select id="edit_businessMembers" name="businessMembers" class="form-control" |
|
|
|
shiro:haspermission="customer:selectBusinessMembers"></select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -336,11 +336,11 @@ |
|
|
|
console.log(res) |
|
|
|
if (res.rows.length > 0) { |
|
|
|
var usertData = res.rows; |
|
|
|
var select = $("#edit_businessMembers"); |
|
|
|
for (let i in usertData) { |
|
|
|
$("select[name='businessMembers']").append("<option value='" |
|
|
|
+ usertData[i].userName + "'>" + usertData[i].userName + "</option>"); |
|
|
|
select.append("<option value='" + usertData[i].loginName + "'>" + usertData[i].userName + "</option>"); |
|
|
|
} |
|
|
|
$("select[name='businessMembers']").val(customer.businessMembers); |
|
|
|
select.val(customer.businessMembers).trigger("change"); |
|
|
|
} else { |
|
|
|
$.modal.msgError(res.msg); |
|
|
|
} |
|
|
|