|
|
@ -77,8 +77,8 @@ |
|
|
|
<h3 class="mb-4">派单</h3> |
|
|
|
<label class="col-sm-3 control-label">售后员:</label> |
|
|
|
<div class="col-sm-9"> |
|
|
|
<select id="userId_add" name="aftersalesName" th:field="*{aftersalesName}" class="form-control m-b"> |
|
|
|
<option th:each="user : ${userData}" th:value="${user.userName}" th:text="${user.userName}"></option> |
|
|
|
<select id="userId_add" name="aftersalesName" class="form-control m-b"> |
|
|
|
<option th:each="user : ${userData}" th:value="${user.userName}" th:text="${user.userName}" th:field="*{aftersalesName}"></option> |
|
|
|
</select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -233,9 +233,8 @@ |
|
|
|
"<option value='" + userData[i].userName + "'>" + userData[i].userName + "</option>" // 使用 userName 作为 option 的 value |
|
|
|
); |
|
|
|
} |
|
|
|
|
|
|
|
// 初始化时触发 change 事件,以确保首次加载时也能正确赋值 |
|
|
|
$("#userId_add").trigger("change"); |
|
|
|
// 初始化时触发 ,以确保首次加载时正确回显后端数据库传入的值 |
|
|
|
$("#userId_add").val(sendOrders.aftersalesName); |
|
|
|
} else { |
|
|
|
$.modal.msgError(res.msg); |
|
|
|
} |
|
|
|