fixing key auth registry
This commit is contained in:
parent
f0a6b8d71e
commit
89271f844d
3 changed files with 3 additions and 8 deletions
|
|
@ -32,7 +32,7 @@ export default [
|
||||||
component: listPage,
|
component: listPage,
|
||||||
meta: {
|
meta: {
|
||||||
Auth: true,
|
Auth: true,
|
||||||
Key: "SYS_REGISTRY",
|
Key: "SYS_REGISTRY_EMP",
|
||||||
Role: "STAFF",
|
Role: "STAFF",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,6 @@ function fetchType() {
|
||||||
http
|
http
|
||||||
.get(config.API.orgPosType)
|
.get(config.API.orgPosType)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("this fetchType", res.data.result);
|
|
||||||
store.fetchType(res.data.result);
|
store.fetchType(res.data.result);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
@ -89,8 +88,6 @@ function fetchOptionGroup() {
|
||||||
http
|
http
|
||||||
.get(config.API.orgEmployeeType)
|
.get(config.API.orgEmployeeType)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log("this fetchOptionGroup===>", res.data.result);
|
|
||||||
|
|
||||||
store.fetchType(res.data.result);
|
store.fetchType(res.data.result);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|
@ -241,8 +238,6 @@ async function selectType() {
|
||||||
empType.value = await (route.name == "registryNew" ? "officer" : "perm");
|
empType.value = await (route.name == "registryNew" ? "officer" : "perm");
|
||||||
formFilter.page = 1;
|
formFilter.page = 1;
|
||||||
|
|
||||||
console.log("empType===>", empType.value);
|
|
||||||
|
|
||||||
labelOption.posType = "ทั้งหมด";
|
labelOption.posType = "ทั้งหมด";
|
||||||
labelOption.posLevel = "ทั้งหมด";
|
labelOption.posLevel = "ทั้งหมด";
|
||||||
if (empType.value !== "officer") {
|
if (empType.value !== "officer") {
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ export default [
|
||||||
component: Main,
|
component: Main,
|
||||||
meta: {
|
meta: {
|
||||||
Auth: true,
|
Auth: true,
|
||||||
Key: "SYS_REGISTRY_EMP",
|
Key: "SYS_REGISTRY_TEMP",
|
||||||
Role: "STAFF",
|
Role: "STAFF",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -33,7 +33,7 @@ export default [
|
||||||
component: DetailView,
|
component: DetailView,
|
||||||
meta: {
|
meta: {
|
||||||
Auth: true,
|
Auth: true,
|
||||||
Key: "SYS_REGISTRY_EMP",
|
Key: "SYS_REGISTRY_TEMP",
|
||||||
Role: "STAFF",
|
Role: "STAFF",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue