Merge branch 'develop' into devTee
This commit is contained in:
commit
895843d60d
13 changed files with 91 additions and 4 deletions
5
src/modules/18_command/components/Step/1_Detail.vue
Normal file
5
src/modules/18_command/components/Step/1_Detail.vue
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<script setup lang="ts"></script>
|
||||
|
||||
<template>
|
||||
<div>รายละเอียดคำสั่ง</div>
|
||||
</template>
|
||||
5
src/modules/18_command/components/Step/2_ListPersons.vue
Normal file
5
src/modules/18_command/components/Step/2_ListPersons.vue
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<script setup lang="ts"></script>
|
||||
|
||||
<template>
|
||||
<div>รายชื่อผู้ถูกออกคำสั่ง</div>
|
||||
</template>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<script setup lang="ts"></script>
|
||||
|
||||
<template>
|
||||
<div>รายชื่อผู้ได้รับสำเนาคำสั่ง</div>
|
||||
</template>
|
||||
5
src/modules/18_command/components/Step/4_Attached.vue
Normal file
5
src/modules/18_command/components/Step/4_Attached.vue
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<script setup lang="ts"></script>
|
||||
|
||||
<template>
|
||||
<div>คำสั่งและบัญชีแนบท้าย</div>
|
||||
</template>
|
||||
10
src/modules/18_command/interface/index/Main.ts
Normal file
10
src/modules/18_command/interface/index/Main.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
interface Pagination {
|
||||
rowsPerPage: number;
|
||||
}
|
||||
|
||||
interface DataOption {
|
||||
id: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export type { Pagination, DataOption };
|
||||
1
src/modules/18_command/interface/request/Main.ts
Normal file
1
src/modules/18_command/interface/request/Main.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export type {};
|
||||
1
src/modules/18_command/interface/response/Main.ts
Normal file
1
src/modules/18_command/interface/response/Main.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export type {};
|
||||
25
src/modules/18_command/router.ts
Normal file
25
src/modules/18_command/router.ts
Normal 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",
|
||||
},
|
||||
},
|
||||
];
|
||||
5
src/modules/18_command/store/DetailStore.ts
Normal file
5
src/modules/18_command/store/DetailStore.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const usePositionEmp = defineStore("commandDetailStore", () => {
|
||||
return {};
|
||||
});
|
||||
5
src/modules/18_command/store/ListStore.ts
Normal file
5
src/modules/18_command/store/ListStore.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const usePositionEmp = defineStore("commandListStore", () => {
|
||||
return {};
|
||||
});
|
||||
11
src/modules/18_command/views/detail.vue
Normal file
11
src/modules/18_command/views/detail.vue
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<script setup lang="ts">
|
||||
import { onMounted } from "vue";
|
||||
|
||||
onMounted(() => {
|
||||
console.log("mounted");
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>detail</template>
|
||||
|
||||
<style scoped></style>
|
||||
11
src/modules/18_command/views/lists.vue
Normal file
11
src/modules/18_command/views/lists.vue
Normal 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>
|
||||
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue