Files
sk_fems_ui/components/common/button/BtnTotal.vue
2025-07-22 09:58:38 +07:00

30 lines
583 B
Vue

<template>
<!-- <v-btn :ripple="false" @click="setTotal()">전체</v-btn> -->
<a-button type="default" @click="setTotal()">전체</a-button>
</template>
<script>
import { mapMutations } from 'vuex';
export default {
props: {
parentPrgmId: {
type: String,
require: true,
},
},
methods: {
...mapMutations({ setPageData: 'setPageData' }),
setTotal() {
var facInfoText = { path: '전체' };
this.setPageData({ facInfo: facInfoText });
localStorage.setItem(
this.parentPrgmId + 'CheckedRow',
JSON.stringify(facInfoText),
);
},
},
};
</script>