ilk commit
This commit is contained in:
5
src/module/sistem-gunlugu/routes/index.ts
Normal file
5
src/module/sistem-gunlugu/routes/index.ts
Normal file
@ -0,0 +1,5 @@
|
||||
import logs from "@/module/sistem-gunlugu/routes/logs";
|
||||
|
||||
export default [
|
||||
logs
|
||||
]
|
||||
7
src/module/sistem-gunlugu/routes/logs.ts
Normal file
7
src/module/sistem-gunlugu/routes/logs.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import Logs from "@/module/sistem-gunlugu/views/Logs.vue"
|
||||
|
||||
export default {
|
||||
path: '/logs',
|
||||
name: 'Logs',
|
||||
component: Logs
|
||||
}
|
||||
0
src/module/sistem-gunlugu/service/index.ts
Normal file
0
src/module/sistem-gunlugu/service/index.ts
Normal file
0
src/module/sistem-gunlugu/stores/index.ts
Normal file
0
src/module/sistem-gunlugu/stores/index.ts
Normal file
49
src/module/sistem-gunlugu/views/Logs.vue
Normal file
49
src/module/sistem-gunlugu/views/Logs.vue
Normal file
@ -0,0 +1,49 @@
|
||||
<template>
|
||||
<AdminLayout>
|
||||
<Breadcrumb current-page-text="Sistem Günlüğü" />
|
||||
<section class="section-list">
|
||||
<list-table-content
|
||||
:tableHeader="tableHeader"
|
||||
icon="logs"
|
||||
title="Sistem Günlüğü"
|
||||
listText="Log"
|
||||
apiList="Auth/GetOperationLogs"
|
||||
apiText="Sistem Günlüğü Listesi" />
|
||||
</section>
|
||||
</AdminLayout>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import AdminLayout from '@/layouts/AdminLayout.vue'
|
||||
import { ref } from 'vue'
|
||||
import { useDateStore } from '@/stores/dateStore'
|
||||
const dateStore = useDateStore()
|
||||
|
||||
const tableHeader = ref<Record<string, any>[]>([
|
||||
{
|
||||
name: 'tarih',
|
||||
title: 'İşlem Tarihi',
|
||||
compute: (v: Record<string, any>): string => {
|
||||
return dateStore.dateFormat({ date: v.timestamp })
|
||||
},
|
||||
sort: true,
|
||||
style:{width:'10%'}
|
||||
},
|
||||
{
|
||||
name: 'userName',
|
||||
title: 'İşlemi yapan',
|
||||
sort: true,
|
||||
style:{width:'20%'}
|
||||
},
|
||||
{
|
||||
name: 'operationType',
|
||||
title: 'Bölüm',
|
||||
sort: true,
|
||||
style:{width:'15%'}
|
||||
},
|
||||
{
|
||||
name: 'description',
|
||||
title: 'İşlem',
|
||||
sort: true
|
||||
}
|
||||
])
|
||||
</script>
|
||||
Reference in New Issue
Block a user