최초 커밋!
This commit is contained in:
@@ -0,0 +1,185 @@
|
||||
<!DOCTYPE html>
|
||||
<html layout:decorate="~{layout/layout}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||
xmlns:th="http://www.thymeleaf.org">
|
||||
|
||||
<section layout:fragment="content">
|
||||
|
||||
<form method="get" name="paramForm" onsubmit="goSearch();"
|
||||
th:action="@{/analysis/operationlog}" th:object="${paramDto}">
|
||||
<!-- hidden parameters -->
|
||||
<input name="page" th:value="${listOutput.pageable.pageNumber}" type="hidden"/>
|
||||
<input name="sort" th:value="${listOutput.pageable.sort}" type="hidden"/>
|
||||
|
||||
<div class="row bg-secondary p-2 mb-2" style="--bs-bg-opacity: .2;">
|
||||
<div class="col">
|
||||
<label class="col-form-label" for="searchAppType">App Type</label>
|
||||
<select class="form-select d-inline" id="searchAppType" style="width: 110px;"
|
||||
th:field="*{searchAppType}">
|
||||
<option selected value="">전체</option>
|
||||
<option
|
||||
th:each="appType : ${T(app.module.core.config.application.enums.AppType).values()}"
|
||||
th:value="${appType.name}">
|
||||
[[${appType.name}]]
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<label class="col-form-label" for="searchOperationType">Operation Type</label>
|
||||
<select class="form-select d-inline" id="searchOperationType" style="width: 110px;"
|
||||
th:field="*{searchOperationType}">
|
||||
<option selected value="">전체</option>
|
||||
<option
|
||||
th:each="operationType : ${T(app.module.core.config.application.enums.OperationLogType).values()}"
|
||||
th:value="${operationType.name}">[[${operationType.name}]] ([[${operationType.desc}]])
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-auto">
|
||||
<label class="col-form-label" for="searchField">검색필드</label>
|
||||
<select class="form-select d-inline w-auto" id="searchField"
|
||||
th:field="*{searchField}">
|
||||
<option selected value="">선택</option>
|
||||
<option value="id">로그 ID</option>
|
||||
<option value="operatorId">수행자</option>
|
||||
<option value="targetId">피수행자</option>
|
||||
</select>
|
||||
<label>
|
||||
<input class="form-control d-inline" placeholder="검색어를 입력하세요."
|
||||
style="" th:field="*{searchValue}"
|
||||
type="text">
|
||||
</label>
|
||||
</div>
|
||||
<div class="col text-end">
|
||||
<button class="btn btn-secondary" onclick="goSearch();"
|
||||
type="button">검색
|
||||
</button>
|
||||
<button class="btn btn-light" onclick="goInit();" type="button">초기화
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-start">
|
||||
<div class="fw-bolder text-muted">
|
||||
Total: <span th:text="${listOutput.totalElements}"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col text-end">
|
||||
<i class="bi bi-list-ol"></i> <label> <select
|
||||
class="form-select form-select-sm" id="pageSize" name="pageSize"
|
||||
onchange="goSearch()">
|
||||
<option
|
||||
th:each="item : ${pageRows}"
|
||||
th:text="${item.codeText}" th:value="${item.codeValue}"></option>
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col"><a class="order-able" data-sort-field="id"
|
||||
href="#">로그 ID</a></th>
|
||||
<th scope="col"><a class="order-able" data-sort-field="appType"
|
||||
href="#">App Type</a></th>
|
||||
<th scope="col"><a class="order-able" data-sort-field="operationLogType"
|
||||
href="#">Operation Type</a></th>
|
||||
<th scope="col"><a class="order-able" data-sort-field="ip"
|
||||
href="#">IP</a></th>
|
||||
<th scope="col"><a class="order-able" data-sort-field="createdAt"
|
||||
href="#">수행일</a></th>
|
||||
<th scope="col"><a class="order-able" data-sort-field="createdBy"
|
||||
href="#">수행자</a></th>
|
||||
<th scope="col"><a class="order-able" data-sort-field="targetId"
|
||||
href="#">피수행자</a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="sortable">
|
||||
|
||||
<div th:each="item, status : ${listOutput.content}" th:remove="tag">
|
||||
<tr>
|
||||
<td class="row">[[${status.count + (listOutput.pageable.pageNumber *
|
||||
listOutput.pageable.pageSize)}]]
|
||||
</td>
|
||||
<th class="bg-info">[[${item.id}]]</th>
|
||||
<td>[[${item.appType}]]</td>
|
||||
<td>[[${item.operationLogType}]]</td>
|
||||
<td>
|
||||
<span th:if="${not #strings.isEmpty(item.ip)}" th:remove="tag">[[${item.ip}]]</span>
|
||||
<span th:if="${#strings.isEmpty(item.ip)}" th:remove="tag"><i
|
||||
class="bi bi-slash-circle"></i></span>
|
||||
</td>
|
||||
<td>[[${#temporals.format(item.createdAt, 'yyyy-MM-dd HH:mm')}]]</td>
|
||||
<td>[[${item.createdBy}]]</td>
|
||||
<td>
|
||||
<span th:if="${not #strings.isEmpty(item.targetId)}" th:remove="tag">[[${item.targetId}]]</span>
|
||||
<span th:if="${#strings.isEmpty(item.targetId)}" th:remove="tag"><i
|
||||
class="bi bi-slash-circle"></i></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="8"><i class="bi bi-arrow-right"></i> [[${item.taskDesc}]]</td>
|
||||
</tr>
|
||||
</div>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
<div th:replace="common/list-components :: pagination(${listOutput})"></div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col text-start">
|
||||
<button class="btn btn-success" onclick="goExcel();" type="button">엑셀 다운로드</button>
|
||||
</div>
|
||||
<div class="col text-end">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<section layout:fragment="script">
|
||||
<script th:inline="javascript">
|
||||
// 목록 정렬 표기 및 갱신 기능 적용
|
||||
uiUtil.applyListSortNotation([[${listOutput.pageable.pageSize}]],
|
||||
[[${listOutput.pageable.sort.toString()}]]);
|
||||
</script>
|
||||
|
||||
<script th:inline="javascript">
|
||||
// 검색
|
||||
function goSearch() {
|
||||
const f = document.paramForm;
|
||||
f.action = '/analysis/operationlog';
|
||||
f.page.value = 0;
|
||||
f.sort.value = convertToPageableSortValue(f.sort.value);
|
||||
f.method = 'get';
|
||||
f.submit();
|
||||
}
|
||||
|
||||
// 초기화
|
||||
function goInit() {
|
||||
const f = document.paramForm;
|
||||
f.searchField.value = '';
|
||||
f.searchValue.value = '';
|
||||
f.searchAppType.value = '';
|
||||
f.searchOperationType.value = '';
|
||||
}
|
||||
|
||||
function goExcel() {
|
||||
const f = document.paramForm;
|
||||
f.sort.value = convertToPageableSortValue(f.sort.value);
|
||||
f.action = '/analysis/operationlog/excel';
|
||||
f.method = 'get';
|
||||
f.submit();
|
||||
}
|
||||
</script>
|
||||
</section>
|
||||
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user