hapus
This commit is contained in:
@@ -16,7 +16,7 @@ const {typeUser} =storeToRefs(useRoleMode())
|
||||
const state = ref(false)
|
||||
const type = ref('')
|
||||
const detailType = async(item:any) => {
|
||||
// console.log(item._id); //simpan pinia
|
||||
console.log(item._id); //simpan pinia
|
||||
await getRoleMenuById(item._id)
|
||||
type.value='detail'
|
||||
state.value= true
|
||||
@@ -31,6 +31,7 @@ onMounted(async() => {
|
||||
</script>
|
||||
<!-- ini list -->
|
||||
<template>
|
||||
<!-- <MasterContoh1 /> -->
|
||||
<div class="d-flex pt-6 align-center ml-3 mb-6">
|
||||
<v-btn class="mr-16" color="primary" variant="tonal" @click="state= !state; type='create'"><v-icon>mdi-plus</v-icon> Tipe User</v-btn>
|
||||
</div>
|
||||
@@ -39,7 +40,9 @@ onMounted(async() => {
|
||||
<div class="d-flex justify-space-between">
|
||||
<template v-if="listTypeUser && listTypeUser.length > 0">
|
||||
<v-col v-for="(item, index) in listTypeUser" :key="index">
|
||||
<MasterCardList :item="item" @detail="detailType" />
|
||||
<MasterCardList :item="item" @detail="detailType" >
|
||||
<template v-slot:actions></template>
|
||||
</MasterCardList>
|
||||
</v-col>
|
||||
</template>
|
||||
<template v-else>
|
||||
@@ -55,7 +58,8 @@ onMounted(async() => {
|
||||
<!-- <p>coba ini</p> -->
|
||||
<!-- {{ type }}-->
|
||||
<MasterFormTypeUser v-if="type=='create'"/>
|
||||
<MasterFormDetail1 v-if="type=='detail'"/>
|
||||
<MasterFormDetailgit v-if="type=='detail'"/>
|
||||
<!-- <MasterContoh v-if="type=='detail'"/> -->
|
||||
</template>
|
||||
</MasterDialogModal>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user