sk_fems_ui commit

This commit is contained in:
unknown
2025-07-12 15:13:46 +09:00
commit ffdf5ccb66
380 changed files with 137913 additions and 0 deletions

View File

@ -0,0 +1,113 @@
<template>
<v-row class="search-box" align="center" no-gutters>
<v-col v-if="label" :cols="labelCols">
<label for="" class="search-box-label">
<v-icon x-small color="primary" class="mr-1">mdi-record-circle</v-icon>
{{ label }}
</label>
</v-col>
<v-col :cols="label ? textCols : ''">
<v-select
v-model="selectValue"
:items="selectList"
item-text="enrgNm"
item-value="idx"
solo
outlined
:hide-details="true"
append-icon="mdi-chevron-down"
class="v-select__custom"
></v-select>
<!-- @change="updateBlocCode($event)" -->
</v-col>
</v-row>
</template>
<script>
import { mapState, mapMutations, mapActions } from 'vuex';
export default {
props: {
parentPrgmId: {
type: String,
require: true,
},
autoLoad: {
type: Boolean,
require: false,
default: true,
},
label: {
type: String,
require: false,
default: '검침대상유형',
},
isAll: {
type: Boolean,
require: false,
default: false,
},
textCols: {
type: Number,
require: false,
default: 8,
},
labelCols: {
type: Number,
require: false,
default: 4,
},
},
data() {
return {
// label: "검침대상유형",
// labelPrepend: true
};
},
computed: {
...mapState({
searchParam: state => state.pageData,
}),
selectValue: {
get() {
return this.searchParam[this.parentPrgmId].energyCd;
},
set(value) {
this.selectBoxEvt();
return this.setPageData({ energyCd: value });
},
},
selectList() {
let list = [];
list = this.searchParam[this.parentPrgmId].energyList;
if (this.isAll) {
list.unshift({
idx: -1,
enrgNm: '전체',
});
}
return list;
},
},
created() {
if (this.autoLoad) this.getEnergyList({ useFg: 1 });
},
methods: {
...mapMutations({ setPageData: 'setPageData' }),
...mapActions({
getEnergyList: 'modules/search/getEnergyListForPop',
}),
selectBoxEvt() {
localStorage.removeItem(
this.searchParam[this.parentPrgmId] + 'CheckedRow',
);
if (this.searchParam[this.parentPrgmId].isMulti) {
this.setPageData({ facInfoList: [] });
} else {
this.setPageData({ facInfo: {} });
}
},
},
};
</script>
<style></style>