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,104 @@
<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="searchParam[parentPrgmId].blocMstrList"
label="사업장을 선택하세요"
item-text="blocNm"
item-value="idx"
solo
append-icon="mdi-chevron-down"
class="v-select__custom"
outlined
></v-select>
</v-col>
</v-row>
</template>
<script>
import { mapState, mapMutations, mapActions } from 'vuex';
export default {
props: {
parentPrgmId: {
type: String,
require: true,
},
dataKey: {
type: String,
require: false,
},
sendParam: {
type: Object,
require: false,
default: () => {
return {};
},
},
addAll: {
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,
menuData: 'menuData',
}),
selectValue: {
get() {
if (!this.dataKey) {
return this.searchParam[this.parentPrgmId].blocId;
} else {
return this.searchParam[this.parentPrgmId][this.dataKey];
}
},
set(value) {
if (!this.dataKey) {
return this.setPageData({ blocId: value });
} else {
return this.setPageData({ [this.dataKey]: value });
}
},
},
},
created() {
this.getBlocMstrList({
dataKey: this.dataKey,
params: this.sendParam,
addAll: this.addAll,
});
},
methods: {
...mapMutations({ setPageData: 'setPageData' }),
...mapActions({
getBlocMstrList: 'modules/search/getBlocMstrList',
}),
},
};
</script>
<style></style>