mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-07 06:54:16 +09:00
배치 리스트 DTO 커밋
This commit is contained in:
106
frontend/src/modules/mntrng/views/BatchCheck.vue
Normal file
106
frontend/src/modules/mntrng/views/BatchCheck.vue
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
<div class="contents">
|
||||||
|
<div class="contents_wrap">
|
||||||
|
<div class="top_wrap">
|
||||||
|
<h3 class="title">배치 모니터링</h3>
|
||||||
|
<p class="breadcrumb">모니터링 > 배치 모니터링</p>
|
||||||
|
</div>
|
||||||
|
<div class= "table">
|
||||||
|
<custom-grid
|
||||||
|
ref="table"
|
||||||
|
:url="grid.url"
|
||||||
|
:columns="grid.columns"
|
||||||
|
|
||||||
|
></custom-grid>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import mntrngApi from "../service/mntrngApi.js";
|
||||||
|
import customGrid from '@/components/CustomGrid';
|
||||||
|
export default {
|
||||||
|
name: 'batchCheck',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
batchList : [],
|
||||||
|
grid: {
|
||||||
|
url: '/api/v1/bo/sysMgt/batchList',
|
||||||
|
header: [
|
||||||
|
[
|
||||||
|
{header: '배치ID', childNames: {}},
|
||||||
|
{header: '배치명', childNames: {}},
|
||||||
|
]
|
||||||
|
],
|
||||||
|
columns: [
|
||||||
|
{name: 'batchType', header: '배치유형', align: 'center', width: '5%'},
|
||||||
|
{name: 'batchNm', header:'배치명',align:'center', width:'15%'},
|
||||||
|
{name: 'batchId', header:'배치ID', align:'center', width:'10%'},
|
||||||
|
{name: 'batchCycle', header:'실행일자',align:'center', width:'10%'},
|
||||||
|
{name: 'batchTime', header:'실행시간',align:'center', width:'10%'},
|
||||||
|
{name: 'regDt', header:'배치 수행시간',align:'center', width:'10%'},
|
||||||
|
{name: 'sttusCd', header:'상태',align:'center', width:'10%'},
|
||||||
|
{name: 'errMsg', header:'메시지',align:'left', width:'30%'}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
customGrid: customGrid,
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
this.getBatchList();
|
||||||
|
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||||
|
|
||||||
|
},
|
||||||
|
mounted(){
|
||||||
|
let page = 1;
|
||||||
|
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||||
|
let isKeep = false;
|
||||||
|
if(getCondition){
|
||||||
|
this.grid.params = getCondition.params;
|
||||||
|
page = getCondition.page;
|
||||||
|
isKeep = true;
|
||||||
|
}
|
||||||
|
this.search(isKeep);
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
async getBatchList(){
|
||||||
|
try {
|
||||||
|
console.log("확인하자")
|
||||||
|
const response = await mntrngApi.batchCheck();
|
||||||
|
const result = response.data;
|
||||||
|
if (result != null) {
|
||||||
|
this.batchList = response.data.data;
|
||||||
|
console.log("확인하자22")
|
||||||
|
} else {
|
||||||
|
}
|
||||||
|
} catch(err) {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
search: function (isKeep) {
|
||||||
|
this.$refs.table.search(this.grid.params, isKeep);
|
||||||
|
this.sendStoreData();
|
||||||
|
},
|
||||||
|
sendStoreData: function () {
|
||||||
|
// const getP = this.$refs.table.getPagination();
|
||||||
|
this.$store.commit('searchcondition/updateSearchCondition', {
|
||||||
|
// page: getP._currentPage,
|
||||||
|
// perPage: this.perPageCnt,
|
||||||
|
params: this.grid.params
|
||||||
|
});
|
||||||
|
|
||||||
|
const getCondition = this.$store.getters['searchcondition/getSearchCondition'];
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
</script>
|
||||||
58
src/main/java/kr/co/uplus/ez/api/comm/dto/BatchChkDto.java
Normal file
58
src/main/java/kr/co/uplus/ez/api/comm/dto/BatchChkDto.java
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
package kr.co.uplus.ez.api.comm.dto;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 배치 모니터링 DTO
|
||||||
|
* @author Lee Minha
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class BatchChkDto {
|
||||||
|
|
||||||
|
//일련번호
|
||||||
|
private String seqNo;
|
||||||
|
|
||||||
|
//등록 일시
|
||||||
|
private String regDt;
|
||||||
|
|
||||||
|
//배치 아이디
|
||||||
|
private String batchId;
|
||||||
|
|
||||||
|
//상태코드
|
||||||
|
private String sttusCd;
|
||||||
|
|
||||||
|
//시작 일시
|
||||||
|
private String stDt;
|
||||||
|
|
||||||
|
//종료 일시
|
||||||
|
private String fnsDt;
|
||||||
|
|
||||||
|
//오류 메시지
|
||||||
|
private String errMsg;
|
||||||
|
|
||||||
|
//등록 ID
|
||||||
|
private String regId;
|
||||||
|
|
||||||
|
//변경 ID
|
||||||
|
private String chgId;
|
||||||
|
|
||||||
|
//변경 일시
|
||||||
|
private String chgDt;
|
||||||
|
|
||||||
|
//배치 유형
|
||||||
|
private String batchType;
|
||||||
|
|
||||||
|
//배치 주기
|
||||||
|
private String batchCycle;
|
||||||
|
|
||||||
|
//검색 시작 일자
|
||||||
|
private String searchSt;
|
||||||
|
|
||||||
|
//검색 종료 일자
|
||||||
|
private String searchFns;
|
||||||
|
|
||||||
|
|
||||||
|
private Object batchList;
|
||||||
|
}
|
||||||
66
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/BatchList.java
Normal file
66
src/main/java/kr/co/uplus/ez/api/sysMgt/dto/BatchList.java
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 배치 모니터링 DTO
|
||||||
|
* @author Lee Minha
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class BatchList {
|
||||||
|
|
||||||
|
@ApiModelProperty(example = "리스트번호", name = "리스트번호", dataType = "Integer")
|
||||||
|
private Integer no;
|
||||||
|
|
||||||
|
//일련번호
|
||||||
|
private String seqNo;
|
||||||
|
|
||||||
|
//등록 일시
|
||||||
|
private String regDt;
|
||||||
|
|
||||||
|
//배치 아이디
|
||||||
|
private String batchId;
|
||||||
|
|
||||||
|
private String batchNm;
|
||||||
|
|
||||||
|
//상태코드
|
||||||
|
private String sttusCd;
|
||||||
|
|
||||||
|
//시작 일시
|
||||||
|
private String stDt;
|
||||||
|
|
||||||
|
//종료 일시
|
||||||
|
private String fnsDt;
|
||||||
|
|
||||||
|
//오류 메시지
|
||||||
|
private String errMsg;
|
||||||
|
|
||||||
|
//등록 ID
|
||||||
|
private String regId;
|
||||||
|
|
||||||
|
//변경 ID
|
||||||
|
private String chgId;
|
||||||
|
|
||||||
|
//변경 일시
|
||||||
|
private String chgDt;
|
||||||
|
|
||||||
|
//배치 유형
|
||||||
|
private String batchType;
|
||||||
|
|
||||||
|
//배치 주기
|
||||||
|
private String batchCycle;
|
||||||
|
|
||||||
|
//검색 시작 일자
|
||||||
|
private String searchSt;
|
||||||
|
|
||||||
|
//검색 종료 일자
|
||||||
|
private String searchFns;
|
||||||
|
|
||||||
|
|
||||||
|
private Object batchList;
|
||||||
|
|
||||||
|
private String batchTime;
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import kr.co.uplus.ez.common.data.Paging;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
@Data
|
||||||
|
public class BatchListRes implements Serializable{
|
||||||
|
|
||||||
|
private Paging paging;
|
||||||
|
private List<BatchList> list;
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
package kr.co.uplus.ez.api.sysMgt.dto;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
import kr.co.uplus.ez.common.data.ApiResponseCode;
|
||||||
|
import kr.co.uplus.ez.common.data.ResponseMessage;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@SuppressWarnings("serial")
|
||||||
|
@Data
|
||||||
|
public class BatchListResDto extends ResponseMessage implements Serializable{
|
||||||
|
|
||||||
|
private BatchListRes data;
|
||||||
|
|
||||||
|
public BatchListResDto() {
|
||||||
|
this.retCode = ApiResponseCode.SUCCESS.getResultCode();
|
||||||
|
this.retMsg = ApiResponseCode.SUCCESS.getResultMsg();
|
||||||
|
}
|
||||||
|
|
||||||
|
public BatchListResDto(ApiResponseCode returnStr) {
|
||||||
|
this.retCode = returnStr.getResultCode();
|
||||||
|
this.retMsg = returnStr.getResultMsg();
|
||||||
|
}
|
||||||
|
|
||||||
|
public BatchListResDto(ApiResponseCode returnStr, BatchListRes data) {
|
||||||
|
this.retCode = returnStr.getResultCode();
|
||||||
|
this.retMsg = returnStr.getResultMsg();
|
||||||
|
this.data = data;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user