Compare commits
17 Commits
dev-dungtv
...
fade079b06
Author | SHA1 | Date | |
---|---|---|---|
fade079b06 | |||
98c26a156e | |||
b4f8e41c7e | |||
e9bdd80f14 | |||
eeadcd254d | |||
b56bd12bb7 | |||
bea1e0889b | |||
0f66d84b48 | |||
34d03b2546 | |||
8f83e1d60c | |||
54220aa4eb | |||
315aafc528 | |||
8963a92475 | |||
d66a03626b | |||
665a178f82 | |||
7e2383efda | |||
708b648080 |
@ -144,7 +144,7 @@ a {
|
|||||||
|
|
||||||
& .router-tab__container {
|
& .router-tab__container {
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
min-height: calc(100vh - 105px);
|
height: calc(100vh - 105px);
|
||||||
max-height: calc(100vh - 105px);
|
max-height: calc(100vh - 105px);
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.v-select__custom {
|
.v-select__custom {
|
||||||
padding: 0.125rem;
|
padding: 0;
|
||||||
|
|
||||||
&.v-text-field.v-text-field--solo:not(.v-text-field--solo-flat)>.v-input__control>.v-input__slot {
|
&.v-text-field.v-text-field--solo:not(.v-text-field--solo-flat)>.v-input__control>.v-input__slot {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -78,6 +78,16 @@
|
|||||||
border-color: #d9d9d9;
|
border-color: #d9d9d9;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.select-large {
|
||||||
|
.v-input__slot,
|
||||||
|
.v-input__control {
|
||||||
|
height: 40px !important;
|
||||||
|
// border: solid 1px #D9D9D9;
|
||||||
|
border-radius: 8px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
&.surface-name {
|
&.surface-name {
|
||||||
fieldset {
|
fieldset {
|
||||||
max-width: 345px;
|
max-width: 345px;
|
||||||
|
@ -63,6 +63,12 @@
|
|||||||
line-height: 1.25 !important;
|
line-height: 1.25 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.custom-title-7 {
|
||||||
|
font-size: 0.875rem !important;
|
||||||
|
font-weight: 400 !important;
|
||||||
|
line-height: 22px !important;
|
||||||
|
}
|
||||||
|
|
||||||
.custom-title-8 {
|
.custom-title-8 {
|
||||||
font-size: 0.75rem !important;
|
font-size: 0.75rem !important;
|
||||||
font-weight: 700 !important;
|
font-weight: 700 !important;
|
||||||
@ -76,15 +82,15 @@
|
|||||||
|
|
||||||
.custom-text-2 {
|
.custom-text-2 {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
font-family: SpoqaHanSansNeo;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: normal;
|
|
||||||
font-stretch: normal;
|
|
||||||
font-style: normal;
|
|
||||||
line-height: 2.17;
|
line-height: 2.17;
|
||||||
letter-spacing: normal;
|
// font-weight: normal;
|
||||||
text-align: right;
|
// font-stretch: normal;
|
||||||
color: #fff;
|
// font-style: normal;
|
||||||
|
// letter-spacing: normal;
|
||||||
|
// text-align: right;
|
||||||
|
// color: #fff;
|
||||||
|
// font-family: SpoqaHanSansNeo;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-color--white-0 {
|
.text-color--white-0 {
|
||||||
@ -113,6 +119,14 @@
|
|||||||
color: map-deep-get($config, #{$theme}, "h1-title");
|
color: map-deep-get($config, #{$theme}, "h1-title");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.custom-subtitle-tab {
|
||||||
|
font-size: 1.25rem !important;
|
||||||
|
font-weight: 600 !important;
|
||||||
|
line-height: 1.25 !important;
|
||||||
|
color: map-deep-get($config, #{$theme}, "subtitle-tab");
|
||||||
|
}
|
||||||
|
|
||||||
.v-dialog {
|
.v-dialog {
|
||||||
.custom-title-4 {
|
.custom-title-4 {
|
||||||
font-size: 16px !important;
|
font-size: 16px !important;
|
||||||
|
@ -171,6 +171,7 @@ $config: (
|
|||||||
ant-btn-default-border-outlined:#424242,
|
ant-btn-default-border-outlined:#424242,
|
||||||
btn-header-select-bg: #1F1F1F,
|
btn-header-select-bg: #1F1F1F,
|
||||||
btn-header-select-color:#FFFFFFD9,
|
btn-header-select-color:#FFFFFFD9,
|
||||||
|
subtitle-tab: #FFFFFFA6,
|
||||||
),
|
),
|
||||||
light: (w-g5: $--color-gray_555,
|
light: (w-g5: $--color-gray_555,
|
||||||
g5-w: $--color-white,
|
g5-w: $--color-white,
|
||||||
@ -306,5 +307,6 @@ $config: (
|
|||||||
ant-btn-default-border-outlined:#D9D9D9,
|
ant-btn-default-border-outlined:#D9D9D9,
|
||||||
btn-header-select-color:#1F1F1F,
|
btn-header-select-color:#1F1F1F,
|
||||||
btn-header-select-bg:#FFFFFF,
|
btn-header-select-bg:#FFFFFF,
|
||||||
|
subtitle-tab: #000000A6,
|
||||||
),
|
),
|
||||||
);
|
);
|
@ -4,13 +4,14 @@
|
|||||||
:data="chkGridData"
|
:data="chkGridData"
|
||||||
:columns="chkGridColumns"
|
:columns="chkGridColumns"
|
||||||
:options="chkGridOptions"
|
:options="chkGridOptions"
|
||||||
@focusChange="focusChangeEvt"
|
@mousedown="focusChangeEvt"
|
||||||
@click="startEditing"
|
@click="startEditing"
|
||||||
@editingFinish="editingFinish"
|
@editingFinish="editingFinish"
|
||||||
@dblclick="dblClick"
|
@dblclick="dblClick"
|
||||||
@mouseover="mouseoverEvent"
|
@mouseover="mouseoverEvent"
|
||||||
@mouseout="mouseoutEvent"
|
@mouseout="mouseoutEvent"
|
||||||
/>
|
/>
|
||||||
|
<!-- @focusChange="focusChangeEvt" -->
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { mapState, mapMutations } from 'vuex';
|
import { mapState, mapMutations } from 'vuex';
|
||||||
@ -107,16 +108,13 @@ export default {
|
|||||||
},
|
},
|
||||||
chkGridOptions() {
|
chkGridOptions() {
|
||||||
const options = {
|
const options = {
|
||||||
// bodyHeight: 'fitToContent',
|
|
||||||
scrollX: false,
|
|
||||||
scrollY: false,
|
|
||||||
...this.gridData.option,
|
...this.gridData.option,
|
||||||
useIcon: false,
|
|
||||||
};
|
};
|
||||||
options.treeColumnOptions = {
|
options.treeColumnOptions = {
|
||||||
useIcon: false,
|
useIcon: false,
|
||||||
...options.treeColumnOptions,
|
...options.treeColumnOptions,
|
||||||
};
|
};
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
},
|
},
|
||||||
defaultRow() {
|
defaultRow() {
|
||||||
@ -163,7 +161,7 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {},
|
created() {},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
// console.log('--------------DEBUG----gridData: ', this.gridData);
|
// console.log(this.dataPath);
|
||||||
if (this.gridName) {
|
if (this.gridName) {
|
||||||
this.gridInstance = this.$refs['tuigrid' + this.gridName];
|
this.gridInstance = this.$refs['tuigrid' + this.gridName];
|
||||||
|
|
||||||
@ -271,6 +269,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
focusChangeEvt(e) {
|
focusChangeEvt(e) {
|
||||||
|
// console.log("------------------DEBUG-------focusChangeEvt:", e);
|
||||||
// console.log('focusChangeEvt1...')
|
// console.log('focusChangeEvt1...')
|
||||||
if (this.preventFocusChangeEvent(e)) {
|
if (this.preventFocusChangeEvent(e)) {
|
||||||
// console.log('prevent focusChangeEvt')
|
// console.log('prevent focusChangeEvt')
|
||||||
@ -291,6 +290,7 @@ export default {
|
|||||||
this.sendSelectedRowData(e.rowKey);
|
this.sendSelectedRowData(e.rowKey);
|
||||||
},
|
},
|
||||||
startEditing(e) {
|
startEditing(e) {
|
||||||
|
// console.log("------------DEBUG-----startEditing----", e);
|
||||||
// console.log('startEditing1...')
|
// console.log('startEditing1...')
|
||||||
if (this.preventFocusChangeEvent(e)) {
|
if (this.preventFocusChangeEvent(e)) {
|
||||||
// console.log('prevent startEditing')
|
// console.log('prevent startEditing')
|
||||||
@ -666,8 +666,6 @@ export default {
|
|||||||
store.dimension.offsetLeft = offsetLeft;
|
store.dimension.offsetLeft = offsetLeft;
|
||||||
},
|
},
|
||||||
setHeight(_a,height){
|
setHeight(_a,height){
|
||||||
return; // setting auto height
|
|
||||||
|
|
||||||
// console.log("setHeight");
|
// console.log("setHeight");
|
||||||
var dimension = _a.dimension;
|
var dimension = _a.dimension;
|
||||||
var headerHeight = dimension.headerHeight, summaryHeight = dimension.summaryHeight, tableBorderWidth = dimension.tableBorderWidth;
|
var headerHeight = dimension.headerHeight, summaryHeight = dimension.summaryHeight, tableBorderWidth = dimension.tableBorderWidth;
|
||||||
@ -705,11 +703,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
::v-deep .tui-grid-container {
|
::v-deep .tui-grid-container {
|
||||||
|
|
||||||
// .tui-grid-body-area {
|
|
||||||
// overflow: hidden !important;
|
|
||||||
// }
|
|
||||||
|
|
||||||
.tui-grid-content-area {
|
.tui-grid-content-area {
|
||||||
.tui-grid-cell-content {
|
.tui-grid-cell-content {
|
||||||
input[type='number'] {
|
input[type='number'] {
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
<v-row class="search-box" align="center" no-gutters>
|
<v-row class="search-box" align="center" no-gutters>
|
||||||
<v-col v-if="label" :cols="labelCols">
|
<v-col v-if="label" :cols="labelCols">
|
||||||
<label for="" class="search-box-label">
|
<label for="" class="search-box-label">
|
||||||
<v-icon x-small color="primary" class="mr-1">mdi-record-circle</v-icon>
|
<v-icon small color="primary"
|
||||||
|
:class="['mr-1', required ? 'icon-orange' : 'icon-blue']"
|
||||||
|
>$icoBulletPoint</v-icon>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</label>
|
</label>
|
||||||
</v-col>
|
</v-col>
|
||||||
@ -17,14 +19,16 @@
|
|||||||
readonly
|
readonly
|
||||||
outlined
|
outlined
|
||||||
>
|
>
|
||||||
<template #append>
|
<template #append >
|
||||||
<v-icon size="20">$icoCalendar</v-icon>
|
<v-icon size="20" v-show="!isRange">$icoCalendar</v-icon>
|
||||||
</template>
|
</template>
|
||||||
<template #append-outer>
|
<template #append-outer>
|
||||||
<div ref="startpicker-container" id="startpicker-container"></div>
|
<div ref="startpicker-container" id="startpicker-container"></div>
|
||||||
</template>
|
</template>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
<div v-show="isRange" class="mx-3" :style="{ lineHeight: 0 }">~</div>
|
<div v-if="isRange" class="mx-3" :style="{ lineHeight: 0 }">
|
||||||
|
<img :src="arrowIcon" alt="">
|
||||||
|
</div>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-show="isRange"
|
v-show="isRange"
|
||||||
id="endpicker"
|
id="endpicker"
|
||||||
@ -129,6 +133,12 @@ export default {
|
|||||||
this.defaultRange === 'no limite'
|
this.defaultRange === 'no limite'
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
arrowIcon() {
|
||||||
|
if(this.isDarkMode){
|
||||||
|
return require('@/assets/images/arrow_datepicker_dm.png');
|
||||||
|
}
|
||||||
|
return require('@/assets/images/arrow_datepicker.png');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
myCmCycle() {
|
myCmCycle() {
|
||||||
|
@ -45,7 +45,7 @@ export default {
|
|||||||
size: {
|
size: {
|
||||||
type: String,
|
type: String,
|
||||||
require: false,
|
require: false,
|
||||||
default: "middle", // small, middle, large
|
default: "default", // small, middle, large
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-row class="search-box" align="center">
|
<v-row class="search-box no-gutters" align="center">
|
||||||
<v-col :cols="option.labelCols" class="py-0">
|
<v-col :cols="option.labelCols" class="py-0">
|
||||||
<label for="" class="search-box-label">
|
<label for="" class="search-box-label">
|
||||||
<v-icon v-if="item.iconShow" small
|
<v-icon v-if="item.iconShow" small
|
||||||
@ -8,13 +8,11 @@
|
|||||||
</label>
|
</label>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="option.textCols" class="py-0">
|
<v-col :cols="option.textCols" class="py-0">
|
||||||
<v-text-field readonly append-icon="" class="v-input__custom" outlined :hide-details="true"
|
<v-text-field readonly append-icon="" :class="['v-select__custom', customClass]" outlined :hide-details="true"
|
||||||
v-model="searchWord" @keyup.enter="typeEnterKey" @click="dialogOpenCloseEvent(dialog)"
|
v-model="selectValue" @keyup.enter="typeEnterKey" @click="dialogOpenCloseEvent(dialog)"
|
||||||
:required="item.required || false"><template v-slot:append>
|
:required="item.required || false"><template v-slot:append>
|
||||||
<!-- Custom SVG icon -->
|
<!-- Custom SVG icon -->
|
||||||
<v-icon>$icoSearch</v-icon>
|
<v-icon>$icoSearch</v-icon>
|
||||||
|
|
||||||
|
|
||||||
</template></v-text-field>
|
</template></v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
@ -43,8 +41,6 @@
|
|||||||
class="search-button">조회</a-button>
|
class="search-button">조회</a-button>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
|
||||||
</v-row>
|
</v-row>
|
||||||
<!-- <div :style="'height: calc(65vh)'"> -->
|
<!-- <div :style="'height: calc(65vh)'"> -->
|
||||||
<div :style="'height: 600px'" class="px-5">
|
<div :style="'height: 600px'" class="px-5">
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
:editorGrid="true"
|
:editorGrid="true"
|
||||||
:innerTabGridInfo="innerTabGridInfo"
|
:innerTabGridInfo="innerTabGridInfo"
|
||||||
@getRowsData="getRowData"
|
@getRowsData="getRowData"
|
||||||
:dataPath="dataPathMock"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -52,7 +51,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loadGrid: true,
|
loadGrid: false,
|
||||||
gridName: 'rowDetailGrid',
|
gridName: 'rowDetailGrid',
|
||||||
rowKey: null,
|
rowKey: null,
|
||||||
edtingFinishFlag: 'Y',
|
edtingFinishFlag: 'Y',
|
||||||
@ -343,7 +342,9 @@ export default {
|
|||||||
value: myColumns,
|
value: myColumns,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.loadGrid = true;
|
this.$nextTick(() => {
|
||||||
|
this.loadGrid = true;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
async btnActions(action) {
|
async btnActions(action) {
|
||||||
let dataArr = [];
|
let dataArr = [];
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div ref="gridParent" style="min-height: calc(100vh - 800px);">
|
<div ref="gridParent" style="min-height: calc(100vh - 800px);">
|
||||||
<Grid :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="parentPrgmId"
|
<Grid :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="parentPrgmId"
|
||||||
@getRowsData="getRowData" :innerTabGridInfo="innerTabGridInfo" :dataPath="dataPathMock" />
|
@getRowsData="getRowData" :innerTabGridInfo="innerTabGridInfo" />
|
||||||
</div>
|
</div>
|
||||||
<div style="min-height: calc(100vh - 900px);" class="mt-4">
|
<div style="min-height: calc(100vh - 900px);" class="mt-4">
|
||||||
<component :is="'Form'" :parentPrgmId="parentPrgmId" :bindingData="gridName" :detailList="detailList"
|
<component :is="'Form'" :parentPrgmId="parentPrgmId" :bindingData="gridName" :detailList="detailList"
|
||||||
@ -41,7 +41,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loadGrid: true,
|
loadGrid: false,
|
||||||
gridName: 'rowEqpmConstGrid',
|
gridName: 'rowEqpmConstGrid',
|
||||||
detailList: myEqpmConstDetail,
|
detailList: myEqpmConstDetail,
|
||||||
|
|
||||||
@ -232,7 +232,9 @@ export default {
|
|||||||
value: myColumns,
|
value: myColumns,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.loadGrid = true;
|
this.$nextTick(() => {
|
||||||
|
this.loadGrid = true;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
async getRowData(data, gridName) {
|
async getRowData(data, gridName) {
|
||||||
if (data.rowStat === 'I') {
|
if (data.rowStat === 'I') {
|
||||||
|
@ -4,25 +4,24 @@
|
|||||||
class="d-flex justify-space-between align-center"
|
class="d-flex justify-space-between align-center"
|
||||||
style="height: 80px;"
|
style="height: 80px;"
|
||||||
>
|
>
|
||||||
<span class="txt custom-title-4-new">설비 입출력 정보</span>
|
<span class="txt">설비 입출력 정보</span>
|
||||||
<Buttons
|
<Buttons
|
||||||
:parentPrgmId="parentPrgmId"
|
:parentPrgmId="parentPrgmId"
|
||||||
:bindingData="gridName"
|
:bindingData="gridName"
|
||||||
:btnActionsFnc="btnActions"
|
:btnActionsFnc="btnActions"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div ref="gridParent" style="min-height: calc(100vh - 800px);" >
|
<div ref="gridParent" style="height: calc(100vh - 800px);">
|
||||||
<!-- :is="loadGrid ? 'Grid' : null" -->
|
|
||||||
<Grid
|
<Grid
|
||||||
:ref="gridName"
|
:ref="gridName"
|
||||||
|
:is="loadGrid ? 'Grid' : null"
|
||||||
:gridName="gridName"
|
:gridName="gridName"
|
||||||
:parentPrgmId="parentPrgmId"
|
:parentPrgmId="parentPrgmId"
|
||||||
@getRowsData="getRowData"
|
@getRowsData="getRowData"
|
||||||
:innerTabGridInfo="innerTabGridInfo"
|
:innerTabGridInfo="innerTabGridInfo"
|
||||||
:dataPath="dataPathMock"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div style="min-height: calc(100vh - 900px);" class="mt-4">
|
<div style="min-height: calc(100vh - 900px);">
|
||||||
<component
|
<component
|
||||||
:is="'Form'"
|
:is="'Form'"
|
||||||
:parentPrgmId="parentPrgmId"
|
:parentPrgmId="parentPrgmId"
|
||||||
@ -60,28 +59,12 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loadGrid: true,
|
loadGrid: false,
|
||||||
gridName: 'rowEqpmIaoGrid',
|
gridName: 'rowEqpmIaoGrid',
|
||||||
detailList: myEqpmIaoDetail,
|
detailList: myEqpmIaoDetail,
|
||||||
|
|
||||||
inputList_emMapDiv: [],
|
inputList_emMapDiv: [],
|
||||||
inputList_cmInOut: [],
|
inputList_cmInOut: [],
|
||||||
dataPathMock: {
|
|
||||||
'rowEqpmIaoGrid' : {
|
|
||||||
column: [
|
|
||||||
{ header: '대상항목', name: 'id', headerAlign: 'left' },
|
|
||||||
{ header: '에너지원 명', name: 'lable', headerAlign: 'left' },
|
|
||||||
{ header: '대상 유형', name: 'type', headerAlign: 'left' },
|
|
||||||
{ header: '물리량', name: 'note', headerAlign: 'left' },
|
|
||||||
{ header: '계산여부', name: 'field1', headerAlign: 'left' },
|
|
||||||
{ header: '분배율', name: 'field2', headerAlign: 'left' }
|
|
||||||
],
|
|
||||||
data: dataPathDataExample,
|
|
||||||
defaultRow: dataPathDataExample,
|
|
||||||
option: {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -130,16 +113,16 @@ export default {
|
|||||||
selectedObjId(val) {
|
selectedObjId(val) {
|
||||||
console.log('selectedObjId : ', val);
|
console.log('selectedObjId : ', val);
|
||||||
if (val === 'TAG') {
|
if (val === 'TAG') {
|
||||||
this.detailList[2].class = 'py-2 d-none';
|
this.detailList[2].class = 'py-3 d-none';
|
||||||
this.detailList[3].class = 'py-2 d-none';
|
this.detailList[3].class = 'py-3 pl-4 pt-1 d-none';
|
||||||
this.detailList[4].class = 'py-2';
|
this.detailList[4].class = 'py-3';
|
||||||
this.detailList[5].class = 'py-2';
|
this.detailList[5].class = 'py-3';
|
||||||
} else {
|
} else {
|
||||||
// }else if(val==="READ_PLC"){
|
// }else if(val==="READ_PLC"){
|
||||||
this.detailList[5].class = 'py-2 d-none';
|
this.detailList[5].class = 'py-3 d-none';
|
||||||
this.detailList[4].class = 'py-2 d-none';
|
this.detailList[4].class = 'py-3 d-none';
|
||||||
this.detailList[3].class = 'py-2';
|
this.detailList[3].class = 'py-3 pl-4 pt-1';
|
||||||
this.detailList[2].class = 'py-2';
|
this.detailList[2].class = 'py-3';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
selectedCalcFg(val) {
|
selectedCalcFg(val) {
|
||||||
@ -172,7 +155,7 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations({
|
...mapMutations({
|
||||||
@ -416,6 +399,7 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
function checkDuplicate(data, targetKey) {
|
function checkDuplicate(data, targetKey) {
|
||||||
var duplicateFlag = false;
|
var duplicateFlag = false;
|
||||||
var set = new Set();
|
var set = new Set();
|
||||||
@ -486,7 +470,7 @@ const myEqpmIaoDetail = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'EvtObjPop',
|
type: 'EvtObjPop',
|
||||||
labelContent: '대상 항목 111',
|
labelContent: '대상 항목',
|
||||||
valueNm: 'objId',
|
valueNm: 'objId',
|
||||||
valueNm2: 'objNm',
|
valueNm2: 'objNm',
|
||||||
bindNm: 'objNm',
|
bindNm: 'objNm',
|
||||||
@ -501,7 +485,7 @@ const myEqpmIaoDetail = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'InputText',
|
type: 'InputText',
|
||||||
cols: 5,
|
cols: 6,
|
||||||
class: 'py-3 d-none',
|
class: 'py-3 d-none',
|
||||||
valueNm: 'objNm',
|
valueNm: 'objNm',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
@ -614,13 +598,4 @@ const myEqpmIaoDetail = [
|
|||||||
iconShow: true
|
iconShow: true
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
import { getPathDataExample } from '@/const/const'
|
|
||||||
const dataPathDataExample = getPathDataExample({
|
|
||||||
id: 'INCHEON.HVAC.EQP_HT_CH001.UT_CH101.CHI_AMP_1A_PV',
|
|
||||||
lable: 'INCHEON 고온 냉동기 101호기 - 호로1',
|
|
||||||
type: '사용', note: '-',
|
|
||||||
field1: '1111',
|
|
||||||
field2: '2222',
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
class="d-flex justify-space-between align-center"
|
class="d-flex justify-space-between align-center"
|
||||||
style="height: 80px;"
|
style="height: 80px;"
|
||||||
>
|
>
|
||||||
<span class="txt">검침 대상 추가 정보</span>
|
<span class="txt custom-subtitle-tab">검침 대상 추가 정보</span>
|
||||||
<Buttons
|
<Buttons
|
||||||
:parentPrgmId="parentPrgmId"
|
:parentPrgmId="parentPrgmId"
|
||||||
:bindingData="gridName"
|
:bindingData="gridName"
|
||||||
@ -20,8 +20,6 @@
|
|||||||
:editorGrid="true"
|
:editorGrid="true"
|
||||||
:innerTabGridInfo="innerTabGridInfo"
|
:innerTabGridInfo="innerTabGridInfo"
|
||||||
@getRowsData="getRowData"
|
@getRowsData="getRowData"
|
||||||
:selectedRowDataWatchFlag="true"
|
|
||||||
:dataPath="dataPathMock"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -55,23 +53,10 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loadGrid: true,
|
loadGrid: false,
|
||||||
gridName: 'rowDetailGrid',
|
gridName: 'rowDetailGrid',
|
||||||
rowKey: null,
|
rowKey: null,
|
||||||
edtingFinishFlag: 'Y',
|
edtingFinishFlag: 'Y',
|
||||||
dataPathMock: {
|
|
||||||
"rowDetailGrid": {
|
|
||||||
column: [
|
|
||||||
{ header: '검침 대상 ID', name: 'readObjId', align: 'left' },
|
|
||||||
{ header: '검침 대상 명', name: 'readObjNm', align: 'left' },
|
|
||||||
{ header: '검침 대상 유형', name: 'readObjKind', align: 'left' },
|
|
||||||
{ header: '그룹', name: 'grpCd', align: 'left' },
|
|
||||||
],
|
|
||||||
data: dataPathDataExample,
|
|
||||||
defaultRow: dataPathDataExample,
|
|
||||||
option: {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -461,25 +446,4 @@ export default {
|
|||||||
search() {},
|
search() {},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
const dataPathDataExample = [
|
|
||||||
{
|
|
||||||
readObjId: 'OBJ001',
|
|
||||||
readObjNm: '서울 본사',
|
|
||||||
readObjKind: 'TYPE01',
|
|
||||||
grpCd: 'GRP01',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
readObjId: 'OBJ002',
|
|
||||||
readObjNm: '부산 지사',
|
|
||||||
readObjKind: 'TYPE02',
|
|
||||||
grpCd: 'GRP02',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
readObjId: 'OBJ003',
|
|
||||||
readObjNm: '대전 공장',
|
|
||||||
readObjKind: 'TYPE03',
|
|
||||||
grpCd: 'GRP01',
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-card class="pb-5">
|
<v-card class="pb-5">
|
||||||
<v-card-title class="d-flex justify-space-between align-end">
|
<v-card-title class="d-flex justify-space-between align-end">
|
||||||
<span class="tit ft-size_20 ft-weight_600">TAG 추가 정보</span>
|
<span style="color:#000000A6" class="tit custom-title-4-new">TAG 추가 정보</span>
|
||||||
<Buttons
|
<Buttons
|
||||||
:parentPrgmId="parentPrgmId"
|
:parentPrgmId="parentPrgmId"
|
||||||
:bindingData="gridName"
|
:bindingData="gridName"
|
||||||
|
@ -58,7 +58,7 @@ export default {
|
|||||||
layoutInit() {
|
layoutInit() {
|
||||||
if (this.$refs.searchFilter) {
|
if (this.$refs.searchFilter) {
|
||||||
const searchFilterHeight = this.$refs.searchFilter.offsetHeight;
|
const searchFilterHeight = this.$refs.searchFilter.offsetHeight;
|
||||||
this.$refs.contents.style.minHeight = `calc(100% - ${searchFilterHeight + 20}px)`;
|
this.$refs.contents.style.height = `calc(100% - ${searchFilterHeight + 20}px)`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//init() {}
|
//init() {}
|
||||||
|
@ -67,7 +67,6 @@
|
|||||||
:gridName="gridName"
|
:gridName="gridName"
|
||||||
:parentPrgmId="myPrgmId"
|
:parentPrgmId="myPrgmId"
|
||||||
@getRowsData="getRowData"
|
@getRowsData="getRowData"
|
||||||
:dataPath="dataPathMock"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -132,22 +131,8 @@ export default {
|
|||||||
return {
|
return {
|
||||||
myPrgmId: myPrgmId,
|
myPrgmId: myPrgmId,
|
||||||
gridName: 'rowGrid',
|
gridName: 'rowGrid',
|
||||||
loadGrid: true,
|
loadGrid: false,
|
||||||
detailList: myDetail,
|
detailList: myDetail,
|
||||||
dataPathMock : {
|
|
||||||
rowGrid: {
|
|
||||||
column: [
|
|
||||||
{ header: '추가 정보 그룹', name: 'addGrpId', align: 'left' },
|
|
||||||
{ header: '추가 정보 ID', name: 'addInfoId', align: 'left' },
|
|
||||||
{ header: '추가 정보 명', name: 'addInfoNm', align: 'left' },
|
|
||||||
{ header: 'Data 형식', name: 'addInfoDataKind', align: 'center' },
|
|
||||||
{ header: '사용여부', name: 'useFg', align: 'center' },
|
|
||||||
],
|
|
||||||
data: dataMockExample,
|
|
||||||
defaultRow: dataMockExample,
|
|
||||||
option: {},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -518,43 +503,4 @@ const myDetail = [
|
|||||||
placeholder: '시스템 자동입력',
|
placeholder: '시스템 자동입력',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const dataMockExample = [
|
|
||||||
{
|
|
||||||
addGrpId: 'GRP001',
|
|
||||||
addInfoId: 'INFO001',
|
|
||||||
addInfoNm: '온도 센서',
|
|
||||||
addInfoDataKind: 'DATA01',
|
|
||||||
useFg: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
addGrpId: 'GRP002',
|
|
||||||
addInfoId: 'INFO002',
|
|
||||||
addInfoNm: '압력 센서',
|
|
||||||
addInfoDataKind: 'DATA02',
|
|
||||||
useFg: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
addGrpId: 'GRP003',
|
|
||||||
addInfoId: 'INFO003',
|
|
||||||
addInfoNm: '압력 센서',
|
|
||||||
addInfoDataKind: 'DATA03',
|
|
||||||
useFg: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
addGrpId: 'GRP004',
|
|
||||||
addInfoId: 'INFO004',
|
|
||||||
addInfoNm: '압력 센서',
|
|
||||||
addInfoDataKind: 'DATA04',
|
|
||||||
useFg: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
addGrpId: 'GRP005',
|
|
||||||
addInfoId: 'INFO005',
|
|
||||||
addInfoNm: '압력 센서',
|
|
||||||
addInfoDataKind: 'DATA05',
|
|
||||||
useFg: false,
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -4,28 +4,24 @@
|
|||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
<v-row align="end" no-gutters>
|
<v-row align="center" no-gutters>
|
||||||
<v-col :cols="2.5">
|
<v-col :cols="2">
|
||||||
<InputText
|
<InputText
|
||||||
:parentPrgmId="myPrgmId"
|
:parentPrgmId="myPrgmId"
|
||||||
label="배치ID"
|
label="배치ID"
|
||||||
valueNm="batchId"
|
valueNm="batchId"
|
||||||
:searchOption="true"
|
:searchOption="true"
|
||||||
:iconShow="true"
|
|
||||||
customClass="input-large"
|
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="2.5">
|
<v-col :cols="2">
|
||||||
<InputText
|
<InputText
|
||||||
:parentPrgmId="myPrgmId"
|
:parentPrgmId="myPrgmId"
|
||||||
label="배치명"
|
label="배치명"
|
||||||
valueNm="batchNm"
|
valueNm="batchNm"
|
||||||
:searchOption="true"
|
:searchOption="true"
|
||||||
:iconShow="true"
|
|
||||||
customClass="input-large"
|
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="2.5">
|
<v-col :cols="2">
|
||||||
<component
|
<component
|
||||||
:is="'selectCodeList'"
|
:is="'selectCodeList'"
|
||||||
:parentPrgmId="myPrgmId"
|
:parentPrgmId="myPrgmId"
|
||||||
@ -33,21 +29,19 @@
|
|||||||
:dataKey="'execRsltCd'"
|
:dataKey="'execRsltCd'"
|
||||||
:sendParam="{ commGrpCd: 'CO_BATCH_EXEC_RSLT', useFg: '1' }"
|
:sendParam="{ commGrpCd: 'CO_BATCH_EXEC_RSLT', useFg: '1' }"
|
||||||
:addAll="true"
|
:addAll="true"
|
||||||
:iconShow="true"
|
|
||||||
customClass="select-large"
|
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="2.5">
|
<v-col :cols="2">
|
||||||
<component
|
<component
|
||||||
:is="'Datepicker'"
|
:is="'Datepicker'"
|
||||||
:parentPrgmId="myPrgmId"
|
:parentPrgmId="myPrgmId"
|
||||||
:label="'조회기간'"
|
:label="'조회기간'"
|
||||||
:customClass="'input-large'"
|
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="2" class="text-right d-flex align-end justify-end ga-1" style="gap: 4px">
|
<v-spacer></v-spacer>
|
||||||
<BtnSearch size="large" />
|
<v-col :cols="4" class="text-right">
|
||||||
<BtnExcelDownload :parentPrgmId="myPrgmId" :gridName="gridName" size="large" />
|
<BtnSearch />
|
||||||
|
<BtnExcelDownload :parentPrgmId="myPrgmId" :gridName="gridName" />
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-card>
|
</v-card>
|
||||||
@ -63,11 +57,10 @@
|
|||||||
<div ref="gridParent" class="px-5 h100">
|
<div ref="gridParent" class="px-5 h100">
|
||||||
<component
|
<component
|
||||||
:ref="gridName"
|
:ref="gridName"
|
||||||
:is=" 'Grid' "
|
:is="loadGrid ? 'Grid' : null"
|
||||||
:parentPrgmId="myPrgmId"
|
:parentPrgmId="myPrgmId"
|
||||||
:gridName="gridName"
|
:gridName="gridName"
|
||||||
@getRowsData="getRowData"
|
@getRowsData="getRowData"
|
||||||
:dataPath="dataPathMock"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -140,56 +133,10 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
myPrgmId: myPrgmId,
|
myPrgmId: myPrgmId,
|
||||||
loadGrid: true,
|
loadGrid: false,
|
||||||
gridName: 'rowGrid',
|
gridName: 'rowGrid',
|
||||||
// rowGridOrigin: [],
|
// rowGridOrigin: [],
|
||||||
detailList: myDetail,
|
detailList: myDetail,
|
||||||
dataPathMock : {
|
|
||||||
'rowGrid': {
|
|
||||||
column: [
|
|
||||||
{ header: 'No.', name: 'batchLogSeq', align: 'center', width: 100 },
|
|
||||||
{ header: '배치ID', name: 'batchId', align: 'center', width: 100 },
|
|
||||||
{ header: '배치명', name: 'batchNm', align: 'left', width: 150 },
|
|
||||||
{ header: '실행 일자', name: 'execDt', align: 'center', width: 80 },
|
|
||||||
{
|
|
||||||
header: '실행 결과',
|
|
||||||
name: 'execRsltCd',
|
|
||||||
align: 'center',
|
|
||||||
width: 80,
|
|
||||||
// formatter({ value }) {
|
|
||||||
// let retVal = '';
|
|
||||||
// const newValue = _this.pageData.execRsltCdList.filter(
|
|
||||||
// item => item.commCd == value,
|
|
||||||
// );
|
|
||||||
// if (newValue.length > 0) {
|
|
||||||
// retVal = newValue[0].commCdNm;
|
|
||||||
// }
|
|
||||||
// return retVal;
|
|
||||||
// },
|
|
||||||
}, // "1": 프로그램, "2": 팝업
|
|
||||||
{ header: '실행 로그', name: 'execLogCont', minWidth: 150 },
|
|
||||||
{
|
|
||||||
header: '배치 시작 일시',
|
|
||||||
name: 'batchStrtDttm',
|
|
||||||
align: 'center',
|
|
||||||
width: 160,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
header: '배치 종료 일시',
|
|
||||||
name: 'batchEndDttm',
|
|
||||||
align: 'center',
|
|
||||||
width: 160,
|
|
||||||
},
|
|
||||||
{ header: '등록자NO', name: 'regUserNo', width: 120 },
|
|
||||||
{ header: '등록일시', name: 'regDttm', align: 'center', width: 160 },
|
|
||||||
{ header: '수정자NO', name: 'procUserNo', width: 120 },
|
|
||||||
{ header: '수정일시', name: 'procDttm', align: 'center', width: 160 },
|
|
||||||
],
|
|
||||||
data: dataMockExample,
|
|
||||||
defaultRow: dataMockExample,
|
|
||||||
option: {},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -248,14 +195,6 @@ export default {
|
|||||||
init() {
|
init() {
|
||||||
// this.layoutInit();
|
// this.layoutInit();
|
||||||
this.gridInit();
|
this.gridInit();
|
||||||
|
|
||||||
// _this.pageData = {
|
|
||||||
// execRsltCdList: [
|
|
||||||
// { commCd: '1', commCdNm: '성공' },
|
|
||||||
// { commCd: '2', commCdNm: '실패' },
|
|
||||||
// ],
|
|
||||||
// };
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// layoutInit() {
|
// layoutInit() {
|
||||||
// const searchFilterHeight = this.$refs.searchFilter.offsetHeight;
|
// const searchFilterHeight = this.$refs.searchFilter.offsetHeight;
|
||||||
@ -368,13 +307,10 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// async getRowData(data) {
|
async getRowData(data) {
|
||||||
async getRowData() {
|
|
||||||
console.log("something")
|
|
||||||
this.setPageData({
|
this.setPageData({
|
||||||
// rowGridSelectKey: data.rowKey,
|
rowGridSelectKey: data.rowKey,
|
||||||
rowGridSelectKey: 1,
|
rowGridSelectData: data,
|
||||||
rowGridSelectData: fakeRowData,
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
compareData(type, newDt) {
|
compareData(type, newDt) {
|
||||||
@ -481,86 +417,16 @@ const defaultData = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const dataMockExample = [
|
|
||||||
{
|
|
||||||
batchLogSeq: 1,
|
|
||||||
batchId: 'BATCH001',
|
|
||||||
batchNm: '일일 데이터 백업',
|
|
||||||
execDt: '2025-07-15',
|
|
||||||
execRsltCd: '1', // sẽ được formatter thành "성공" hoặc tương tự
|
|
||||||
execLogCont: '백업 완료. 오류 없음.',
|
|
||||||
batchStrtDttm: '2025-07-15 01:00:00',
|
|
||||||
batchEndDttm: '2025-07-15 01:30:00',
|
|
||||||
regUserNo: 'admin01',
|
|
||||||
regDttm: '2025-07-15 01:00:00',
|
|
||||||
procUserNo: 'admin02',
|
|
||||||
procDttm: '2025-07-15 01:35:00',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
batchLogSeq: 2,
|
|
||||||
batchId: 'BATCH002',
|
|
||||||
batchNm: '월간 리포트 생성',
|
|
||||||
execDt: '2025-07-01',
|
|
||||||
execRsltCd: '2',
|
|
||||||
execLogCont: '리포트 생성 중 오류 발생: 파일 접근 실패.',
|
|
||||||
batchStrtDttm: '2025-07-01 03:00:00',
|
|
||||||
batchEndDttm: '2025-07-01 03:10:00',
|
|
||||||
regUserNo: 'reportUser',
|
|
||||||
regDttm: '2025-07-01 03:00:00',
|
|
||||||
procUserNo: 'admin03',
|
|
||||||
procDttm: '2025-07-01 03:15:00',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
batchLogSeq: 3,
|
|
||||||
batchId: 'BATCH003',
|
|
||||||
batchNm: '사용자 통계 갱신',
|
|
||||||
execDt: '2025-07-14',
|
|
||||||
execRsltCd: '1',
|
|
||||||
execLogCont: '통계 갱신 완료.',
|
|
||||||
batchStrtDttm: '2025-07-14 23:00:00',
|
|
||||||
batchEndDttm: '2025-07-14 23:20:00',
|
|
||||||
regUserNo: 'statUser',
|
|
||||||
regDttm: '2025-07-14 23:00:00',
|
|
||||||
procUserNo: 'admin01',
|
|
||||||
procDttm: '2025-07-14 23:25:00',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
const fakeRowData = {
|
|
||||||
rowKey: 1,
|
|
||||||
batchLogSeq: 1,
|
|
||||||
batchId: 'BATCH001',
|
|
||||||
batchNm: '일일 데이터 백업',
|
|
||||||
execDt: '2025-07-15',
|
|
||||||
execRsltCd: '1',
|
|
||||||
execLogCont: JSON.stringify({
|
|
||||||
session: {
|
|
||||||
userNo: 'admin01',
|
|
||||||
userNm: '관리자',
|
|
||||||
comId: 'SKCC',
|
|
||||||
locale: 'ko_KR',
|
|
||||||
},
|
|
||||||
batch: {
|
|
||||||
comId: 'SKCC',
|
|
||||||
totStdDt: '20230110',
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
batchStrtDttm: '2025-07-15 01:00:00',
|
|
||||||
batchEndDttm: '2025-07-15 01:30:00',
|
|
||||||
regUserNo: 'admin01',
|
|
||||||
regDttm: '2025-07-15 01:00:00',
|
|
||||||
procUserNo: 'admin02',
|
|
||||||
procDttm: '2025-07-15 01:35:00',
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
const myDetail = [
|
const myDetail = [
|
||||||
{
|
{
|
||||||
type: 'TextArea',
|
type: 'TextArea',
|
||||||
valueNm: 'execLogCont',
|
valueNm: 'execLogCont',
|
||||||
readonly: true,
|
readonly: true,
|
||||||
cols: 12,
|
cols: 12,
|
||||||
class: 'py-2 transparent',
|
class: 'py-2',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
@import '@/assets/scss/common.scss';
|
||||||
|
</style>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-layout">
|
<div class="l-layout">
|
||||||
<common-page-title />
|
<CommonPageTitle />
|
||||||
<!-- 리스트 페이지 시작 -->
|
<!-- 리스트 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'list'" class="h1001">
|
<div v-if="pageActionFlag == 'list'" class="h1001">
|
||||||
<v-card class="" >
|
<v-card class="" >
|
||||||
@ -16,11 +16,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" ref="contents" class="mt-5" style="min-height: calc(100% - 76px);">
|
<v-col :cols="12" ref="contents" class="mt-5" style="min-height: calc(100% - 76px);">
|
||||||
<div ref="gridParent" class="h100 px-50">
|
<div ref="gridParent" class="px-50" style="min-height: 70vh;">
|
||||||
<!-- <component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
|
||||||
@getRowsData="getRowData" /> -->
|
|
||||||
<component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
<component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
||||||
@getRowsData="getRowData" :selectedRowDataWatchFlag="true" />
|
@getRowsData="getRowData" />
|
||||||
</div>
|
</div>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@ -29,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 리스트 페이지 끝 -->
|
<!-- 리스트 페이지 끝 -->
|
||||||
<!-- 상세보기 페이지 시작 -->
|
<!-- 상세보기 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'view'" class="h1001">
|
<div v-if="pageActionFlag == 'view'" >
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-row class="pa-5">
|
<v-row class="pa-5">
|
||||||
<v-col :cols="12" class="d-flex align-center justify-space-between ">
|
<v-col :cols="12" class="d-flex align-center justify-space-between ">
|
||||||
@ -47,25 +45,25 @@
|
|||||||
<a-button @click="viewPageButtonGroupClickEvent('delete')" type="danger" ghost icon="delete">삭제</a-button>
|
<a-button @click="viewPageButtonGroupClickEvent('delete')" type="danger" ghost icon="delete">삭제</a-button>
|
||||||
</div>
|
</div>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12">
|
<v-col :cols="12" class="mt-5">
|
||||||
<p class="custom-title-3 mb-2"> 제목 </p>
|
<v-card-title class="custom-title-6 pa-0">{{ viewActionData.title }}</v-card-title>
|
||||||
<v-text-field v-model="viewActionData.title" class="v-input__custom" hide-details :readonly="true">
|
|
||||||
</v-text-field>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" style="min-height:calc(90vh - 218px);" class="pa-5">
|
<v-col :cols="12" style="min-height: 30vh;" class="pa-0">
|
||||||
<viewer v-if="viewActionData.viewerFlag" ref="tuiViewer" height="inherit"
|
<viewer v-if="viewActionData.viewerFlag" ref="tuiViewer" height="inherit"
|
||||||
:initialValue="viewActionData.content" theme="white"
|
:initialValue="viewActionData.content" theme="white"
|
||||||
:class="isDarkMode ? 'theme--white' : 'theme--black'" />
|
:class="[isDarkMode ? 'theme--white' : 'theme--black', 'custom-view pa-3']" />
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="6">
|
<v-col :cols="6" class="mt-5">
|
||||||
<p class="custom-title-3 mb-2">파일목록</p>
|
<v-card-title class="custom-title-7 pa-0">
|
||||||
|
파일목록
|
||||||
|
</v-card-title>
|
||||||
<div v-for="fileData in viewActionData.fileData"
|
<div v-for="fileData in viewActionData.fileData"
|
||||||
:key="fileData.apndFileId"
|
:key="fileData.apndFileId"
|
||||||
class="file-item">
|
class="file-item">
|
||||||
<a @click.prevent="downloadFile(fileData)">
|
<a @click.prevent="downloadFile(fileData)">
|
||||||
<div class="d-flex justify-space-between search-box-label">
|
<div class="d-flex justify-start search-box-label">
|
||||||
<v-icon>mdi-paperclip</v-icon>
|
<v-icon>mdi-paperclip</v-icon>
|
||||||
<span class="file-item-name">{{ fileData.apndFileNm + '.' + fileData.apndFileExt }}</span>
|
<span class="file-item-name ml-2">{{ fileData.apndFileNm + '.' + fileData.apndFileExt }}</span>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@ -75,28 +73,24 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 상세보기 페이지 끝 -->
|
<!-- 상세보기 페이지 끝 -->
|
||||||
<!-- 작성 페이지 시작 -->
|
<!-- 작성 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'write'" class="h1001">
|
<div v-if="pageActionFlag == 'write'" >
|
||||||
<v-card>
|
<v-card>
|
||||||
<div class="pa-5">
|
<div class="pa-5">
|
||||||
<v-row class="pa-50">
|
<v-row class="pa-50">
|
||||||
<v-col :cols="12" class="">
|
<v-col :cols="12" class="">
|
||||||
<v-card-title class="custom-title-4 pa-0">공지사항</v-card-title>
|
<v-card-title class="custom-title-4 pa-0">공지사항</v-card-title>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" class="custom-title-4-new mt-4">
|
<v-col :cols="12" class="mt-4">
|
||||||
<p class="custom-title-3 mb-2">제목</p>
|
<v-card-title class="custom-title-7 pa-0">제목</v-card-title>
|
||||||
<v-text-field v-model="writeActionData.title" class="v-input__custom" hide-details outlined>
|
<v-text-field v-model="writeActionData.title" class="v-input__custom" hide-details outlined>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" style="min-height: calc(90vh - 270px);">
|
<v-col :cols="12" style="min-height: calc(100vh - 450px);">
|
||||||
<editor ref="tuiEditor" height="100%" initialEditType="wysiwyg" />
|
<editor ref="tuiEditor" height="100%" initialEditType="wysiwyg" />
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col :cols="12" class="mt-2">
|
<v-col :cols="6" class="mt-5">
|
||||||
<p class="custom-title-3 mb-2">
|
<v-card-title class="custom-title-7 pa-0">파일첨부</v-card-title>
|
||||||
파일첨부
|
|
||||||
</p>
|
|
||||||
</v-col>
|
|
||||||
<v-col :cols="6">
|
|
||||||
<div class="" v-if="writeActionData.fileData">
|
<div class="" v-if="writeActionData.fileData">
|
||||||
<div
|
<div
|
||||||
v-for="(fileData, index) in writeActionData.fileData"
|
v-for="(fileData, index) in writeActionData.fileData"
|
||||||
@ -132,25 +126,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 작성 페이지 끝 -->
|
<!-- 작성 페이지 끝 -->
|
||||||
<!-- 답글 작성 페이지 시작 -->
|
<!-- 답글 작성 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'reply'" class="h1001">
|
<div v-if="pageActionFlag == 'reply'" >
|
||||||
<v-card class="pa-5">
|
<v-card class="pa-5">
|
||||||
<v-row align="center" class="mt-0">
|
<v-row align="center" class="mt-0">
|
||||||
<v-col :cols="12" class="">
|
<v-col :cols="12" class="">
|
||||||
<v-card-title class="custom-title-4 pa-0">공지사항</v-card-title>
|
<v-card-title class="custom-title-4 pa-0">공지사항</v-card-title>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12">
|
<v-col :cols="12" class="mt-4">
|
||||||
<p class="custom-title-3 mb-2">제목</p>
|
<v-card-title class="custom-title-7 pa-0">제목</v-card-title>
|
||||||
<v-text-field v-model="replyActionData.title" class="v-input__custom" placeholder="제목" outlined
|
<v-text-field v-model="replyActionData.title" class="v-input__custom" outlined
|
||||||
hide-details>
|
hide-details>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" style="height: calc(100vh - 270px);" class="mt-2">
|
<v-col :cols="12" style="height: calc(100vh - 270px);" class="mt-2">
|
||||||
<editor ref="tuiReplyEditor" height="100%" initialEditType="wysiwyg" />
|
<editor ref="tuiReplyEditor" height="100%" initialEditType="wysiwyg" />
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="6" class="mt-4">
|
<v-col :cols="6" class="mt-5">
|
||||||
<p class="custom-title-3 mb-2">
|
<v-card-title class="custom-title-7 pa-0">파일첨부</v-card-title>
|
||||||
파일첨부
|
|
||||||
</p>
|
|
||||||
<div class="" v-if="replyActionData.fileData">
|
<div class="" v-if="replyActionData.fileData">
|
||||||
<div
|
<div
|
||||||
v-for="(fileData, index) in replyActionData.fileData"
|
v-for="(fileData, index) in replyActionData.fileData"
|
||||||
@ -178,7 +170,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 답글 작성 페이지 끝 -->
|
<!-- 답글 작성 페이지 끝 -->
|
||||||
<!-- 수정 페이지 시작 -->
|
<!-- 수정 페이지 시작 -->
|
||||||
<div v-if="pageActionFlag == 'update'" class="h1001">
|
<div v-if="pageActionFlag == 'update'" >
|
||||||
<v-card>
|
<v-card>
|
||||||
<div class="pa-5">
|
<div class="pa-5">
|
||||||
<v-row align="center" no-gutters>
|
<v-row align="center" no-gutters>
|
||||||
@ -186,16 +178,16 @@
|
|||||||
<v-card-title class="custom-title-4 pa-0">공지사항</v-card-title>
|
<v-card-title class="custom-title-4 pa-0">공지사항</v-card-title>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" class="mt-4">
|
<v-col :cols="12" class="mt-4">
|
||||||
<p class="custom-title-3 mb-2">제목</p>
|
<v-card-title class="custom-title-7 pa-0">제목</v-card-title>
|
||||||
<v-text-field v-model="updateActionData.title" class="v-input__custom" placeholder="" hide-details outlined>
|
<v-text-field v-model="updateActionData.title" class="v-input__custom" hide-details outlined>
|
||||||
</v-text-field>
|
</v-text-field>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="12" style="height: calc(90vh - 270px);" class="mt-4" >
|
<v-col :cols="12" style="height: calc(90vh - 270px);" class="mt-4" >
|
||||||
<editor ref="tuiUpdateEditor" height="100%" initialEditType="wysiwyg"
|
<editor ref="tuiUpdateEditor" height="100%" initialEditType="wysiwyg"
|
||||||
:initialValue="updateActionData.content" />
|
:initialValue="updateActionData.content" />
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="6">
|
<v-col :cols="6" class="mt-5">
|
||||||
<p class="pa-0 mb-2 custom-title-4-new-1">파일첨부</p>
|
<v-card-title class="custom-title-7 pa-0">파일첨부</v-card-title>
|
||||||
<div class="" v-if="updateActionData.fileData">
|
<div class="" v-if="updateActionData.fileData">
|
||||||
<div
|
<div
|
||||||
v-for="(fileData, index) in updateActionData.fileData"
|
v-for="(fileData, index) in updateActionData.fileData"
|
||||||
@ -406,7 +398,6 @@ export default {
|
|||||||
this.getGridData();
|
this.getGridData();
|
||||||
},
|
},
|
||||||
gridInit() {
|
gridInit() {
|
||||||
this.loadGrid = false;
|
|
||||||
const gridHeight = this.$refs.contents.offsetHeight - 76;
|
const gridHeight = this.$refs.contents.offsetHeight - 76;
|
||||||
|
|
||||||
const myOptions = {};
|
const myOptions = {};
|
||||||
@ -470,13 +461,6 @@ export default {
|
|||||||
gridKey: this.gridName,
|
gridKey: this.gridName,
|
||||||
value: columnList,
|
value: columnList,
|
||||||
});
|
});
|
||||||
|
|
||||||
// // -----------------------TEST------------------
|
|
||||||
// this.dataPathMock[this.gridName] = {
|
|
||||||
// column: columnList,
|
|
||||||
// data: dataPathDataExample,
|
|
||||||
// }
|
|
||||||
// // -----------------------END TEST--------------
|
|
||||||
this.getGridData();
|
this.getGridData();
|
||||||
},
|
},
|
||||||
async getGridData() {
|
async getGridData() {
|
||||||
@ -492,25 +476,14 @@ export default {
|
|||||||
sendParam: params,
|
sendParam: params,
|
||||||
});
|
});
|
||||||
|
|
||||||
// console.log('----------DEBUG--------res: ', res);
|
|
||||||
const newRes = res.map(item => {
|
|
||||||
const newObj = {
|
|
||||||
...item,
|
|
||||||
rowStat: null,
|
|
||||||
dataSetId: item.dataSetId,
|
|
||||||
dataSetNm: item.dataSetNm,
|
|
||||||
useFg: item.useFg === '1' ? true : false, // 화면 개발 편의를 위해 boolean 타입으로 교체, 저장시 "1", "0" 으로 바꿔 보내야 함
|
|
||||||
};
|
|
||||||
return newObj;
|
|
||||||
});
|
|
||||||
|
|
||||||
this.setGridData({
|
this.setGridData({
|
||||||
gridKey: this.gridName,
|
gridKey: this.gridName,
|
||||||
value: newRes,
|
value: res,
|
||||||
|
});
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.loadGrid = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.setPageData({ isFind: false });
|
this.setPageData({ isFind: false });
|
||||||
this.loadGrid = true;
|
|
||||||
},
|
},
|
||||||
getRowData(data) {
|
getRowData(data) {
|
||||||
this.selectedRowKey = data.rowKey;
|
this.selectedRowKey = data.rowKey;
|
||||||
@ -1073,4 +1046,19 @@ const dataPathDataExample = getPathDataExample({
|
|||||||
color: #1677FF;
|
color: #1677FF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
::v-deep {
|
||||||
|
.v-input__slot {
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
}
|
||||||
|
.custom-view {
|
||||||
|
border: 1px solid;
|
||||||
|
border-radius: 6px;
|
||||||
|
height: 100%;
|
||||||
|
@each $theme in dark, light {
|
||||||
|
@include theme($theme);
|
||||||
|
border-color: map-deep-get($config, #{$theme}, "v-input-textarea-border");;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
customClass="select-large"
|
customClass="select-large"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="4">
|
<v-col :cols="3">
|
||||||
<InputText
|
<InputText
|
||||||
:parentPrgmId="myPrgmId"
|
:parentPrgmId="myPrgmId"
|
||||||
label="프로그램명"
|
label="프로그램명"
|
||||||
@ -50,17 +50,16 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="min-height: 60vh">
|
<div ref="gridParent" style="height: 100vh">
|
||||||
<div ref="gridParent" class="px-5 h100">
|
<!-- <div ref="gridParent" class="px-5 h100">
|
||||||
<component
|
</div> -->
|
||||||
:ref="gridName"
|
<component
|
||||||
:is="loadGrid ? 'Grid' : null"
|
:ref="gridName"
|
||||||
:parentPrgmId="myPrgmId"
|
:is="loadGrid ? 'Grid' : null"
|
||||||
:gridName="gridName"
|
:parentPrgmId="myPrgmId"
|
||||||
@getRowsData="getRowData"
|
:gridName="gridName"
|
||||||
:dataPath="dataPathMock"
|
@getRowsData="getRowData"
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
@ -262,8 +261,6 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// this.getRowGridData();
|
// this.getRowGridData();
|
||||||
|
|
||||||
this.loadGrid = true;
|
|
||||||
},
|
},
|
||||||
async search() {
|
async search() {
|
||||||
await this.getRowGridData();
|
await this.getRowGridData();
|
||||||
@ -296,6 +293,7 @@ export default {
|
|||||||
gridKey: this.gridName,
|
gridKey: this.gridName,
|
||||||
value: newRes,
|
value: newRes,
|
||||||
});
|
});
|
||||||
|
this.loadGrid = true;
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (newRes.length > 0) {
|
if (newRes.length > 0) {
|
||||||
@ -316,6 +314,12 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
async getRowData(data, gridName) {
|
async getRowData(data, gridName) {
|
||||||
|
// console.log("-----------------------DEBUG--getRowData--------------", {
|
||||||
|
// gridKey: gridName,
|
||||||
|
// gridSelect: true,
|
||||||
|
// rowGridSelectKey: data.rowKey,
|
||||||
|
// rowGridSelectData: data,
|
||||||
|
// });
|
||||||
this.setGridSelectData({
|
this.setGridSelectData({
|
||||||
gridKey: gridName,
|
gridKey: gridName,
|
||||||
gridSelect: true,
|
gridSelect: true,
|
||||||
@ -327,6 +331,7 @@ export default {
|
|||||||
rowGridSelectKey: data.rowKey,
|
rowGridSelectKey: data.rowKey,
|
||||||
rowGridSelectData: data,
|
rowGridSelectData: data,
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
compareData(type, newDt) {
|
compareData(type, newDt) {
|
||||||
if (this.selectedCommCdData[type] == newDt) {
|
if (this.selectedCommCdData[type] == newDt) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-layout">
|
<div class="l-layout">
|
||||||
<common-page-title />
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter" class="mt-2">
|
<v-row ref="searchFilter" class="mt-2">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-layout">
|
<div class="l-layout">
|
||||||
<common-page-title />
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter" class="mt-2">
|
<v-row ref="searchFilter" class="mt-2">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div ref="mainDiv" class="l-layout">
|
<div ref="mainDiv" class="l-layout">
|
||||||
<common-page-title />
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter" class="mt-2">
|
<v-row ref="searchFilter" class="mt-2">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div ref="mainDiv" class="l-layout">
|
<div ref="mainDiv" class="l-layout">
|
||||||
<PageTitle/>
|
<CommonPageTitle/>
|
||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div ref="mainDiv" class="l-layout">
|
<div ref="mainDiv" class="l-layout">
|
||||||
<PageTitle />
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
@ -480,18 +480,17 @@ const myDetail = [
|
|||||||
labelCols: 12,
|
labelCols: 12,
|
||||||
textCols: 12,
|
textCols: 12,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
type: 'CheckBox',
|
type: 'CheckBox',
|
||||||
label: '사용 여부',
|
label: '사용 여부',
|
||||||
valueNm: 'useFg',
|
valueNm: 'useFg',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
cols: 6,
|
cols: 6,
|
||||||
class: 'py-2 pr-4 pt-5',
|
class: 'py-2 pr-4 pt-4',
|
||||||
value: { '1': true, '0': false },
|
value: { '1': true, '0': false },
|
||||||
required: true,
|
required: true,
|
||||||
iconShow: true,
|
iconShow: true,
|
||||||
labelCols: 12,
|
|
||||||
textCols: 12,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'SelectBox',
|
type: 'SelectBox',
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-layout">
|
<div class="l-layout">
|
||||||
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
@ -34,23 +35,23 @@
|
|||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
<v-row ref="contents">
|
<v-row ref="contents">
|
||||||
<v-col :cols="5" class="h100">
|
<v-col :cols="5" >
|
||||||
<v-card class="pb-5">
|
<v-card class="pb-5">
|
||||||
<div class="d-flex align-center justify-space-between pa-5">
|
<div class="d-flex align-center justify-space-between pa-5">
|
||||||
<v-card-title class="pa-0 custom-title-4">설비 정보</v-card-title>
|
<v-card-title class="pa-0 custom-title-4">설비 정보</v-card-title>
|
||||||
<Buttons :parentPrgmId="myPrgmId" :bindingData="gridName" :detailList="detailList"
|
<Buttons :parentPrgmId="myPrgmId" :bindingData="gridName" :detailList="detailList"
|
||||||
:btnActionsFnc="btnActions" />
|
:btnActionsFnc="btnActions" />
|
||||||
</div>
|
</div>
|
||||||
<div class="px-5" style="min-height:calc(100% - 76px)">
|
<div ref="gridParent" class="px-5" style="min-height:60vh;">
|
||||||
<div ref="gridParent" class="w100 h100">
|
<component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
||||||
<component :ref="gridName" :is="loadGrid ? 'Grid' : null" :gridName="gridName" :parentPrgmId="myPrgmId"
|
@getRowsData="getRowData" @sendSelectedRowStatInfo="getSelectedRowStatInfo"
|
||||||
@getRowsData="getRowData" @sendSelectedRowStatInfo="getSelectedRowStatInfo"
|
:selectedRowDataWatchFlag="true" :preventFocusChangeEventFlag="false" />
|
||||||
:selectedRowDataWatchFlag="true" :preventFocusChangeEventFlag="false" :dataPath="dataPathMock" />
|
<!-- <div ref="gridParent" class="w100 h100">
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="7" class="h100">
|
<v-col :cols="7" >
|
||||||
<v-card class="pb-5">
|
<v-card class="pb-5">
|
||||||
<v-card-title class="custom-title-4" style="min-height:76px;">설비 상세</v-card-title>
|
<v-card-title class="custom-title-4" style="min-height:76px;">설비 상세</v-card-title>
|
||||||
<div class="px-5" style="min-height:calc(100% - 76px)">
|
<div class="px-5" style="min-height:calc(100% - 76px)">
|
||||||
@ -287,7 +288,7 @@ export default {
|
|||||||
blocId: this.userInfo.blocId,
|
blocId: this.userInfo.blocId,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
console.log('res : ', res);
|
// console.log('res : ', res);
|
||||||
res.map(item => {
|
res.map(item => {
|
||||||
const it = { text: item.ercNm, value: item.ercId };
|
const it = { text: item.ercNm, value: item.ercId };
|
||||||
ercList.push(it);
|
ercList.push(it);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div ref="mainDiv" class="l-layout">
|
<div ref="mainDiv" class="l-layout">
|
||||||
<common-page-title />
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter" class="mt-2">
|
<v-row ref="searchFilter" class="mt-2">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div ref="mainDiv" class="l-layout">
|
<div ref="mainDiv" class="l-layout">
|
||||||
<common-page-title />
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter" class="mt-2">
|
<v-row ref="searchFilter" class="mt-2">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
|
@ -1,63 +1,26 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-layout">
|
<div class="l-layout">
|
||||||
<PageTitle text="측정 위치 데이터 조회" />
|
<CommonPageTitle />
|
||||||
|
|
||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
<v-row align="end" no-gutters>
|
<v-row align="end" no-gutters>
|
||||||
<v-col :cols="2">
|
|
||||||
<component
|
|
||||||
:is="'SelectBlocMstr'"
|
|
||||||
ref="SelectBlocMstr"
|
|
||||||
:parentPrgmId="myPrgmId"
|
|
||||||
:textCols="12"
|
|
||||||
customClass="select-large"
|
|
||||||
/>
|
|
||||||
</v-col>
|
|
||||||
<!-- <v-col :cols="2">
|
|
||||||
<component
|
|
||||||
label="검침개소"
|
|
||||||
:is="'PastRsltDataReadPop'"
|
|
||||||
:parentPrgmId="myPrgmId"
|
|
||||||
/>
|
|
||||||
</v-col> -->
|
|
||||||
<!-- <v-col :cols="2">
|
|
||||||
<component
|
|
||||||
:is="'SelectTagNmList'"
|
|
||||||
ref="SelectTagNmList"
|
|
||||||
:parentPrgmId="myPrgmId"
|
|
||||||
/>
|
|
||||||
</v-col> -->
|
|
||||||
<v-col :cols="3">
|
<v-col :cols="3">
|
||||||
<!-- <component
|
<component :is="'SelectBlocMstr'" ref="SelectBlocMstr" :parentPrgmId="myPrgmId"
|
||||||
:is="'PastRsltDataReadTagPop'"
|
:textCols="12" customClass="select-large" />
|
||||||
:parentPrgmId="myPrgmId"
|
|
||||||
:label="'TAG'"
|
|
||||||
/> -->
|
|
||||||
<component
|
|
||||||
:is="'EvtObjPop'"
|
|
||||||
:parentPrgmId="myPrgmId"
|
|
||||||
:item="evtObjPopItem"
|
|
||||||
customClass="select-large"
|
|
||||||
/>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="4">
|
<v-col :cols="3">
|
||||||
<component
|
<component :is="'EvtObjPop'" :parentPrgmId="myPrgmId" :item="evtObjPopItem"
|
||||||
:is="'Datepicker'"
|
customClass="select-large" />
|
||||||
:parentPrgmId="myPrgmId"
|
|
||||||
:label="'조회기간'"
|
|
||||||
:textCols="12"
|
|
||||||
/>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="3" class="d-flex align-end justify-end text-right">
|
<v-col :cols="3">
|
||||||
<BtnExcelDownload
|
<!-- 대상일 -->
|
||||||
class="mr-1"
|
<component :is="'Datepicker'" :parentPrgmId="myPrgmId" :label="'조회기간'" :textCols="12" />
|
||||||
:parentPrgmId="myPrgmId"
|
</v-col>
|
||||||
:gridName="gridName"
|
<v-col :cols="3" class="d-flex align-end justify-end text-right">
|
||||||
type="primary"
|
<BtnExcelDownload class="mr-1" :parentPrgmId="myPrgmId" :gridName="gridName" type="primary"
|
||||||
size="large"
|
size="large" />
|
||||||
/>
|
|
||||||
<BtnSearch @click="search" size="large" />
|
<BtnSearch @click="search" size="large" />
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@ -68,12 +31,12 @@
|
|||||||
<v-col :cols="12" style="height: 100%" class="h100">
|
<v-col :cols="12" style="height: 100%" class="h100">
|
||||||
<v-card class="px-5 py-5 h100">
|
<v-card class="px-5 py-5 h100">
|
||||||
<div ref="gridParent" class="h100 px-5" style="height: 100%">
|
<div ref="gridParent" class="h100 px-5" style="height: 100%">
|
||||||
<component
|
<component ref="myGrid" :is="loadGrid ? 'Grid' : null" :gridName="gridName"
|
||||||
ref="myGrid"
|
:parentPrgmId="myPrgmId" />
|
||||||
:is="loadGrid ? 'Grid' : null"
|
</div>
|
||||||
:gridName="gridName"
|
<div class="d-flex align-center justify-space-between">
|
||||||
:parentPrgmId="myPrgmId"
|
<pagination id="pagination" :total-count="totalCount" :page-num="page" :limit="limit"
|
||||||
/>
|
@loadData="changeGrid" />
|
||||||
</div>
|
</div>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
@ -97,7 +60,7 @@ import BtnExcelDownload from '~/components/common/button/BtnExcelDownload';
|
|||||||
import DateUtility from '~/plugins/dateUtility';
|
import DateUtility from '~/plugins/dateUtility';
|
||||||
// import Search from "~/components/common/search";
|
// import Search from "~/components/common/search";
|
||||||
import EvtObjPop from '~/components/common/modal/EvtObjPop';
|
import EvtObjPop from '~/components/common/modal/EvtObjPop';
|
||||||
import PageTitle from "~/components/common/PageTitle";
|
import pagination from '~/components/Pagination';
|
||||||
|
|
||||||
let myTitle;
|
let myTitle;
|
||||||
// const myPrgmId = "PRG0052";
|
// const myPrgmId = "PRG0052";
|
||||||
@ -130,7 +93,7 @@ export default {
|
|||||||
PastRsltDataReadPop,
|
PastRsltDataReadPop,
|
||||||
PastRsltDataReadTagPop,
|
PastRsltDataReadTagPop,
|
||||||
EvtObjPop,
|
EvtObjPop,
|
||||||
PageTitle,
|
pagination,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -146,12 +109,16 @@ export default {
|
|||||||
valueNm2: 'tagNm',
|
valueNm2: 'tagNm',
|
||||||
iconShow: true,
|
iconShow: true,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
labelCols: 12,
|
|
||||||
textCols: 12,
|
textCols: 12,
|
||||||
class: 'py-2',
|
class: 'py-2',
|
||||||
required: false,
|
required: false,
|
||||||
formFg: false,
|
formFg: false,
|
||||||
},
|
},
|
||||||
|
itemsPerPage: 10,
|
||||||
|
itemsPerPageArray: [10, 20, 30],
|
||||||
|
limit: 20,
|
||||||
|
page: 1,
|
||||||
|
totalCount: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -164,9 +131,6 @@ export default {
|
|||||||
chkTagId() {
|
chkTagId() {
|
||||||
return this.pageData.tagList === undefined ? null : this.pageData.tagId;
|
return this.pageData.tagList === undefined ? null : this.pageData.tagId;
|
||||||
},
|
},
|
||||||
// chkTagList() {
|
|
||||||
// return this.pageData.tagList;
|
|
||||||
// },
|
|
||||||
chkTagNm() {
|
chkTagNm() {
|
||||||
return this.pageData.tagData.tagNm;
|
return this.pageData.tagData.tagNm;
|
||||||
},
|
},
|
||||||
@ -176,18 +140,16 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
chkIsFind(val) {
|
chkIsFind(val) {
|
||||||
if (val) this.search();
|
if (val) {
|
||||||
|
this.page = 1;
|
||||||
|
this.search();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
chkTagId(val) {
|
chkTagId(val) {
|
||||||
if (this.initFlag && val != null) {
|
if (this.initFlag && val != null) {
|
||||||
this.search();
|
this.search();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// chkTagList() {
|
|
||||||
// if(this.initFlag){
|
|
||||||
// this.search();
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
chkTagNm() {
|
chkTagNm() {
|
||||||
if (this.initFlag) {
|
if (this.initFlag) {
|
||||||
this.search();
|
this.search();
|
||||||
@ -207,7 +169,7 @@ export default {
|
|||||||
defaultData: defaultData,
|
defaultData: defaultData,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
created() {},
|
created() { },
|
||||||
async mounted() {
|
async mounted() {
|
||||||
await this.setFromDt();
|
await this.setFromDt();
|
||||||
await this.init();
|
await this.init();
|
||||||
@ -330,6 +292,7 @@ export default {
|
|||||||
this.loadGrid = false;
|
this.loadGrid = false;
|
||||||
|
|
||||||
let res = [];
|
let res = [];
|
||||||
|
let res2 = [];
|
||||||
let yearQuarterData = [];
|
let yearQuarterData = [];
|
||||||
yearQuarterData = this.yearQuarterMaker([
|
yearQuarterData = this.yearQuarterMaker([
|
||||||
this.pageData.fromDt,
|
this.pageData.fromDt,
|
||||||
@ -381,8 +344,18 @@ export default {
|
|||||||
apiKey: 'selectTagRawDataByQuarter',
|
apiKey: 'selectTagRawDataByQuarter',
|
||||||
resKey: 'pastRsltReadData',
|
resKey: 'pastRsltReadData',
|
||||||
sendParam: sendParams,
|
sendParam: sendParams,
|
||||||
|
limit: this.limit,
|
||||||
|
page: this.page,
|
||||||
|
offset: (this.page - 1) * this.limit, // MariaDB Query에서 직접 계산이 안됨
|
||||||
});
|
});
|
||||||
|
|
||||||
|
res2 = await this.postApiReturn({
|
||||||
|
apiKey: 'selectTagRawDataByQuarterPageTotal',
|
||||||
|
resKey: 'pastRslPageTotal',
|
||||||
|
sendParam: sendParams
|
||||||
|
});
|
||||||
|
this.totalCount = res2[0].totalcount;
|
||||||
|
|
||||||
this.setGridData({
|
this.setGridData({
|
||||||
gridKey: this.gridName,
|
gridKey: this.gridName,
|
||||||
value: res,
|
value: res,
|
||||||
@ -393,6 +366,9 @@ export default {
|
|||||||
fromDt: this.pageData.fromDt,
|
fromDt: this.pageData.fromDt,
|
||||||
toDt: this.pageData.toDt,
|
toDt: this.pageData.toDt,
|
||||||
yearQuarterList: yearQuarterData['yearQuarterList'],
|
yearQuarterList: yearQuarterData['yearQuarterList'],
|
||||||
|
limit: this.limit,
|
||||||
|
page: this.page,
|
||||||
|
offset: (this.page - 1) * this.limit, // MariaDB Query에서 직접 계산이 안됨
|
||||||
};
|
};
|
||||||
sendParams['tagId'] = this.pageData.tagId;
|
sendParams['tagId'] = this.pageData.tagId;
|
||||||
//
|
//
|
||||||
@ -410,6 +386,13 @@ export default {
|
|||||||
sendParam: sendParams,
|
sendParam: sendParams,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
res2 = await this.postApiReturn({
|
||||||
|
apiKey: 'selectTagRawDataByQuarterPageTotal',
|
||||||
|
resKey: 'pastRslPageTotal',
|
||||||
|
sendParam: sendParams
|
||||||
|
});
|
||||||
|
this.totalCount = res2[0].totalcount;
|
||||||
|
|
||||||
this.setGridData({
|
this.setGridData({
|
||||||
gridKey: this.gridName,
|
gridKey: this.gridName,
|
||||||
value: res,
|
value: res,
|
||||||
@ -487,6 +470,12 @@ export default {
|
|||||||
finalResult['yearQuarterList'] = result;
|
finalResult['yearQuarterList'] = result;
|
||||||
return finalResult;
|
return finalResult;
|
||||||
},
|
},
|
||||||
|
changeGrid: async function (pageNum, limit) {
|
||||||
|
this.page = pageNum;
|
||||||
|
this.limit = limit;
|
||||||
|
|
||||||
|
this.search();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
customClass="select-large"
|
customClass="select-large"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="3">
|
<v-col :cols="3">
|
||||||
<InputText
|
<InputText
|
||||||
:parentPrgmId="myPrgmId"
|
:parentPrgmId="myPrgmId"
|
||||||
label="검침대상명"
|
label="검침대상명"
|
||||||
@ -59,19 +59,16 @@
|
|||||||
:btnActionsFnc="btnActions"
|
:btnActionsFnc="btnActions"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="h100 px-5" style="height:calc(100% - 70px)">
|
<div ref="gridParent" class="h100 px-5" style="height:calc(100% - 70px)">
|
||||||
<div ref="gridParent" class="w100 h100">
|
<component
|
||||||
<component
|
:ref="gridName"
|
||||||
:ref="gridName"
|
:is="loadGrid ? 'Grid' : null"
|
||||||
:is="loadGrid ? 'Grid' : null"
|
:gridName="gridName"
|
||||||
:gridName="gridName"
|
:parentPrgmId="myPrgmId"
|
||||||
:parentPrgmId="myPrgmId"
|
@getRowsData="getRowData"
|
||||||
@getRowsData="getRowData"
|
@sendSelectedRowStatInfo="getSelectedRowStatInfo"
|
||||||
@sendSelectedRowStatInfo="getSelectedRowStatInfo"
|
:selectedRowDataWatchFlag="true"
|
||||||
:selectedRowDataWatchFlag="true"
|
/>
|
||||||
:dataPath="dataPathMock"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
@ -81,7 +78,7 @@
|
|||||||
>검침대상 상세
|
>검침대상 상세
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<div class="px-5" style="height:calc(100% - 76px)">
|
<div class="px-5" style="height:calc(100% - 76px)">
|
||||||
<v-tabs v-model="tab" >
|
<v-tabs v-model="tab">
|
||||||
<v-tab
|
<v-tab
|
||||||
v-for="item in items"
|
v-for="item in items"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@ -188,26 +185,8 @@ export default {
|
|||||||
return {
|
return {
|
||||||
myPrgmId: myPrgmId,
|
myPrgmId: myPrgmId,
|
||||||
gridName: 'rowGrid',
|
gridName: 'rowGrid',
|
||||||
loadGrid: true,
|
loadGrid: false,
|
||||||
tab: null,
|
tab: null,
|
||||||
dataPathMock: {
|
|
||||||
"rowGrid": {
|
|
||||||
column: [
|
|
||||||
{ header: '검침 대상 ID', name: 'readObjId', align: 'left' },
|
|
||||||
{ header: '검침 대상 명', name: 'readObjNm', align: 'left' },
|
|
||||||
{ header: '검침 대상 유형', name: 'readObjKind', align: 'left' },
|
|
||||||
{ header: '그룹', name: 'grpCd', align: 'left' },
|
|
||||||
{ header: 'TJ 환산계수', name: 'tjCvrtCoef', align: 'right' },
|
|
||||||
{ header: 'TOE 환산계수', name: 'toeCvrtCoef', align: 'right' },
|
|
||||||
{ header: 'CO2 환산계수', name: 'co2CvrtCoef', align: 'right' },
|
|
||||||
{ header: '단위', name: 'unitCd', align: 'left' },
|
|
||||||
{ header: '사용 여부', name: 'useFg', align: 'center' },
|
|
||||||
],
|
|
||||||
data: dataPathDataExample,
|
|
||||||
defaultRow: dataPathDataExample,
|
|
||||||
option: {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
name: '검침 대상 정보',
|
name: '검침 대상 정보',
|
||||||
@ -724,8 +703,8 @@ const defaultData = {
|
|||||||
},
|
},
|
||||||
buttonAuth: {
|
buttonAuth: {
|
||||||
add: true,
|
add: true,
|
||||||
save: true,
|
|
||||||
remove: true,
|
remove: true,
|
||||||
|
save: true,
|
||||||
excel: false,
|
excel: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -873,40 +852,7 @@ const myDetail = [
|
|||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
const dataPathDataExample = [
|
|
||||||
{
|
|
||||||
readObjId: 'OBJ001',
|
|
||||||
readObjNm: '서울 본사',
|
|
||||||
readObjKind: 'TYPE01',
|
|
||||||
grpCd: 'GRP01',
|
|
||||||
tjCvrtCoef: 1.25,
|
|
||||||
toeCvrtCoef: 0.85,
|
|
||||||
co2CvrtCoef: 2.1,
|
|
||||||
unitCd: 'kWh',
|
|
||||||
useFg: '1',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
readObjId: 'OBJ002',
|
|
||||||
readObjNm: '부산 지사',
|
|
||||||
readObjKind: 'TYPE02',
|
|
||||||
grpCd: 'GRP02',
|
|
||||||
tjCvrtCoef: 1.10,
|
|
||||||
toeCvrtCoef: 0.90,
|
|
||||||
co2CvrtCoef: 1.8,
|
|
||||||
unitCd: 'MJ',
|
|
||||||
useFg: '0',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
readObjId: 'OBJ003',
|
|
||||||
readObjNm: '대전 공장',
|
|
||||||
readObjKind: 'TYPE03',
|
|
||||||
grpCd: 'GRP01',
|
|
||||||
tjCvrtCoef: 1.30,
|
|
||||||
toeCvrtCoef: 0.95,
|
|
||||||
co2CvrtCoef: 2.3,
|
|
||||||
unitCd: 'GJ',
|
|
||||||
useFg: '1',
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
@import '@/assets/scss/common.scss';
|
||||||
|
</style>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-layout">
|
<div class="l-layout">
|
||||||
<common-page-title />
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<!-- 조회조견 -->
|
<!-- 조회조견 -->
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-layout">
|
<div class="l-layout">
|
||||||
<PageTitle/>
|
<CommonPageTitle/>
|
||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
@ -58,7 +58,7 @@
|
|||||||
@sendSelectedRowStatInfo="getSelectedRowStatInfo" :selectedRowDataWatchFlag="true" />
|
@sendSelectedRowStatInfo="getSelectedRowStatInfo" :selectedRowDataWatchFlag="true" />
|
||||||
</div>
|
</div>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
<!-- <div class="d-flex align-center justify-space-between">
|
<div class="d-flex align-center justify-space-between">
|
||||||
<pagination
|
<pagination
|
||||||
id="pagination"
|
id="pagination"
|
||||||
:total-count="totalCount"
|
:total-count="totalCount"
|
||||||
@ -66,7 +66,7 @@
|
|||||||
:limit="limit"
|
:limit="limit"
|
||||||
@loadData="changeGrid"
|
@loadData="changeGrid"
|
||||||
/>
|
/>
|
||||||
</div> -->
|
</div>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col :cols="7" class="h100">
|
<v-col :cols="7" class="h100">
|
||||||
@ -107,7 +107,6 @@ import TagAddInfoTab from '@/components/pages/ems/TagInfo/TagAddInfoTab';
|
|||||||
import Grid from '~/components/common/Grid';
|
import Grid from '~/components/common/Grid';
|
||||||
import Utility from '~/plugins/utility';
|
import Utility from '~/plugins/utility';
|
||||||
import pagination from '~/components/Pagination';
|
import pagination from '~/components/Pagination';
|
||||||
import PageTitle from "~/components/common/PageTitle";
|
|
||||||
|
|
||||||
let myTitle;
|
let myTitle;
|
||||||
// const myPrgmId = "PRG0051";
|
// const myPrgmId = "PRG0051";
|
||||||
@ -140,13 +139,12 @@ export default {
|
|||||||
TagAddInfoTab,
|
TagAddInfoTab,
|
||||||
Grid,
|
Grid,
|
||||||
pagination,
|
pagination,
|
||||||
PageTitle
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
myPrgmId: myPrgmId,
|
myPrgmId: myPrgmId,
|
||||||
gridName: 'rowGrid',
|
gridName: 'rowGrid',
|
||||||
loadGrid: true,
|
loadGrid: false,
|
||||||
tab: null,
|
tab: null,
|
||||||
items: [
|
items: [
|
||||||
{ name: 'TAG 정보', id: 'tagBaseInfoTab', disabledFlag: false },
|
{ name: 'TAG 정보', id: 'tagBaseInfoTab', disabledFlag: false },
|
||||||
@ -275,16 +273,12 @@ export default {
|
|||||||
this.gridInit();
|
this.gridInit();
|
||||||
},
|
},
|
||||||
gridInit() {
|
gridInit() {
|
||||||
const gridHeight = this.$refs.gridParent.offsetHeight - 180;
|
const gridHeight = this.$refs.gridParent.offsetHeight - 16;
|
||||||
|
|
||||||
const myOptions = {
|
const myOptions = {
|
||||||
columnOptions: {
|
columnOptions: {
|
||||||
resizable: true,
|
resizable: true,
|
||||||
},
|
},
|
||||||
pageOptions: {
|
|
||||||
useClient: true,
|
|
||||||
perPage: 10,
|
|
||||||
},
|
|
||||||
scrollX: true,
|
scrollX: true,
|
||||||
header: {
|
header: {
|
||||||
height: 38,
|
height: 38,
|
||||||
@ -527,16 +521,16 @@ export default {
|
|||||||
//rowKey: 0,
|
//rowKey: 0,
|
||||||
rowKey:
|
rowKey:
|
||||||
this.pageData.rowGridSelectKey == '' ||
|
this.pageData.rowGridSelectKey == '' ||
|
||||||
this.pageData.rowGridSelectKey == null
|
this.pageData.rowGridSelectKey == null
|
||||||
? 0
|
? 0
|
||||||
: this.pageData.rowGridSelectKey ==
|
: this.pageData.rowGridSelectKey ==
|
||||||
this.$refs[this.gridName].getData().length - 1
|
this.$refs[this.gridName].getData().length - 1
|
||||||
? this.pageData.rowGridSelectKey
|
? this.pageData.rowGridSelectKey
|
||||||
: 0,
|
: 0,
|
||||||
columnName: 'tagId',
|
columnName: 'tagId',
|
||||||
setScroll: true,
|
setScroll: true,
|
||||||
});
|
});
|
||||||
} catch (error) { }
|
} catch (error) {}
|
||||||
// this.$refs[this.gridName].focus({
|
// this.$refs[this.gridName].focus({
|
||||||
// rowKey: 0,
|
// rowKey: 0,
|
||||||
// columnName: "tagId",
|
// columnName: "tagId",
|
||||||
@ -773,7 +767,7 @@ export default {
|
|||||||
gridEditingFinish(data) {
|
gridEditingFinish(data) {
|
||||||
this.$refs[this.gridName].editingFinish(data);
|
this.$refs[this.gridName].editingFinish(data);
|
||||||
},
|
},
|
||||||
changeGrid: async function (pageNum, limit) {
|
changeGrid: async function(pageNum, limit) {
|
||||||
this.page = pageNum;
|
this.page = pageNum;
|
||||||
this.limit = limit;
|
this.limit = limit;
|
||||||
|
|
||||||
@ -817,9 +811,9 @@ function isValidAlrmVal(obj) {
|
|||||||
if (Number(obj[keyList[i]]) >= Number(obj[keyList[j]])) {
|
if (Number(obj[keyList[i]]) >= Number(obj[keyList[j]])) {
|
||||||
alert(
|
alert(
|
||||||
nameList[j] +
|
nameList[j] +
|
||||||
'값은 ' +
|
'값은 ' +
|
||||||
nameList[i] +
|
nameList[i] +
|
||||||
'값보다 큰 숫자를 입력해야 합니다.',
|
'값보다 큰 숫자를 입력해야 합니다.',
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="l-layout">
|
<div class="l-layout">
|
||||||
<common-page-title />
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div ref="mainDiv" class="l-layout">
|
<div ref="mainDiv" class="l-layout">
|
||||||
<common-page-title />
|
<CommonPageTitle />
|
||||||
<v-row ref="searchFilter">
|
<v-row ref="searchFilter">
|
||||||
<v-col :cols="12">
|
<v-col :cols="12">
|
||||||
<v-card class="searchFilter">
|
<v-card class="searchFilter">
|
||||||
|
@ -669,7 +669,8 @@ const INIT_URL_STATE = {
|
|||||||
// prgmId : PRG0052 과거 검침 데이터 조회
|
// prgmId : PRG0052 과거 검침 데이터 조회
|
||||||
selectTagRawDataByQuarter:
|
selectTagRawDataByQuarter:
|
||||||
'ems/base/PastRsltDataReadCtr/selectTagRawDataByQuarter',
|
'ems/base/PastRsltDataReadCtr/selectTagRawDataByQuarter',
|
||||||
|
selectTagRawDataByQuarterPageTotal:
|
||||||
|
'ems/base/PastRsltDataReadCtr/selectTagRawDataByQuarterPageTotal',
|
||||||
// prgmId : PRG4107 개인화 대시보드
|
// prgmId : PRG4107 개인화 대시보드
|
||||||
selectIndvWidgetList: 'ems/base/DashboardHfemsCtr/selectIndvWidgetList',
|
selectIndvWidgetList: 'ems/base/DashboardHfemsCtr/selectIndvWidgetList',
|
||||||
selectEnergyUseReadHourAddup:
|
selectEnergyUseReadHourAddup:
|
||||||
|
Reference in New Issue
Block a user