เพิ่ม ui เมนูรายการคำสั่งและ Template
This commit is contained in:
parent
6c72c90524
commit
3b9df73811
8 changed files with 45 additions and 0 deletions
|
|
@ -126,6 +126,14 @@ const menuList = readonly<any[]>([
|
|||
path: "viewSystem",
|
||||
role: ["SUPER_ADMIN", "ADMIN"],
|
||||
},
|
||||
{
|
||||
key: 6,
|
||||
icon: "mdi-file-document-outline",
|
||||
activeIcon: "mdi-file-document-outline",
|
||||
label: "รายการคำสั่งและ Template",
|
||||
path: "commandTemplate",
|
||||
role: ["SUPER_ADMIN", "ADMIN"],
|
||||
},
|
||||
]);
|
||||
|
||||
export { menuList };
|
||||
|
|
|
|||
5
src/modules/05_command/interface/index/Main.ts
Normal file
5
src/modules/05_command/interface/index/Main.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
interface Pagination {
|
||||
rowsPerPage: number;
|
||||
}
|
||||
|
||||
export type { Pagination };
|
||||
7
src/modules/05_command/interface/request/Main.ts
Normal file
7
src/modules/05_command/interface/request/Main.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
interface DataListsObject {
|
||||
id: number;
|
||||
count: number;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export type { DataListsObject };
|
||||
1
src/modules/05_command/interface/response/Main.ts
Normal file
1
src/modules/05_command/interface/response/Main.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export type {};
|
||||
12
src/modules/05_command/router.ts
Normal file
12
src/modules/05_command/router.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
const ListsPage = () => import("@/modules/05_command/views/lists.vue");
|
||||
|
||||
export default [
|
||||
{
|
||||
path: "/command-template",
|
||||
name: "commandTemplate",
|
||||
component: ListsPage,
|
||||
meta: {
|
||||
Role: ["SUPER_ADMIN", "ADMIN"],
|
||||
},
|
||||
},
|
||||
];
|
||||
5
src/modules/05_command/stores/main.ts
Normal file
5
src/modules/05_command/stores/main.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { defineStore } from "pinia";
|
||||
|
||||
export const useDataStore = defineStore("commandStore", () => {
|
||||
return {};
|
||||
});
|
||||
5
src/modules/05_command/views/lists.vue
Normal file
5
src/modules/05_command/views/lists.vue
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<script setup lang="ts"></script>
|
||||
|
||||
<template>รายการคำสั่งและ Template</template>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
|
@ -9,6 +9,7 @@ import ModuleMetadata from "@/modules/01_metadata/router";
|
|||
import ModuleUser from "@/modules/02_users/router";
|
||||
import ModuleLogs from "@/modules/03_logs/router";
|
||||
import ModuleSystem from "@/modules/04_system/router";
|
||||
import ModuleCommand from "@/modules/05_command/router";
|
||||
|
||||
// TODO: ใช้หรือไม่?
|
||||
import { authenticated, logout } from "@/plugins/auth";
|
||||
|
|
@ -35,6 +36,7 @@ const router = createRouter({
|
|||
...ModuleUser,
|
||||
...ModuleLogs,
|
||||
...ModuleSystem,
|
||||
...ModuleCommand,
|
||||
],
|
||||
},
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue