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