เพิ่มเมนู KPI

This commit is contained in:
Warunee Tamkoo 2024-04-04 14:14:25 +07:00
parent f1243f02cc
commit cf66659b9a
6 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,36 @@
/**
* Router
*/
const KPIPage = () => import("@/modules/08_KPI/views/main.vue");
const FormPage = () => import("@/modules/08_KPI/views/form.vue");
export default [
{
path: "/KPI",
name: "KPIMain",
component: KPIPage,
meta: {
Auth: true,
Key: [8],
},
},
{
path: "/KPI/add",
name: "KPIAdd",
component: FormPage,
meta: {
Auth: true,
Key: [8.1],
},
},
{
path: "/KPI/:id",
name: "KPIEdit",
component: FormPage,
meta: {
Auth: true,
Key: [8.2],
},
},
];

View file

@ -0,0 +1,5 @@
import { defineStore } from "pinia";
export const useKpiDataStore = defineStore("KPIDate", () => {
return {};
});

View file

@ -0,0 +1,28 @@
<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
</script>
<template>
<div class="col-12 row justify-center">
<div class="col-xs-12 col-sm-12 col-md-11">
<div class="toptitle text-white col-12 row items-center">
<q-btn
icon="mdi-arrow-left"
unelevated
round
dense
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/KPI`)"
/>
เพ/แกไข
</div>
<div class="col-12">
<q-card bordered class="q-pa-md"> เพ/แกไข </q-card>
</div>
</div>
</div>
</template>

View file

@ -0,0 +1,28 @@
<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
</script>
<template>
<div class="col-12 row justify-center">
<div class="col-xs-12 col-sm-12 col-md-11">
<div class="toptitle text-white col-12 row items-center">
<q-btn
icon="mdi-arrow-left"
unelevated
round
dense
flat
color="primary"
class="q-mr-sm"
@click="router.push(`/`)"
/>
KPI
</div>
<div class="col-12">
<q-card bordered class="q-pa-md"> หนาหล </q-card>
</div>
</div>
</div>
</template>