fixing key auth registry

This commit is contained in:
Warunee Tamkoo 2024-08-09 11:50:26 +07:00
parent f0a6b8d71e
commit 89271f844d
3 changed files with 3 additions and 8 deletions

View file

@ -32,7 +32,7 @@ export default [
component: listPage,
meta: {
Auth: true,
Key: "SYS_REGISTRY",
Key: "SYS_REGISTRY_EMP",
Role: "STAFF",
},
},

View file

@ -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") {

View file

@ -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",
},
},