Initial commit
This commit is contained in:
18
app/components/menu/MenuCollab.vue
Normal file
18
app/components/menu/MenuCollab.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<a class="has-text-link" @click="open">{{row['collaborator__code']}}</a>
|
||||
</template>
|
||||
<script setup>
|
||||
import { useStore } from '@/stores/index'
|
||||
const store = useStore()
|
||||
const { $getdata } = useNuxtApp()
|
||||
|
||||
const emit = defineEmits(["clickevent"])
|
||||
const props = defineProps({
|
||||
row: Object
|
||||
})
|
||||
async function open() {
|
||||
let record = await $getdata('collaborator', {code: props.row.collaborator__code}, undefined, true)
|
||||
emit('clickevent', {name: 'dataevent', data: {modal: {title: store.lang==='en'? 'Collaborator' : 'Cộng tác viên',
|
||||
height: '400px', width: '60%', component: 'collaborator/CollaboratorView', vbind:{row: record}}}})
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user