修改表单下拉框的默认选择

kingbase
dshclm 10 months ago
parent 9d46cd052b
commit 8ce78efe98

@ -69,10 +69,10 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">部门状态:</label> <label class="col-sm-3 control-label is-required">部门状态:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}"> <div class="radio-box" th:each="dict : ${@dict.getType('sys_normal_disable')}">
<input type="radio" th:id="${dict.dictCode}" name="status" th:value="${dict.dictValue}" th:checked="${dict.default}"> <input type="radio" required th:id="${dict.dictCode}" name="status" th:value="${dict.dictValue}">
<label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label> <label th:for="${dict.dictCode}" th:text="${dict.dictLabel}"></label>
</div> </div>
</div> </div>

@ -55,6 +55,7 @@
<label class="col-sm-3 control-label is-required">销毁方式:</label> <label class="col-sm-3 control-label is-required">销毁方式:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="destoryStyle" required class="form-control m-b" th:with="type=${@dict.getType('sys_destory_style')}"> <select name="destoryStyle" required class="form-control m-b" th:with="type=${@dict.getType('sys_destory_style')}">
<option value="">请选择</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{destoryStyle}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{destoryStyle}"></option>
</select> </select>
</div> </div>

@ -86,6 +86,7 @@
<label class="col-sm-4 control-label is-required">紧急程度:</label> <label class="col-sm-4 control-label is-required">紧急程度:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="instancyExtent" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}"> <select name="instancyExtent" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_jinjichengdu')}">
<option value="">请选择</option>
<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>
</div> </div>
@ -116,6 +117,7 @@
<label class="col-sm-4 control-label is-required">文件密级:</label> <label class="col-sm-4 control-label is-required">文件密级:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="fileSecret" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}"> <select name="fileSecret" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">请选择</option>
<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>
</div> </div>

@ -75,6 +75,7 @@
<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">
<select name="indentureState" class="form-control" th:with="type=${@dict.getType('sys_normal_disable')}"> <select name="indentureState" class="form-control" th:with="type=${@dict.getType('sys_normal_disable')}">
<option value="">请选择</option>
<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>
</div> </div>

@ -26,7 +26,7 @@
<div class="col-sm-8"> <div class="col-sm-8">
<select name="leavestate" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_leave')}"> <select name="leavestate" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_leave')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{leavestate}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>
@ -47,7 +47,7 @@
<div class="col-sm-8"> <div class="col-sm-8">
<select name="workstate" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_work')}"> <select name="workstate" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_work')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{workstate}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>
@ -60,7 +60,7 @@
<div class="col-sm-8"> <div class="col-sm-8">
<select name="examinestate" required class="form-control m-b" th:with="type=${@dict.getType('sys_examine_state')}"> <select name="examinestate" required class="form-control m-b" th:with="type=${@dict.getType('sys_examine_state')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{examinestate}"></option> <option th:each="dict : ${type}" th:if="${dict.dictValue != '2'}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>

@ -12,7 +12,8 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-4 control-label is-required">设备种类:</label> <label class="col-sm-4 control-label is-required">设备种类:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="netName" class="form-control" th:with="type=${@dict.getType('sys_net_type')}"> <select name="netName" required class="form-control" th:with="type=${@dict.getType('sys_net_type')}">
<option value="">请选择</option>
<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>
</div> </div>
@ -77,6 +78,7 @@
<label class="col-sm-4 control-label is-required">密级:</label> <label class="col-sm-4 control-label is-required">密级:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="netMiji" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}"> <select name="netMiji" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">请选择</option>
<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>
</div> </div>

@ -60,6 +60,7 @@
<label class="col-sm-3 control-label is-required">设备密级:</label> <label class="col-sm-3 control-label is-required">设备密级:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="netMiji" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}"> <select name="netMiji" required class="form-control m-b" th:with="type=${@dict.getType('sys_file_miji')}">
<option value="">请选择</option>
<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>
</div> </div>

@ -80,6 +80,7 @@
<label class="col-sm-3 control-label is-required ">是否安装防护软件:</label> <label class="col-sm-3 control-label is-required ">是否安装防护软件:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="isSoftware" required class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}"> <select name="isSoftware" required class="form-control m-b" th:with="type=${@dict.getType('sys_yes_no')}">
<option value="">请选择</option>
<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>
</div> </div>

@ -10,7 +10,8 @@
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">题库类型:</label> <label class="col-sm-3 control-label is-required">题库类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="TYPEID" class="form-control m-b" th:with="type=${@dict.getType('td_question_type')}"> <select name="TYPEID" class="form-control m-b" required th:with="type=${@dict.getType('td_question_type')}">
<option value="">请选择</option>
<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>
</div> </div>

@ -67,6 +67,7 @@
<label class="col-sm-4 control-label is-required">培训类型:</label> <label class="col-sm-4 control-label is-required">培训类型:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="trainType" required class="form-control m-b" th:with="type=${@dict.getType('sys_usertrain_typer')}"> <select name="trainType" required class="form-control m-b" th:with="type=${@dict.getType('sys_usertrain_typer')}">
<option value="">请选择</option>
<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>
</div> </div>
@ -80,6 +81,7 @@
<label class="col-sm-4 control-label is-required">培训对象:</label> <label class="col-sm-4 control-label is-required">培训对象:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="trainSubject" required class="form-control m-b" th:with="type=${@dict.getType('sys_usertrain_obj')}"> <select name="trainSubject" required class="form-control m-b" th:with="type=${@dict.getType('sys_usertrain_obj')}">
<option value="">请选择</option>
<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>
</div> </div>

@ -84,6 +84,7 @@
<label class="col-sm-4 control-label is-required">用户性别:</label> <label class="col-sm-4 control-label is-required">用户性别:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="sex" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}"> <select name="sex" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_sex')}">
<option value="">请选择用户性别</option>
<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>
</div> </div>
@ -135,6 +136,7 @@
<label class="col-sm-4 control-label is-required">民族:</label> <label class="col-sm-4 control-label is-required">民族:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="nation" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_nation')}"> <select name="nation" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_nation')}">
<option value="">请选择民族</option>
<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>
</div> </div>
@ -158,6 +160,7 @@
<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">
<select name="politics" class="form-control m-b" th:with="type=${@dict.getType('sys_user_politics')}"> <select name="politics" class="form-control m-b" th:with="type=${@dict.getType('sys_user_politics')}">
<option value="">请选择政治面貌</option>
<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>
</div> </div>
@ -170,6 +173,7 @@
<label class="col-sm-4 control-label is-required">涉密程度:</label> <label class="col-sm-4 control-label is-required">涉密程度:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="shemichengdu" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_shemi')}"> <select name="shemichengdu" required class="form-control m-b" th:with="type=${@dict.getType('sys_user_shemi')}">
<option value="">请选择涉密程度</option>
<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>
</div> </div>

@ -104,7 +104,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">
<input name="helthy" required class="form-control" th:field="*{helthy}" type="text"> <input name="helthy" class="form-control" th:field="*{helthy}" type="text">
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save