사용자관리 승인상태 조회조건 추가

main
이범준 4 months ago
parent 0b9cc4299c
commit b10059451a

@ -6,14 +6,22 @@
<div id="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer"> <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper dt-bootstrap5 no-footer">
<div class="d-flex flex-row justify-content-between p-3"> <div class="d-flex flex-row justify-content-between p-3">
<div> <div class="d-flex" id="${infoPrefix}-query">
<div class="input-group" id="${infoPrefix}-query"> <div class="input-group me-3">
<select id="${infoPrefix}by" name="by" onchange="document.getElementById('${infoPrefix}term').focus();" aria-controls="DataTables_Table_0" class="form-select"> <select id="${infoPrefix}by" name="by" onchange="document.getElementById('${infoPrefix}term').focus();" aria-controls="DataTables_Table_0" class="form-select">
<option value="${infoPrefix}Name">이름</option> <option value="${infoPrefix}Name">이름</option>
<option value="${infoPrefix}Account">계정</option> <option value="${infoPrefix}Account">계정</option>
</select> </select>
<input id="${infoPrefix}term" name="term" autofocus type="text" placeholder="조회 조건을 입력하십시오." class="form-control"> <input id="${infoPrefix}term" name="term" autofocus type="text" placeholder="조회 조건을 입력하십시오." class="form-control">
</div> </div>
<label for="${infoPrefix}status" class="form-label fw-bold w-px-120 d-flex flex-wrap align-content-center justify-content-center">상태</label>
<select id="${infoPrefix}status" name="status" class="form-select">
<option value="">전체</option>
<option value="A">신청</option>
<option value="P">승인</option>
<option value="D">삭제</option>
</select>
</div> </div>
<div> <div>
<button onclick="search${infoPrefix}s();" class="btn btn-primary">찾기</button> <button onclick="search${infoPrefix}s();" class="btn btn-primary">찾기</button>
@ -74,7 +82,8 @@ var ${infoPrefix}Control = new UserControl();
function search${infoPrefix}s() { function search${infoPrefix}s() {
${infoPrefix}Control.query = { ${infoPrefix}Control.query = {
by: $("#${infoPrefix}-query [name='by']").val(), by: $("#${infoPrefix}-query [name='by']").val(),
term: $("#${infoPrefix}-query [name='term']").val() term: $("#${infoPrefix}-query [name='term']").val(),
status: $("#${infoPrefix}-query [name='status']").val()
}; };
if(${infoPrefix}Control.query.by == "userAccount"){ if(${infoPrefix}Control.query.by == "userAccount"){

Loading…
Cancel
Save