vue2_frontend init..

This commit is contained in:
최준흠 2022-08-24 19:13:34 +09:00
parent 58481fe5ab
commit 1096bf645c

View File

@ -44,17 +44,17 @@
:sort-desc.sync="sortDesc" :sort-desc.sync="sortDesc"
:sort-direction="sortDirection" :sort-direction="sortDirection"
:busy="isBusy" :busy="isBusy"
:striped="striped" :striped="table_Attributes.striped"
:hover="hover" :hover="table_Attributes.hover"
:bordered="bordered" :bordered="table_Attributes.bordered"
:dark="dark" :dark="table_Attributes.dark"
:head-variant="headVariant" :head-variant="table_Attributes.headVariant"
label-sort-asc="" label-sort-asc=""
label-sort-desc="" label-sort-desc=""
label-sort-clear="" label-sort-clear=""
@filtered="onFiltered" @filtered="onFiltered"
> >
<template v-slot:cell(selected)="row"> <template #cell(selected)="row">
<input <input
type="checkbox" type="checkbox"
:value="row.item.id" :value="row.item.id"
@ -90,7 +90,7 @@
</b-col> </b-col>
<b-col> <b-col>
<div class="input-group justify-content-end"> <div class="input-group justify-content-end">
<b-button @click="toggleBusy">Toggle Busy State</b-button> <b-button @click="busyToggle">Toggle Busy State</b-button>
</div> </div>
</b-col> </b-col>
</b-row> </b-row>
@ -164,11 +164,13 @@ export default {
], ],
currentPage: 1, // currentPage: 1, //
// //
striped: true, table_Attributes: {
hover: true, striped: true,
bordered: true, hover: true,
dark: false, bordered: true,
headVariant: 'null', dark: false,
headVariant: 'null'
},
isBusy: false, isBusy: false,
sortBy: 'id', sortBy: 'id',
sortDesc: false, sortDesc: false,
@ -215,7 +217,7 @@ export default {
this.currentPage = 1 this.currentPage = 1
this.getDatas() this.getDatas()
}, },
toggleBusy() { busyToggle() {
this.isBusy = !this.isBusy this.isBusy = !this.isBusy
}, },
onFiltered(filteredItems) { onFiltered(filteredItems) {
@ -224,6 +226,7 @@ export default {
this.currentPage = 1 this.currentPage = 1
}, },
checkedIdsToggle(id) { checkedIdsToggle(id) {
console.log(this)
//console.log(this.checkedIds) //console.log(this.checkedIds)
if (!this.checkedIds.includes(id)) { if (!this.checkedIds.includes(id)) {
this.checkedIds.push(id) this.checkedIds.push(id)