เพิ่ม ui เมนูรายการคำสั่งและ Template

This commit is contained in:
Warunee Tamkoo 2024-09-04 13:54:50 +07:00
parent 6c72c90524
commit 3b9df73811
8 changed files with 45 additions and 0 deletions

View file

@ -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 };

View file

@ -0,0 +1,5 @@
interface Pagination {
rowsPerPage: number;
}
export type { Pagination };

View file

@ -0,0 +1,7 @@
interface DataListsObject {
id: number;
count: number;
name: string;
}
export type { DataListsObject };

View file

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

View 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"],
},
},
];

View file

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

View file

@ -0,0 +1,5 @@
<script setup lang="ts"></script>
<template>รายการคำสงและ Template</template>
<style lang="scss" scoped></style>

View file

@ -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,
],
},
/**