เพิ่มเมนู KPI
This commit is contained in:
parent
f1243f02cc
commit
cf66659b9a
6 changed files with 107 additions and 0 deletions
36
src/modules/08_KPI/router.ts
Normal file
36
src/modules/08_KPI/router.ts
Normal 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],
|
||||
},
|
||||
},
|
||||
];
|
||||
5
src/modules/08_KPI/store.ts
Normal file
5
src/modules/08_KPI/store.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const useKpiDataStore = defineStore("KPIDate", () => {
|
||||
return {};
|
||||
});
|
||||
28
src/modules/08_KPI/views/form.vue
Normal file
28
src/modules/08_KPI/views/form.vue
Normal 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>
|
||||
28
src/modules/08_KPI/views/main.vue
Normal file
28
src/modules/08_KPI/views/main.vue
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue