From 89271f844d0242cee6f3e27b72bc2f345a2ed5e3 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 9 Aug 2024 11:50:26 +0700 Subject: [PATCH] fixing key auth registry --- src/modules/04_registryPerson/router.ts | 2 +- src/modules/04_registryPerson/views/list.vue | 5 ----- src/modules/08_registryEmployee/router.ts | 4 ++-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/modules/04_registryPerson/router.ts b/src/modules/04_registryPerson/router.ts index c8277a342..19878364a 100644 --- a/src/modules/04_registryPerson/router.ts +++ b/src/modules/04_registryPerson/router.ts @@ -32,7 +32,7 @@ export default [ component: listPage, meta: { Auth: true, - Key: "SYS_REGISTRY", + Key: "SYS_REGISTRY_EMP", Role: "STAFF", }, }, diff --git a/src/modules/04_registryPerson/views/list.vue b/src/modules/04_registryPerson/views/list.vue index 4f325eb65..608033c40 100644 --- a/src/modules/04_registryPerson/views/list.vue +++ b/src/modules/04_registryPerson/views/list.vue @@ -74,7 +74,6 @@ function fetchType() { http .get(config.API.orgPosType) .then((res) => { - console.log("this fetchType", res.data.result); store.fetchType(res.data.result); }) .catch((err) => { @@ -89,8 +88,6 @@ function fetchOptionGroup() { http .get(config.API.orgEmployeeType) .then((res) => { - console.log("this fetchOptionGroup===>", res.data.result); - store.fetchType(res.data.result); }) .catch((err) => { @@ -241,8 +238,6 @@ async function selectType() { empType.value = await (route.name == "registryNew" ? "officer" : "perm"); formFilter.page = 1; - console.log("empType===>", empType.value); - labelOption.posType = "ทั้งหมด"; labelOption.posLevel = "ทั้งหมด"; if (empType.value !== "officer") { diff --git a/src/modules/08_registryEmployee/router.ts b/src/modules/08_registryEmployee/router.ts index b1accf7df..1c13046e9 100644 --- a/src/modules/08_registryEmployee/router.ts +++ b/src/modules/08_registryEmployee/router.ts @@ -23,7 +23,7 @@ export default [ component: Main, meta: { Auth: true, - Key: "SYS_REGISTRY_EMP", + Key: "SYS_REGISTRY_TEMP", Role: "STAFF", }, }, @@ -33,7 +33,7 @@ export default [ component: DetailView, meta: { Auth: true, - Key: "SYS_REGISTRY_EMP", + Key: "SYS_REGISTRY_TEMP", Role: "STAFF", }, },