添加用户页面岗位选择框提示

master
RuoYi 5 years ago committed by Limy
parent f713159e28
commit 5933481356

@ -71,7 +71,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">用户性别:</label> <label class="col-sm-4 control-label">用户性别:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group" style="width: 100%"> <div class="input-group">
<select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}"> <select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
@ -248,14 +248,12 @@
} }
} }
jQuery(document).ready(function() { $(function() {
$('#post').select2({ $('#post').select2({
placeholder:"请选择岗位", placeholder:"请选择岗位",
width: 'auto',
allowClear: true allowClear: true
}); });
}) })
</script> </script>
</body> </body>
</html> </html>

@ -85,7 +85,7 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label">用户性别:</label> <label class="col-sm-4 control-label">用户性别:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="input-group" style="width: 100%"> <div class="input-group">
<select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}"> <select name="sex" class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{sex}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{sex}"></option>
</select> </select>
@ -218,6 +218,13 @@
layer.close(index); layer.close(index);
} }
} }
$(function() {
$('#post').select2({
placeholder:"请选择岗位",
allowClear: true
});
})
</script> </script>
</body> </body>
</html> </html>
Loading…
Cancel
Save