ilk commit
This commit is contained in:
106
src/views/Dashboard.vue
Normal file
106
src/views/Dashboard.vue
Normal file
@ -0,0 +1,106 @@
|
||||
<template>
|
||||
<AdminLayout>
|
||||
<dash-piyango-liste
|
||||
v-if="loaded"
|
||||
title="Onay Bekleyen Piyangolar"
|
||||
listText="Piyango"
|
||||
icon="draws"
|
||||
dateKey="tarih"
|
||||
:total="onayBekleyenTotal"
|
||||
iconBack="waiting"
|
||||
:tableData="onayBekleyenPiyango"
|
||||
lineRoute="piyangolar/detay/"
|
||||
lineRouteKey="id" />
|
||||
<dash-piyango-liste
|
||||
v-if="loaded"
|
||||
title="İtiraz/Şikayet Edilen Piyangolar"
|
||||
listText="Piyango"
|
||||
icon="draws"
|
||||
dateKey="tarih"
|
||||
:total="itirazEdilenTotal"
|
||||
iconBack="alert"
|
||||
:tableData="itirazEdilenPiyango"
|
||||
lineRoute="piyangolar/detay/"
|
||||
lineRouteKey="id" />
|
||||
|
||||
<dash-piyango-liste
|
||||
v-if="loaded"
|
||||
title="Yaklaşan Piyangolar"
|
||||
listText="Piyango"
|
||||
icon="draws"
|
||||
dateKey="tarih"
|
||||
:total="yaklasanTotal"
|
||||
iconBack="next"
|
||||
:tableData="yaklasanPiyango"
|
||||
lineRoute="piyangolar/detay/"
|
||||
lineRouteKey="id" />
|
||||
|
||||
<dash-piyango-liste
|
||||
v-if="loaded"
|
||||
title="Biten Piyangolar"
|
||||
listText="Piyango"
|
||||
icon="draws"
|
||||
dateKey="tarih"
|
||||
:total="bitenTotal"
|
||||
iconBack="ok"
|
||||
:tableData="bitenPiyango"
|
||||
lineRoute="piyangolar/detay/"
|
||||
lineRouteKey="id" />
|
||||
</AdminLayout>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { ref, onBeforeMount } from 'vue'
|
||||
|
||||
import { useDataStore } from '@/stores/dataStore'
|
||||
const dataStore = useDataStore()
|
||||
import { useUsersStore } from '@/stores/usersStore'
|
||||
const usersStore = useUsersStore()
|
||||
import { usePageStore } from '@/stores/pageStore'
|
||||
const pageStore = usePageStore()
|
||||
|
||||
import AdminLayout from '@/layouts/AdminLayout.vue'
|
||||
import DashPiyangoListe from '@/components/DashPiyangoListe.vue'
|
||||
|
||||
const loaded = ref<boolean>(false)
|
||||
const onayBekleyenPiyango = ref<Record<string, any>[]>([])
|
||||
const onayBekleyenTotal = ref<number>(0)
|
||||
const itirazEdilenPiyango = ref<Record<string, any>[]>([])
|
||||
const itirazEdilenTotal = ref<number>(0)
|
||||
const yaklasanPiyango = ref<Record<string, any>[]>([])
|
||||
const yaklasanTotal = ref<number>(0)
|
||||
const bitenPiyango = ref<Record<string, any>[]>([])
|
||||
const bitenTotal = ref<number>(0)
|
||||
|
||||
const api = ref<string>('')
|
||||
|
||||
api.value = usersStore.isPanelUser
|
||||
? usersStore.isSuperAdmin || usersStore.isAccounting
|
||||
? 'Cekilis/Dashboard'
|
||||
: 'Cekilis/DashboardAtanan/' + usersStore.userId
|
||||
: 'Cekilis/Dashboard/' + usersStore.userId
|
||||
|
||||
onBeforeMount(async () => {
|
||||
let onayBekleyenData = await dataStore.dataGet(api.value, {
|
||||
params: { durum: 0 }
|
||||
})
|
||||
let itirazEdilenData = await dataStore.dataGet(api.value, {
|
||||
params: { durum: 1 }
|
||||
})
|
||||
let yaklasanData = await dataStore.dataGet(api.value, {
|
||||
params: { durum: 2 }
|
||||
})
|
||||
let bitenData = await dataStore.dataGet(api.value, {
|
||||
params: { durum: 3 }
|
||||
})
|
||||
onayBekleyenPiyango.value = onayBekleyenData.cekilisler
|
||||
onayBekleyenTotal.value = onayBekleyenData.totalCount
|
||||
itirazEdilenPiyango.value = itirazEdilenData.cekilisler
|
||||
itirazEdilenTotal.value = itirazEdilenData.totalCount
|
||||
yaklasanPiyango.value = yaklasanData.cekilisler
|
||||
yaklasanTotal.value = yaklasanData.totalCount
|
||||
bitenPiyango.value = bitenData.cekilisler
|
||||
bitenTotal.value = bitenData.totalCount
|
||||
|
||||
loaded.value = true
|
||||
})
|
||||
</script>
|
||||
76
src/views/contents/NotificationContent.vue
Normal file
76
src/views/contents/NotificationContent.vue
Normal file
@ -0,0 +1,76 @@
|
||||
<template>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="panel-content-item">
|
||||
<a href="#">
|
||||
<p>Yeni bildirim</p>
|
||||
<span class="panel-date">22.02.24 10:32</span>
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
</script>
|
||||
Reference in New Issue
Block a user