This commit is contained in:
oat_dev 2024-07-10 15:10:12 +07:00
parent 8ed9388fc5
commit 22878cfc48
2 changed files with 34 additions and 32 deletions

View file

@ -9,12 +9,4 @@ export default [
Role: ["SUPER_ADMIN", "ADMIN"],
},
},
{
path: "/lists/:pathMatch(.*)*",
name: "viewLogs",
component: ListsPage,
meta: {
Role: ["SUPER_ADMIN", "ADMIN"],
},
},
];

View file

@ -4,13 +4,14 @@
/** importComponents*/
import CardComponents from "@/modules/03_logs/components/CardComponents.vue";
import LogTable from "@/modules/03_logs/components/LogTable.vue";
import { useRoute } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
import { link } from "fs";
import { ref } from "vue";
import { ref, onMounted } from "vue";
import { useCurrencyInput } from "vue-currency-input";
/** importStore*/
const route = useRoute();
/** use*/
const menuList = ref<{ icon: string; label: string; path: string }[]>([
@ -100,13 +101,40 @@ const menuList = ref<{ icon: string; label: string; path: string }[]>([
path: "lists?system=sso",
},
]);
onMounted(async () => {
console.log("");
});
</script>
<template>
<div>
<div class="q-pl-lg q-pb-lg text-h6">ประวจกรรม (Logs)</div>
<div class="row q-mb-lg">
<q-btn
flat
v-if="route.query.system"
round
class="q-mr-sm"
color="primary"
icon="mdi-arrow-left"
dense
to="lists"
>
</q-btn>
<div class="row items-center">
<span class="toptitle text-dark items-center q-mr-md">
ประวจกรรม (Logs)
</span>
<div
v-if="route.query.system"
class="toptitle text-primary items-center"
>
ระบบทะเบยนประว
</div>
</div>
</div>
<div class="row q-col-gutter-lg full-width">
<div v-if="!route.query.system" class="row q-col-gutter-lg full-width">
<div class="col-3" :key="index" v-for="(item, index) in menuList">
<CardComponents
class="cursor-pointer"
@ -119,25 +147,7 @@ const menuList = ref<{ icon: string; label: string; path: string }[]>([
</div>
</div>
<div class="row q-mb-lg">
<q-btn
flat
round
class="q-mr-sm"
color="primary"
icon="mdi-arrow-left"
dense
@click="console.log('test')"
>
</q-btn>
<div class="row items-center">
<span class="toptitle text-dark items-center q-mr-md">
ประวจกรรม (Logs)
</span>
<div class="toptitle text-primary items-center">ระบบทะเบยนประว</div>
</div>
</div>
<div>
<div v-if="route.query.system">
<LogTable />
</div>
</template>