Compare commits
7 Commits
dev-dungtv
...
6353ffba57
Author | SHA1 | Date | |
---|---|---|---|
6353ffba57 | |||
ed9150aae8 | |||
270279b0c2 | |||
9a42291cf4 | |||
1a5ec4c6a3 | |||
856d0db130 | |||
6973321137 |
@ -231,6 +231,35 @@ a {
|
|||||||
.v-application.#{$theme}-mode {
|
.v-application.#{$theme}-mode {
|
||||||
min-width: 1000px;
|
min-width: 1000px;
|
||||||
|
|
||||||
|
.ant-checkbox-wrapper.ant-checkbox-wrapper-disabled,
|
||||||
|
.ant-checkbox-disabled .ant-checkbox-input
|
||||||
|
{
|
||||||
|
cursor: default !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.v-list-item__title {
|
||||||
|
font-family: var(--desktop-normal-font-family, "Inter-Regular", sans-serif) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-close-menu-list {
|
||||||
|
min-width: 100px;
|
||||||
|
border-color: transparent;
|
||||||
|
background-color: map-deep-get($config, #{$theme}, "btn-header-select-bg") !important;
|
||||||
|
|
||||||
|
.v-list-item {
|
||||||
|
min-height: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.v-list-item__title {
|
||||||
|
color: map-deep-get($config, #{$theme}, "btn-header-select-color") !important;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #46c0ff !important;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.icon-datepicker-color {
|
.icon-datepicker-color {
|
||||||
color: map-deep-get($config, #{$theme}, "icon-datepicker-color");
|
color: map-deep-get($config, #{$theme}, "icon-datepicker-color");
|
||||||
}
|
}
|
||||||
@ -760,7 +789,7 @@ a {
|
|||||||
|
|
||||||
.v-list-item__title {
|
.v-list-item__title {
|
||||||
color: map-deep-get($config, #{$theme}, "tui-datepicker-calendar-color");
|
color: map-deep-get($config, #{$theme}, "tui-datepicker-calendar-color");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.v-select-list{
|
&.v-select-list{
|
||||||
@ -808,6 +837,7 @@ a {
|
|||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
|
margin-top: 2px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 139px;
|
width: 139px;
|
||||||
@ -824,20 +854,11 @@ a {
|
|||||||
.btn-close-menu-list {
|
.btn-close-menu-list {
|
||||||
min-width: 100px;
|
min-width: 100px;
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
background-color: map-deep-get($config, #{$theme}, "btn-header-select-bg") !important;
|
|
||||||
|
|
||||||
.v-list-item {
|
.v-list-item {
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.v-list-item__title {
|
|
||||||
color: map-deep-get($config, #{$theme}, "btn-header-select-color");
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
color: #46c0ff;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.v-btn {
|
.v-btn {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
color: map-deep-get($config, #{$theme}, "btn-header-select-color") !important;
|
color: map-deep-get($config, #{$theme}, "btn-header-select-color") !important;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
.tui-grid-header-area,
|
.tui-grid-header-area,
|
||||||
.tui-grid-summary-area {
|
.tui-grid-summary-area {
|
||||||
margin-right: $scrollbar-width;
|
margin-right: $scrollbar-width !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -406,7 +406,7 @@
|
|||||||
&-header-area {
|
&-header-area {
|
||||||
// background-color: none;
|
// background-color: none;
|
||||||
border: none;
|
border: none;
|
||||||
margin-right: 0 !important;
|
// margin-right: 0 !important;
|
||||||
background-color: map-deep-get($config,
|
background-color: map-deep-get($config,
|
||||||
#{$theme},
|
#{$theme},
|
||||||
"tui-grid-cell-backgroundColor"
|
"tui-grid-cell-backgroundColor"
|
||||||
|
@ -98,19 +98,17 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
selectedObjId(val) {
|
selectedObjId(val) {
|
||||||
if (val === 'TAG') {
|
if (val === 'TAG') {
|
||||||
this.detailList[1].class = 'd-none';
|
this.detailList[1].class = 'd-none ';
|
||||||
this.detailList[2].class = 'd-block pl-4';
|
this.detailList[2].class = 'd-block pl-4 mt-2';
|
||||||
this.detailList[3].class = 'd-block';
|
this.detailList[3].class = 'd-block';
|
||||||
|
this.detailList[4].class = 'pl-4 mt-2';
|
||||||
} else {
|
} else {
|
||||||
// }else if(val==="READ_PLC"){
|
// }else if(val==="READ_PLC"){
|
||||||
|
this.detailList[4].class = 'pl-4 mt-2';
|
||||||
this.detailList[3].class = 'd-block';
|
this.detailList[3].class = 'd-block';
|
||||||
this.detailList[2].class = 'd-none';
|
this.detailList[2].class = 'd-none';
|
||||||
this.detailList[1].class = 'd-block pl-4';
|
this.detailList[1].class = 'd-block pl-4 mt-1 pb-0';
|
||||||
}
|
}
|
||||||
this.detailList[4].class = 'pl-4 mt-2';
|
|
||||||
|
|
||||||
console.log(val)
|
|
||||||
console.log(this.detailList)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
@ -380,7 +378,7 @@ const myDetail = [
|
|||||||
label: '대상 유형',
|
label: '대상 유형',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
cols: 6,
|
cols: 6,
|
||||||
class: 'pr-4 py-2',
|
class: 'pr-4 py-2 mt-1',
|
||||||
list: 'emMapDivList',
|
list: 'emMapDivList',
|
||||||
valueNm: 'objKind',
|
valueNm: 'objKind',
|
||||||
itemText: 'commCdNm',
|
itemText: 'commCdNm',
|
||||||
|
@ -912,17 +912,6 @@ const myColumns = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const unAsgnRoleByUserColumns = [
|
const unAsgnRoleByUserColumns = [
|
||||||
{
|
|
||||||
header: '',
|
|
||||||
name: '',
|
|
||||||
align: 'center',
|
|
||||||
width: 50,
|
|
||||||
formatter: (props) => {
|
|
||||||
return `<label class="custom-radio">
|
|
||||||
<span class="radio-mark"></span>
|
|
||||||
</label>`;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ header: '역할ID', name: 'roleId', align: 'left' },
|
{ header: '역할ID', name: 'roleId', align: 'left' },
|
||||||
{ header: '역할명', name: 'roleNm' },
|
{ header: '역할명', name: 'roleNm' },
|
||||||
{ header: '적용시작일', name: 'aplyStartDt', hidden: true },
|
{ header: '적용시작일', name: 'aplyStartDt', hidden: true },
|
||||||
@ -932,8 +921,7 @@ const unAsgnRoleByUserColumns = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const asgnRoleByUserColumns = [
|
const asgnRoleByUserColumns = [
|
||||||
|
{ header: '역할ID', name: 'roleId', align: 'left' },
|
||||||
{ header: '역할ID', name: 'roleId', align: 'center' },
|
|
||||||
{ header: '역할명', name: 'roleNm' },
|
{ header: '역할명', name: 'roleNm' },
|
||||||
{
|
{
|
||||||
header: '적용시작일',
|
header: '적용시작일',
|
||||||
@ -947,6 +935,17 @@ const asgnRoleByUserColumns = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const asgnMenuByUserColumns = [
|
const asgnMenuByUserColumns = [
|
||||||
|
{
|
||||||
|
header: '',
|
||||||
|
name: '',
|
||||||
|
align: 'center',
|
||||||
|
width: 50,
|
||||||
|
formatter: (props) => {
|
||||||
|
return `<label class="custom-radio">
|
||||||
|
<span class="radio-mark"></span>
|
||||||
|
</label>`;
|
||||||
|
}
|
||||||
|
},
|
||||||
{ header: '메뉴명', name: 'menuNm' }];
|
{ header: '메뉴명', name: 'menuNm' }];
|
||||||
|
|
||||||
const myDetail = blocCdList => {
|
const myDetail = blocCdList => {
|
||||||
|
@ -67,6 +67,10 @@
|
|||||||
@getRowsData="getRowData"
|
@getRowsData="getRowData"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="d-flex align-center justify-center pa-5" v-if="loadGrid && totalCount > 0">
|
||||||
|
<pagination id="pagination" :total-count="totalCount" :page-num="page" :limit="limit"
|
||||||
|
@loadData="changeGrid" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
@ -105,6 +109,7 @@ import Buttons from '~/components/common/button/Buttons';
|
|||||||
import Grid from '~/components/common/Grid';
|
import Grid from '~/components/common/Grid';
|
||||||
import Form from '~/components/common/form/Form';
|
import Form from '~/components/common/form/Form';
|
||||||
import Utility from '~/plugins/utility';
|
import Utility from '~/plugins/utility';
|
||||||
|
import pagination from '~/components/common/Pagination';
|
||||||
|
|
||||||
let myTitle;
|
let myTitle;
|
||||||
let myPrgmId;
|
let myPrgmId;
|
||||||
@ -133,6 +138,7 @@ export default {
|
|||||||
BtnSearch,
|
BtnSearch,
|
||||||
BtnExcelDownload,
|
BtnExcelDownload,
|
||||||
Buttons,
|
Buttons,
|
||||||
|
pagination,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -141,6 +147,11 @@ export default {
|
|||||||
gridName: 'rowGrid',
|
gridName: 'rowGrid',
|
||||||
// rowGridOrigin: [],
|
// rowGridOrigin: [],
|
||||||
detailList: myDetail,
|
detailList: myDetail,
|
||||||
|
itemsPerPage: 10,
|
||||||
|
itemsPerPageArray: [10, 20, 30],
|
||||||
|
limit: 20,
|
||||||
|
page: 1,
|
||||||
|
totalCount: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -161,7 +172,10 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
chkIsFind(val) {
|
chkIsFind(val) {
|
||||||
if (val) this.search();
|
if (val) {
|
||||||
|
this.page = 1;
|
||||||
|
this.search();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
chkExecRsltCd() {
|
chkExecRsltCd() {
|
||||||
this.setPageData({ isFind: true });
|
this.setPageData({ isFind: true });
|
||||||
@ -197,16 +211,15 @@ export default {
|
|||||||
// chkOpenTabList: "chkOpenTabList"
|
// chkOpenTabList: "chkOpenTabList"
|
||||||
// }),
|
// }),
|
||||||
init() {
|
init() {
|
||||||
// this.layoutInit();
|
this.layoutInit();
|
||||||
this.gridInit();
|
this.gridInit();
|
||||||
},
|
},
|
||||||
// layoutInit() {
|
layoutInit() {
|
||||||
// const searchFilterHeight = this.$refs.searchFilter.offsetHeight;
|
this.$refs.contents.style.height = 'auto';
|
||||||
// this.$refs.contents.style.height = `calc(100% - ${searchFilterHeight}px)`;
|
},
|
||||||
// },
|
|
||||||
gridInit() {
|
gridInit() {
|
||||||
this.loadGrid = false;
|
this.loadGrid = false;
|
||||||
const gridHeight = this.$refs.gridParent.offsetHeight - 30;
|
const gridHeight = this.$refs.gridParent.offsetHeight;
|
||||||
|
|
||||||
const myOptions = {
|
const myOptions = {
|
||||||
scrollX: false,
|
scrollX: false,
|
||||||
@ -219,10 +232,10 @@ export default {
|
|||||||
|
|
||||||
const _this = this;
|
const _this = this;
|
||||||
const myColumns = [
|
const myColumns = [
|
||||||
{ header: 'No.', name: 'batchLogSeq', align: 'right', width: 100 },
|
{ header: 'No.', name: 'batchLogSeq', align: 'right', width: 90 },
|
||||||
{ header: '배치ID', name: 'batchId', align: 'right', width: 100 },
|
{ header: '배치ID', name: 'batchId', align: 'right', width: 90 },
|
||||||
{ header: '배치명', name: 'batchNm', align: 'left', width: 150 },
|
{ header: '배치명', name: 'batchNm', align: 'left', width: 150 },
|
||||||
{ header: '실행 일자', name: 'execDt', align: 'right', width: 80 },
|
{ header: '실행 일자', name: 'execDt', align: 'right', width: 70 },
|
||||||
{
|
{
|
||||||
header: '실행 결과',
|
header: '실행 결과',
|
||||||
name: 'execRsltCd',
|
name: 'execRsltCd',
|
||||||
@ -252,9 +265,9 @@ export default {
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
width: 160,
|
width: 160,
|
||||||
},
|
},
|
||||||
{ header: '등록자NO', name: 'regUserNo', width: 120 },
|
{ header: '등록자NO', name: 'regUserNo', width: 100 },
|
||||||
{ header: '등록일시', name: 'regDttm', align: 'center', width: 160 },
|
{ header: '등록일시', name: 'regDttm', align: 'center', width: 160 },
|
||||||
{ header: '수정자NO', name: 'procUserNo', width: 120 },
|
{ header: '수정자NO', name: 'procUserNo', width: 100 },
|
||||||
{ header: '수정일시', name: 'procDttm', align: 'center', width: 160 },
|
{ header: '수정일시', name: 'procDttm', align: 'center', width: 160 },
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -274,6 +287,11 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
async getRowGridData() {
|
async getRowGridData() {
|
||||||
|
this.loadGrid = false;
|
||||||
|
// this.setGridData({
|
||||||
|
// gridKey: this.gridName,
|
||||||
|
// value: [],
|
||||||
|
// });
|
||||||
const res = await this.postApiReturn({
|
const res = await this.postApiReturn({
|
||||||
apiKey: 'selectBatchLog',
|
apiKey: 'selectBatchLog',
|
||||||
resKey: 'batchLogData',
|
resKey: 'batchLogData',
|
||||||
@ -282,8 +300,24 @@ export default {
|
|||||||
batchNm: this.pageData.batchNm, // 검색키워드: 배치명
|
batchNm: this.pageData.batchNm, // 검색키워드: 배치명
|
||||||
execRsltCd: this.pageData.execRsltCd, //배치 실행 결과
|
execRsltCd: this.pageData.execRsltCd, //배치 실행 결과
|
||||||
fromDt: this.pageData.fromDt,
|
fromDt: this.pageData.fromDt,
|
||||||
|
limit: this.limit,
|
||||||
|
page: this.page,
|
||||||
|
offset: (this.page - 1) * this.limit, // MariaDB Query에서 직접 계산이 안됨
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const res2 = await this.postApiReturn({
|
||||||
|
apiKey: 'selectBatchLogPageTotal',
|
||||||
|
resKey: 'batchLogPageTotal',
|
||||||
|
sendParam: {
|
||||||
|
batchId: this.pageData.batchId, // 검색키워드: 배치ID
|
||||||
|
batchNm: this.pageData.batchNm, // 검색키워드: 배치명
|
||||||
|
execRsltCd: this.pageData.execRsltCd, //배치 실행 결과
|
||||||
|
fromDt: this.pageData.fromDt,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
this.totalCount = res2[0].totalcount;
|
||||||
|
|
||||||
const newRes = res.map(item => {
|
const newRes = res.map(item => {
|
||||||
const newObj = {
|
const newObj = {
|
||||||
...item,
|
...item,
|
||||||
@ -302,6 +336,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
this.loadGrid = true;
|
||||||
if (newRes.length > 0) {
|
if (newRes.length > 0) {
|
||||||
this.$refs[this.gridName].focus({
|
this.$refs[this.gridName].focus({
|
||||||
rowKey: this.chkRowGridSelectKey || 0,
|
rowKey: this.chkRowGridSelectKey || 0,
|
||||||
@ -361,6 +396,12 @@ export default {
|
|||||||
}
|
}
|
||||||
return retVal;
|
return retVal;
|
||||||
},
|
},
|
||||||
|
changeGrid: async function (pageNum, limit) {
|
||||||
|
this.page = pageNum;
|
||||||
|
this.limit = limit;
|
||||||
|
|
||||||
|
this.search();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -281,6 +281,7 @@ const INIT_URL_STATE = {
|
|||||||
|
|
||||||
// prgmId: "PRG0020" 배치로그
|
// prgmId: "PRG0020" 배치로그
|
||||||
selectBatchLog: 'comm/base/BatchLogCtr/selectBatchLog', // 배치 로그
|
selectBatchLog: 'comm/base/BatchLogCtr/selectBatchLog', // 배치 로그
|
||||||
|
selectBatchLogPageTotal: 'comm/base/BatchLogCtr/selectBatchLogPageTotal', // 배치 로그
|
||||||
|
|
||||||
// prgmId: "PRG0017" 검침개소 기간별 비교
|
// prgmId: "PRG0017" 검침개소 기간별 비교
|
||||||
selectSameReadPlcTime: 'ems/base/sameReadPlcCtr/selectSameReadPlcTime',
|
selectSameReadPlcTime: 'ems/base/sameReadPlcCtr/selectSameReadPlcTime',
|
||||||
|
Reference in New Issue
Block a user