Merge branch 'develop' into devTee

This commit is contained in:
STW_TTTY\stwtt 2024-09-10 16:04:36 +07:00
commit 895843d60d
13 changed files with 91 additions and 4 deletions

View file

@ -0,0 +1,5 @@
<script setup lang="ts"></script>
<template>
<div>รายละเอยดคำส</div>
</template>

View file

@ -0,0 +1,5 @@
<script setup lang="ts"></script>
<template>
<div>รายชอผกออกคำส</div>
</template>

View file

@ -0,0 +1,5 @@
<script setup lang="ts"></script>
<template>
<div>รายชอผไดบสำเนาคำส</div>
</template>

View file

@ -0,0 +1,5 @@
<script setup lang="ts"></script>
<template>
<div>คำสงและบญชแนบทาย</div>
</template>

View file

@ -0,0 +1,10 @@
interface Pagination {
rowsPerPage: number;
}
interface DataOption {
id: string;
name: string;
}
export type { Pagination, DataOption };

View file

@ -0,0 +1 @@
export type {};

View file

@ -0,0 +1 @@
export type {};

View file

@ -0,0 +1,25 @@
const listPage = () => import("@/modules/18_command/views/lists.vue");
const detailPage = () => import("@/modules/18_command/views/detail.vue");
export default [
{
path: "/command",
name: "commandListPage",
component: listPage,
meta: {
Auth: true,
Key: "COMMAND",
Role: "STAFF",
},
},
{
path: "/command/:id",
name: "commandDetailPage",
component: detailPage,
meta: {
Auth: true,
Key: "COMMAND",
Role: "STAFF",
},
},
];

View file

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

View file

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

View file

@ -0,0 +1,11 @@
<script setup lang="ts">
import { onMounted } from "vue";
onMounted(() => {
console.log("mounted");
});
</script>
<template>detail</template>
<style scoped></style>

View file

@ -0,0 +1,11 @@
<script setup lang="ts">
import { onMounted } from "vue";
onMounted(() => {
console.log("mounted");
});
</script>
<template>tabs / lists</template>
<style scoped></style>

View file

@ -27,6 +27,7 @@ import ModuleKPI from "@/modules/14_KPI/router";
import ModuleDevelopment from "@/modules/15_development/router";
import ModuleSupport from "@/modules/00_support/router";
import ModuleActing from "@/modules/17_acting/router";
import ModuleCommand from "@/modules/18_command/router";
// TODO: ใช้หรือไม่?
import { authenticated } from "@/plugins/auth";
@ -74,6 +75,7 @@ const router = createRouter({
...ModuleDevelopment,
...ModuleSupport,
...ModuleActing,
...ModuleCommand,
],
},
/**
@ -120,11 +122,7 @@ router.beforeEach(async (to, from, next) => {
const checkAuthen = await authenticated();
if (!checkAuthen && to.meta.Auth) {
router.push({ name: "loginMain" });
} else {
next();
}
} else {
next();
}
next();
});