diff --git a/assets/images/SwapRight.svg b/assets/images/SwapRight.svg
new file mode 100644
index 0000000..529a231
--- /dev/null
+++ b/assets/images/SwapRight.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/images/SwapRight_Dark.svg b/assets/images/SwapRight_Dark.svg
new file mode 100644
index 0000000..5ff8291
--- /dev/null
+++ b/assets/images/SwapRight_Dark.svg
@@ -0,0 +1,3 @@
+
diff --git a/assets/scss/common.scss b/assets/scss/common.scss
index 6cd1e26..a1b3167 100644
--- a/assets/scss/common.scss
+++ b/assets/scss/common.scss
@@ -574,6 +574,7 @@ a {
& th,
& td {
height: 48px;
+ color: map-deep-get($config, #{$theme}, "tui-datepicker-calendar-color");
}
}
diff --git a/assets/scss/common/pagination.scss b/assets/scss/common/pagination.scss
index 503ccc4..7f41cb7 100644
--- a/assets/scss/common/pagination.scss
+++ b/assets/scss/common/pagination.scss
@@ -10,7 +10,7 @@
// box-shadow: none !important;
background-color: map-deep-get($config, #{$theme}, "paging-background") !important;
color: map-deep-get($config, #{$theme}, "paging-text") !important;
- border: 0.5px solid #424242;
+ border: none;
.ant-pagination-item-link {
border: none;
@@ -19,13 +19,13 @@
}
.ant-pagination-item-active {
- border-color: #1890ff !important;
+ border: 1px solid #1890ff !important;
color: #1890ff !important
}
.ant-pagination-options-size-changer {
.ant-select-selection {
- border: 0.5px solid #424242;
+ border: 0.5px solid map-deep-get($config, #{$theme}, "v-input-fieldset-color") !important;
background: map-deep-get($config, #{$theme}, "paging-background") !important;
color: map-deep-get($config, #{$theme}, "paging-text") !important;
}
diff --git a/components/common/Datepicker.vue b/components/common/Datepicker.vue
index b8cc499..b628db8 100644
--- a/components/common/Datepicker.vue
+++ b/components/common/Datepicker.vue
@@ -23,14 +23,14 @@
$icoCalendar
-->
-
+
-
![]()
+
- $icoCalendar
+
@@ -212,9 +214,9 @@ export default {
},
arrowIcon() {
if(this.isDarkMode){
- return require('@/assets/images/arrow_datepicker_dm.png');
+ return require('@/assets/images/SwapRight_Dark.svg');
}
- return require('@/assets/images/arrow_datepicker.png');
+ return require('@/assets/images/SwapRight.svg');
}
},
watch: {
diff --git a/components/common/DatepickerTopView.vue b/components/common/DatepickerTopView.vue
index ff05ba1..731360a 100644
--- a/components/common/DatepickerTopView.vue
+++ b/components/common/DatepickerTopView.vue
@@ -5,10 +5,7 @@
-
+
$icoBulletPoint
{{ label }}
@@ -16,17 +13,11 @@
-
-
- $icoCalendar
+
+
+
@@ -36,18 +27,13 @@
-
+
- $icoCalendar
+
@@ -91,9 +77,9 @@ export default {
require: false,
default: false,
},
- isRangeOption:{
- type:Boolean,
- require:false,
+ isRangeOption: {
+ type: Boolean,
+ require: false,
default: true
}
},
@@ -177,21 +163,23 @@ export default {
this.myOptions.viewFormat,
);
},
- toDtChange(){
+ toDtChange() {
return {
- isCheck:this.searchParam.isCheck ,
- toDt : Utility.setFormatDate(
- this.searchParam.toDt,
- this.myOptions.viewFormat,
- )};
+ isCheck: this.searchParam.isCheck,
+ toDt: Utility.setFormatDate(
+ this.searchParam.toDt,
+ this.myOptions.viewFormat,
+ )
+ };
},
- fromDtChange(){
+ fromDtChange() {
return {
- isCheck:this.searchParam.isCheck ,
- fromDt : Utility.setFormatDate(
+ isCheck: this.searchParam.isCheck,
+ fromDt: Utility.setFormatDate(
this.searchParam.fromDt,
this.myOptions.viewFormat,
- )};
+ )
+ };
},
defaultRange() {
return this.searchParam.defaultRange
@@ -205,10 +193,10 @@ export default {
);
},
arrowIcon() {
- if(this.isDarkMode){
- return require('@/assets/images/arrow_datepicker_dm.png');
+ if (this.isDarkMode) {
+ return require('@/assets/images/SwapRight_Dark.svg');
}
- return require('@/assets/images/arrow_datepicker.png');
+ return require('@/assets/images/SwapRight.svg');
}
},
watch: {
@@ -242,24 +230,24 @@ export default {
this.endDatepickerInstance.setDate(new Date(newVal));
}
},
- fromDtChange:{
- deep:true,
- handler(){
- if(this.fromDtChange.isCheck){
+ fromDtChange: {
+ deep: true,
+ handler() {
+ if (this.fromDtChange.isCheck) {
this.fromDtChanged(this.fromDtChange.fromDt);
this.setPageData({
- isCheck : false
+ isCheck: false
})
}
}
},
- toDtChange:{
- deep:true,
- handler(){
- if(this.toDtChange.isCheck){
+ toDtChange: {
+ deep: true,
+ handler() {
+ if (this.toDtChange.isCheck) {
this.toDtChanged(this.toDtChange.toDt);
this.setPageData({
- isCheck : false
+ isCheck: false
})
}
}
@@ -370,7 +358,7 @@ export default {
if (
(myRange > rangeGap && compareDt.isAfter(defaultDt)) ||
defaultDt.format(this.myOptions.sendFormat) ===
- compareDt.format(this.myOptions.sendFormat)
+ compareDt.format(this.myOptions.sendFormat)
) {
// if(this.cmCycleFlag){
this.setPageData({ isFind: true });
@@ -400,7 +388,7 @@ export default {
if (
(myRange > rangeGap && defaultDt.isAfter(compareDt)) ||
defaultDt.format(this.myOptions.sendFormat) ===
- compareDt.format(this.myOptions.sendFormat)
+ compareDt.format(this.myOptions.sendFormat)
) {
this.setPageData({ isFind: true });
} else {
@@ -424,6 +412,7 @@ export default {
display: flex;
justify-content: space-around;
background-color: #edf4fc;
+
.tui-timepicker-column.tui-timepicker-colon {
color: #000 !important;
}
diff --git a/components/common/PastRsltDatePicker.vue b/components/common/PastRsltDatePicker.vue
index 13dddae..208767c 100644
--- a/components/common/PastRsltDatePicker.vue
+++ b/components/common/PastRsltDatePicker.vue
@@ -2,25 +2,19 @@
-
-
-
- $icoCalendar
+
+
+
+
+
@@ -29,18 +23,13 @@
-
+
- $icoCalendar
+
@@ -98,6 +87,7 @@ export default {
searchParam(state) {
return state.pageData[this.parentPrgmId];
},
+ isDarkMode: "isDarkMode",
}),
myCmCycle() {
return this.searchParam.cmCycle;
@@ -138,10 +128,10 @@ export default {
);
},
arrowIcon() {
- if(this.isDarkMode){
- return require('@/assets/images/arrow_datepicker_dm.png');
+ if (this.isDarkMode) {
+ return require('@/assets/images/SwapRight_Dark.svg');
}
- return require('@/assets/images/arrow_datepicker.png');
+ return require('@/assets/images/SwapRight.svg');
}
},
watch: {
@@ -280,7 +270,7 @@ export default {
if (
(myRange > rangeGap && compareDt.isAfter(defaultDt)) ||
defaultDt.format(this.myOptions.sendFormat) ===
- compareDt.format(this.myOptions.sendFormat)
+ compareDt.format(this.myOptions.sendFormat)
) {
// if(this.cmCycleFlag){
this.setPageData({ isFind: true });
@@ -310,7 +300,7 @@ export default {
if (
(myRange > rangeGap && defaultDt.isAfter(compareDt)) ||
defaultDt.format(this.myOptions.sendFormat) ===
- compareDt.format(this.myOptions.sendFormat)
+ compareDt.format(this.myOptions.sendFormat)
) {
this.setPageData({ isFind: true });
} else {
@@ -334,6 +324,7 @@ export default {
display: flex;
justify-content: space-around;
background-color: #edf4fc;
+
.tui-timepicker-column.tui-timepicker-colon {
color: #000 !important;
}
diff --git a/components/common/chartoptions/GaugeChart.js b/components/common/chartoptions/GaugeChart.js
index d29225c..e2917cc 100644
--- a/components/common/chartoptions/GaugeChart.js
+++ b/components/common/chartoptions/GaugeChart.js
@@ -2,15 +2,13 @@
export default function getGaugeChartOption({ title, min = 0, max = 160, unit = '%', isDarkMode = false, backgroundRadius = 97 }) {
const colorRanges = isDarkMode
? [
- [0.375, '#49AA19'], // Dark Green
- // [0.5, '#B8860B'], // Dark Yellow
- [0.625, '#D89614'], // Dark Orange
+ [60 / 160, '#49AA19'], // Dark Green
+ [100 / 160, '#D89614'], // Dark Orange
[1, '#D32029'], // Dark Red
]
: [
- [0.375, '#52C41A'], // Light Green
- // [0.5, '#FFD700'], // Light Yellow
- [0.625, '#FAAD14'], // Light Orange
+ [60 / 160, '#52C41A'], // Light Green
+ [100 / 160, '#FAAD14'], // Light Orange
[1, '#F5222D'], // Light Red
];
// Old color range
@@ -56,6 +54,7 @@ export default function getGaugeChartOption({ title, min = 0, max = 160, unit =
endAngle: -45,
min: min,
max: max,
+ splitNumber: 8,
// progress: {
// show: true,
// width: 15,
diff --git a/components/common/chartoptions/LineChart.js b/components/common/chartoptions/LineChart.js
index 66c517f..a7bc322 100644
--- a/components/common/chartoptions/LineChart.js
+++ b/components/common/chartoptions/LineChart.js
@@ -34,6 +34,8 @@ export default function getLineChartOption({
legend: {
// data: legendData,
icon: 'circle',
+ itemWidth: 15, // Width of the legend icon
+ itemHeight: 15,
top: '0%',
right: '5%',
orient: 'horizontal',
diff --git a/components/common/modal/ElecPowChrgPop.vue b/components/common/modal/ElecPowChrgPop.vue
index 56efac4..7d16d41 100644
--- a/components/common/modal/ElecPowChrgPop.vue
+++ b/components/common/modal/ElecPowChrgPop.vue
@@ -17,20 +17,24 @@
{{ item.label }}
-
+
+ >
+
+
+ $icoSearch
+
+
diff --git a/components/common/modal/ReadPlcPop.vue b/components/common/modal/ReadPlcPop.vue
index 0ea0e67..0046098 100644
--- a/components/common/modal/ReadPlcPop.vue
+++ b/components/common/modal/ReadPlcPop.vue
@@ -1,5 +1,5 @@
-
+
-
+
-
+
@@ -43,7 +43,7 @@
-
+
-
-
-
@@ -61,7 +62,7 @@ import BtnExcelDownload from '~/components/common/button/BtnExcelDownload';
import DateUtility from '~/plugins/dateUtility';
// import Search from "~/components/common/search";
import EvtObjPop from '~/components/common/modal/EvtObjPop';
-import pagination from '~/components/Pagination';
+import pagination from '~/components/common/Pagination';
let myTitle;
// const myPrgmId = "PRG0052";
@@ -212,7 +213,7 @@ export default {
},
layoutInit() {
const searchFilterHeight = this.$refs.searchFilter.offsetHeight;
- this.$refs.contents.style.height = `calc(100% - ${searchFilterHeight}px)`;
+ this.$refs.contents.style.height = `calc(100% - 30px - ${searchFilterHeight}px) `;
},
async setFromDt() {
this.pageData.fromDt = Utility.setBeforetDate(
@@ -220,7 +221,6 @@ export default {
this.pageData.toDt,
'YYYYMMDD',
);
- // this.pageData.toDt = Utility.setAftertDate(this.pageData, this.pageData.fromDt, "YYYYMMDD");
},
gridInit() {
this.loadGrid = false;
diff --git a/pages/ems/base/ReadResultCloseMngPage.vue b/pages/ems/base/ReadResultCloseMngPage.vue
index 0720a38..136704c 100644
--- a/pages/ems/base/ReadResultCloseMngPage.vue
+++ b/pages/ems/base/ReadResultCloseMngPage.vue
@@ -100,6 +100,10 @@
:gridName="gridName"
/>
+
+
+
@@ -117,6 +121,7 @@ import selectCodeList from "@/components/common/select/selectCodeList";
import SelectMttList from "@/components/common/select/SelectMttList";
import Datepicker from "~/components/common/Datepicker";
import BtnExcelDownload from "~/components/common/button/BtnExcelDownload";
+import pagination from '~/components/common/Pagination';
let myTitle;
// const myPrgmId = "PRG0018";
@@ -144,27 +149,18 @@ export default {
Datepicker,
Search,
Grid,
+ pagination,
},
data() {
return {
myPrgmId: myPrgmId,
gridName: "rowGrid",
loadGrid: false,
- dataPathMock: {
- rowGrid: {
- column: [
- { header: "태그", name: "id", headerAlign: "left" },
- { header: "배율", name: "lable", headerAlign: "left" },
- { header: "설비비", name: "type", headerAlign: "left" },
- { header: "설비배분비율", name: "note", headerAlign: "left" },
- { header: "금일데이터", name: "note", headerAlign: "left" },
- { header: "최종마감시각", name: "date", headerAlign: "left" },
- ],
- data: dataPathDataExample,
- defaultRow: dataPathDataExample,
- option: {},
- },
- },
+ itemsPerPage: 10,
+ itemsPerPageArray: [10, 20, 30],
+ limit: 20,
+ page: 1,
+ totalCount: 0,
};
},
computed: {
@@ -190,7 +186,10 @@ export default {
},
watch: {
chkIsFind(val) {
- if (val) this.search();
+ if (val) {
+ this.page = 1;
+ this.search();
+ }
},
chkBlocId() {
this.setPageData({ isFind: true });
@@ -243,10 +242,6 @@ export default {
columnOptions: {
resizable: true,
},
- pageOptions: {
- useClient: true,
- perPage: 13,
- },
};
this.setGridOption({
gridKey: this.gridName,
@@ -261,6 +256,8 @@ export default {
await this.getRowGridData();
},
async getRowGridData() {
+ this.loadGrid = false;
+
if (
this.pageData.blocMstrList.length > 0 &&
this.pageData.commCdList.length > 0 &&
@@ -274,8 +271,25 @@ export default {
mttCd: this.pageData.commCd, // 검침대상유형
mttTp: this.pageData.readObjId, // 검침대상
readDt: this.pageData.fromDt, // 조회기간
+ limit: this.limit,
+ page: this.page,
+ offset: (this.page - 1) * this.limit, // MariaDB Query에서 직접 계산이 안됨
},
});
+
+ const res2 = await this.postApiReturn({
+ apiKey: 'selectReadResultCloseMngPageTotal',
+ resKey: 'cdKindPageTotal',
+ sendParam: {
+ blocId: this.pageData.blocMstrList[this.pageData.blocId].blocId, // 사업장
+ mttCd: this.pageData.commCd, // 검침대상유형
+ mttTp: this.pageData.readObjId, // 검침대상
+ readDt: this.pageData.fromDt, // 조회기간
+ },
+ });
+
+ this.totalCount = res2[0].totalcount;
+
this.setGridData({
gridKey: this.gridName,
value: res.map((item) => ({
@@ -325,6 +339,12 @@ export default {
this.setPageData({ isFind: true });
}
},
+ changeGrid: async function (pageNum, limit) {
+ this.page = pageNum;
+ this.limit = limit;
+
+ this.search();
+ },
},
};
@@ -431,13 +451,4 @@ const myColumns = [
},
},
];
-
-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: "-",
- date: "2023-01-10 20:02:00",
-});
diff --git a/pages/ems/effc/EnrgUseEqpmDetlMntrPage.vue b/pages/ems/effc/EnrgUseEqpmDetlMntrPage.vue
index bc0013b..a19a023 100644
--- a/pages/ems/effc/EnrgUseEqpmDetlMntrPage.vue
+++ b/pages/ems/effc/EnrgUseEqpmDetlMntrPage.vue
@@ -154,14 +154,15 @@
-
-
+
+
가이드 알람정보
-
-
+
+
설비 상세 정보
-
+
-
- {{ value.eqpmGrpNm }}
-
+
+
+ {{ value.eqpmGrpNm }}
+
+
-
-
-
+
diff --git a/pages/ems/effc/EqpmIndMntrPage.vue b/pages/ems/effc/EqpmIndMntrPage.vue
index 27098aa..b1ba5f4 100644
--- a/pages/ems/effc/EqpmIndMntrPage.vue
+++ b/pages/ems/effc/EqpmIndMntrPage.vue
@@ -105,8 +105,7 @@
:gridName="gridName"
:parentPrgmId="myPrgmId"
/>
-
-