ilk commit
This commit is contained in:
30
src/module/kullanicilar/views/KullaniciAyarlari.vue
Normal file
30
src/module/kullanicilar/views/KullaniciAyarlari.vue
Normal file
@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<AdminLayout>
|
||||
<Breadcrumb currentPageText="Kullanıcı Detay" />
|
||||
<tabs :tabList="tabList">
|
||||
<template #birimlistesi>
|
||||
<tab-kullanici-birimleri />
|
||||
</template>
|
||||
<template #gorevlistesi>
|
||||
<tab-kullanici-gorevleri />
|
||||
</template>
|
||||
</tabs>
|
||||
</AdminLayout>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
const route = useRoute()
|
||||
import { useGlobalStore } from '@/stores/globalStore'
|
||||
const globalStore = useGlobalStore()
|
||||
import AdminLayout from '@/layouts/AdminLayout.vue'
|
||||
import TabKullaniciGorevleri from '../components/TabKullaniciGorevleri.vue'
|
||||
import TabKullaniciBirimleri from '../components/TabKullaniciBirimleri.vue'
|
||||
|
||||
if (globalStore.selUser === 0) globalStore.selUser = Number(route.params.kullaniciId)
|
||||
|
||||
const tabList = ref<Record<string, any>[]>([
|
||||
{ text: 'Birim Listesi', id: 'birimlistesi' },
|
||||
{ text: 'Görev Listesi', id: 'gorevlistesi' }
|
||||
])
|
||||
</script>
|
||||
35
src/module/kullanicilar/views/KullaniciDetay.vue
Normal file
35
src/module/kullanicilar/views/KullaniciDetay.vue
Normal file
@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<AdminLayout>
|
||||
<Breadcrumb currentPageText="Kullanıcı Detay" />
|
||||
<tabs :tabList="tabList">
|
||||
<template #kullanicibilgileri>
|
||||
<tab-kullanici-bilgileri />
|
||||
</template>
|
||||
<template #yetkilioldugupiyangolar>
|
||||
<tab-kullanici-yetkili-piyangolar />
|
||||
</template>
|
||||
<template #kullaniciloglari>
|
||||
<tab-kullanici-loglari />
|
||||
</template>
|
||||
</tabs>
|
||||
</AdminLayout>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
const route = useRoute()
|
||||
import { useGlobalStore } from '@/stores/globalStore'
|
||||
const globalStore = useGlobalStore()
|
||||
import AdminLayout from '@/layouts/AdminLayout.vue'
|
||||
import TabKullaniciBilgileri from '../components/TabKullaniciBilgileri.vue'
|
||||
import TabKullaniciYetkiliPiyangolar from '../components/TabKullaniciYetkiliPiyangolar.vue'
|
||||
import TabKullaniciLoglari from '../components/TabKullaniciLoglari.vue'
|
||||
|
||||
if (globalStore.selUser === 0) globalStore.selUser = Number(route.params.kullaniciId)
|
||||
|
||||
const tabList = ref<Record<string, any>[]>([
|
||||
{ text: 'Kullanıcı Bilgileri', id: 'kullanicibilgileri' },
|
||||
{ text: 'Yetkili Olduğu Piyangolar', id: 'yetkilioldugupiyangolar' },
|
||||
{ text: 'Kullanıcı Logları', id: 'kullaniciloglari' }
|
||||
])
|
||||
</script>
|
||||
100
src/module/kullanicilar/views/KullaniciListesi.vue
Normal file
100
src/module/kullanicilar/views/KullaniciListesi.vue
Normal file
@ -0,0 +1,100 @@
|
||||
<template>
|
||||
<AdminLayout>
|
||||
<Breadcrumb current-page-text="Kullanıcılar Listesi" />
|
||||
<section class="section-list">
|
||||
<list-table-content
|
||||
v-if="loaded"
|
||||
:tableHeader="tableHeader"
|
||||
:rowAction="rwAction"
|
||||
icon="customers"
|
||||
title="Kullanıcılar"
|
||||
listText="Kullanıcı"
|
||||
addRoute="yeni-kullanici"
|
||||
apiList="Auth/kullaniciList"
|
||||
apiText="Kullanıcı Listesi" />
|
||||
</section>
|
||||
</AdminLayout>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, onBeforeMount, computed } from 'vue'
|
||||
import AdminLayout from '@/layouts/AdminLayout.vue'
|
||||
import { useGlobalStore } from '@/stores/globalStore'
|
||||
const globalStore = useGlobalStore()
|
||||
import { useAppUserUnitStore } from '../stores/appUserUnitStore'
|
||||
const appUserUnitStore = useAppUserUnitStore()
|
||||
import { useAppUserRoleStore } from '../stores/appUserRoleStore'
|
||||
const appUserRoleStore = useAppUserRoleStore()
|
||||
import { useAppUserUnitService } from '../service/appUserUnitService'
|
||||
const appUserUnitService = useAppUserUnitService()
|
||||
import { useAppUserRoleService } from '../service/appUserRoleService'
|
||||
const appUserRoleService = useAppUserRoleService()
|
||||
import router from '@/router'
|
||||
|
||||
const loaded = ref<boolean>(false)
|
||||
|
||||
const userUnitList = computed<Record<string, any>[]>(() => {
|
||||
return appUserUnitStore.appUserUnits
|
||||
})
|
||||
|
||||
const userRoleList = computed<Record<string, any>[]>(() => {
|
||||
return appUserRoleStore.appUserRoles
|
||||
})
|
||||
|
||||
const tableHeader = ref<Record<string, any>[]>([
|
||||
{
|
||||
name: 'ad',
|
||||
title: 'Ad',
|
||||
sort: true
|
||||
},
|
||||
{
|
||||
name: 'soyad',
|
||||
title: 'Soyad',
|
||||
sort: true
|
||||
},
|
||||
{
|
||||
name: 'calistigiBirim',
|
||||
title: 'Çalıştığı Birim',
|
||||
sort: true,
|
||||
filter: {
|
||||
type: 'select',
|
||||
data: userUnitList,
|
||||
listVal: 'id',
|
||||
listText: 'birimAdi',
|
||||
filterId: 'birimId'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'kullaniciGorevi',
|
||||
title: 'Görevi',
|
||||
sort: true,
|
||||
filter: {
|
||||
type: 'select',
|
||||
data: userRoleList,
|
||||
listVal: 'id',
|
||||
listText: 'gorevAdi',
|
||||
filterId: 'kullaniciGorevId'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'email',
|
||||
title: 'E-posta',
|
||||
sort: true
|
||||
},
|
||||
{
|
||||
name: 'telefonNumarasi',
|
||||
title: 'Telefon',
|
||||
sort: true
|
||||
}
|
||||
])
|
||||
const rwAction = (row: any) => {
|
||||
globalStore.selUser = row.id
|
||||
router.push('detay/' + row.id)
|
||||
}
|
||||
|
||||
onBeforeMount(async () => {
|
||||
await appUserUnitService.GetAppUserUnitList()
|
||||
await appUserRoleService.GetAppUserRoleList()
|
||||
|
||||
loaded.value = true
|
||||
})
|
||||
</script>
|
||||
12
src/module/kullanicilar/views/KullaniciRolleri.vue
Normal file
12
src/module/kullanicilar/views/KullaniciRolleri.vue
Normal file
@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<AdminLayout>
|
||||
<Breadcrumb current-page-text="Kullanıcı Rolleri" />
|
||||
<section class="section-list form-inner-content-left">
|
||||
<form-kullanici-rolleri />
|
||||
</section>
|
||||
</AdminLayout>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import AdminLayout from '@/layouts/AdminLayout.vue'
|
||||
import FormKullaniciRolleri from '../components/form/FormKullaniciRolleri.vue'
|
||||
</script>
|
||||
14
src/module/kullanicilar/views/KullaniciYeni.vue
Normal file
14
src/module/kullanicilar/views/KullaniciYeni.vue
Normal file
@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<AdminLayout>
|
||||
<Breadcrumb current-page-text="Yeni Kullanici" />
|
||||
<div class="form-content">
|
||||
<div class="form-inner-content form-inner-content-left">
|
||||
<form-kullanici-bilgileri />
|
||||
</div>
|
||||
</div>
|
||||
</AdminLayout>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import AdminLayout from '@/layouts/AdminLayout.vue'
|
||||
import FormKullaniciBilgileri from '../components/form/FormKullaniciBilgileri.vue'
|
||||
</script>
|
||||
Reference in New Issue
Block a user