log logout
This commit is contained in:
parent
4d11bc01fc
commit
32b83298cd
3 changed files with 34 additions and 18 deletions
|
|
@ -28,9 +28,11 @@ export default {
|
||||||
dataUserAbilityByType: (type: string) => `${org}/profile${type}/ability/user`,
|
dataUserAbilityByType: (type: string) => `${org}/profile${type}/ability/user`,
|
||||||
|
|
||||||
dataUserGovernment: `${profileOrg}/government/user`,
|
dataUserGovernment: `${profileOrg}/government/user`,
|
||||||
dataUserGovernmentByType: (type: string) => `${org}/profile${type}/government/user`,
|
dataUserGovernmentByType: (type: string) =>
|
||||||
|
`${org}/profile${type}/government/user`,
|
||||||
dataUserDiscipline: `${profileOrg}/discipline/user`,
|
dataUserDiscipline: `${profileOrg}/discipline/user`,
|
||||||
dataUserDisciplineByType: (type: string) => `${org}/profile${type}/discipline/user`,
|
dataUserDisciplineByType: (type: string) =>
|
||||||
|
`${org}/profile${type}/discipline/user`,
|
||||||
dataUserLeave: `${profileOrg}/leave/user`,
|
dataUserLeave: `${profileOrg}/leave/user`,
|
||||||
dataUserLeaveByType: (type: string) => `${org}/profile${type}/leave/user`,
|
dataUserLeaveByType: (type: string) => `${org}/profile${type}/leave/user`,
|
||||||
dataUserDuty: `${profileOrg}/duty/user`,
|
dataUserDuty: `${profileOrg}/duty/user`,
|
||||||
|
|
@ -43,7 +45,8 @@ export default {
|
||||||
dataUserNopaidByType: (type: string) => `${org}/profile${type}/nopaid/user`,
|
dataUserNopaidByType: (type: string) => `${org}/profile${type}/nopaid/user`,
|
||||||
|
|
||||||
dataUserCertificate: (type: string) => `${profileOrg}/${type}/user`,
|
dataUserCertificate: (type: string) => `${profileOrg}/${type}/user`,
|
||||||
dataUserCertificateByType: (emType:string,type: string) => `${org}/profile${emType}/${type}/user`,
|
dataUserCertificateByType: (emType: string, type: string) =>
|
||||||
|
`${org}/profile${emType}/${type}/user`,
|
||||||
|
|
||||||
dataUserOther: `${profileOrg}/other/user`,
|
dataUserOther: `${profileOrg}/other/user`,
|
||||||
dataUserOtherByType: (type: string) => `${org}/profile${type}/other/user`,
|
dataUserOtherByType: (type: string) => `${org}/profile${type}/other/user`,
|
||||||
|
|
@ -73,25 +76,35 @@ export default {
|
||||||
`${profileOrg}${type}/government/history/user`,
|
`${profileOrg}${type}/government/history/user`,
|
||||||
dataUserDisciplineHistory: (id: string) =>
|
dataUserDisciplineHistory: (id: string) =>
|
||||||
`${profileOrg}/discipline/history/${id}`,
|
`${profileOrg}/discipline/history/${id}`,
|
||||||
dataUserDisciplineHistoryByType: (emType:string,id: string) => `${org}/profile${emType}/discipline/history/${id}`,
|
dataUserDisciplineHistoryByType: (emType: string, id: string) =>
|
||||||
|
`${org}/profile${emType}/discipline/history/${id}`,
|
||||||
dataUserLeaveHistory: (id: string) => `${profileOrg}/leave/history/${id}`,
|
dataUserLeaveHistory: (id: string) => `${profileOrg}/leave/history/${id}`,
|
||||||
dataUserLeaveHistoryByType: (emType:string,id: string) => `${org}/profile${emType}/leave/history/${id}`,
|
dataUserLeaveHistoryByType: (emType: string, id: string) =>
|
||||||
|
`${org}/profile${emType}/leave/history/${id}`,
|
||||||
dataUserDutyHistory: (id: string) => `${profileOrg}/duty/history/${id}`,
|
dataUserDutyHistory: (id: string) => `${profileOrg}/duty/history/${id}`,
|
||||||
dataUserDutyHistoryByType: (emType:string,id: string) => `${org}/profile${emType}/duty/history/${id}`,
|
dataUserDutyHistoryByType: (emType: string, id: string) =>
|
||||||
|
`${org}/profile${emType}/duty/history/${id}`,
|
||||||
|
|
||||||
dataUserSalaryHistory: (id: string) => `${profileOrg}/salary/history/${id}`,
|
dataUserSalaryHistory: (id: string) => `${profileOrg}/salary/history/${id}`,
|
||||||
dataUserSalaryHistoryByType: (emType:string,id: string) => `${org}/profile${emType}/salary/history/${id}`,
|
dataUserSalaryHistoryByType: (emType: string, id: string) =>
|
||||||
|
`${org}/profile${emType}/salary/history/${id}`,
|
||||||
dataUserSalaryNopaidHistory: (id: string) =>
|
dataUserSalaryNopaidHistory: (id: string) =>
|
||||||
`${profileOrg}/nopaid/history/${id}`,
|
`${profileOrg}/nopaid/history/${id}`,
|
||||||
dataUserSalaryNopaidHistoryByType: (emType:string,id: string) => `${org}/profile${emType}/nopaid/history/${id}`,
|
dataUserSalaryNopaidHistoryByType: (emType: string, id: string) =>
|
||||||
|
`${org}/profile${emType}/nopaid/history/${id}`,
|
||||||
|
|
||||||
dataUserCertificateHistory: (type: string, id: string) =>
|
dataUserCertificateHistory: (type: string, id: string) =>
|
||||||
`${profileOrg}/${type}/history/${id}`,
|
`${profileOrg}/${type}/history/${id}`,
|
||||||
dataUserCertificateHistoryByType: (emType:string,type:string,id: string) => `${org}/profile${emType}/${type}/history/${id}`,
|
dataUserCertificateHistoryByType: (
|
||||||
|
emType: string,
|
||||||
|
type: string,
|
||||||
|
id: string
|
||||||
|
) => `${org}/profile${emType}/${type}/history/${id}`,
|
||||||
dataUserHonorHistory: (type: string, emType: string, id: string) =>
|
dataUserHonorHistory: (type: string, emType: string, id: string) =>
|
||||||
`${profileOrg}${emType}/${type}/history/${id}`,
|
`${profileOrg}${emType}/${type}/history/${id}`,
|
||||||
dataUserOtherHistory: (id: string) => `${profileOrg}/other/history/${id}`,
|
dataUserOtherHistory: (id: string) => `${profileOrg}/other/history/${id}`,
|
||||||
dataUserOtherHistoryByType: (emType:string,id: string) => `${org}/profile${emType}/other/history/${id}`,
|
dataUserOtherHistoryByType: (emType: string, id: string) =>
|
||||||
|
`${org}/profile${emType}/other/history/${id}`,
|
||||||
|
|
||||||
orgCheckAvatar: (id: string) => `${profileOrg}/avatar/profileId/${id}`,
|
orgCheckAvatar: (id: string) => `${profileOrg}/avatar/profileId/${id}`,
|
||||||
orgSearchCommander: () => `${profileOrg}/search/commander`,
|
orgSearchCommander: () => `${profileOrg}/search/commander`,
|
||||||
|
|
@ -116,14 +129,18 @@ export default {
|
||||||
requestsEdit: `${profileOrg}/edit`,
|
requestsEdit: `${profileOrg}/edit`,
|
||||||
requestsEditByType: (type: string) => `${org}/profile${type}/edit`,
|
requestsEditByType: (type: string) => `${org}/profile${type}/edit`,
|
||||||
developmentUser: `${profileOrg}/development/user`,
|
developmentUser: `${profileOrg}/development/user`,
|
||||||
developmentUserByType: (type: string) => `${org}/profile${type}/development/user`,
|
developmentUserByType: (type: string) =>
|
||||||
|
`${org}/profile${type}/development/user`,
|
||||||
|
|
||||||
upDateNumber: `${profileOrg}/updatePhoneNumber/user`,
|
upDateNumber: `${profileOrg}/updatePhoneNumber/user`,
|
||||||
upDateNumberByType: (type: string) => `${org}/profile${type}/updatePhoneNumber/user`,
|
upDateNumberByType: (type: string) =>
|
||||||
|
`${org}/profile${type}/updatePhoneNumber/user`,
|
||||||
updateEmail: `${profileOrg}/updateEmail/user`,
|
updateEmail: `${profileOrg}/updateEmail/user`,
|
||||||
updateEmailByType: (type: string) => `${org}/profile${type}/updateEmail/user`,
|
updateEmailByType: (type: string) => `${org}/profile${type}/updateEmail/user`,
|
||||||
/**
|
/**
|
||||||
* workflow
|
* workflow
|
||||||
*/
|
*/
|
||||||
workflow: `${workflow}/`,
|
workflow: `${workflow}/`,
|
||||||
|
|
||||||
|
keycloakLogSSO: `${org}/keycloak/log/sso`,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@ async function checkUser() {
|
||||||
if (data.avatarName) {
|
if (data.avatarName) {
|
||||||
await getImg(data.profileId, data.avatarName);
|
await getImg(data.profileId, data.avatarName);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
dataStore.profileImg = avatar;
|
dataStore.profileImg = avatar;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -145,8 +144,9 @@ const doLogout = () => {
|
||||||
dialogConfirm(
|
dialogConfirm(
|
||||||
$q,
|
$q,
|
||||||
async () => {
|
async () => {
|
||||||
|
await http.post(config.API.keycloakLogSSO, { text: "ออกจากระบบ" });
|
||||||
// authen with client
|
// authen with client
|
||||||
logout();
|
await logout();
|
||||||
},
|
},
|
||||||
"ยืนยันการออกจากระบบ",
|
"ยืนยันการออกจากระบบ",
|
||||||
"ต้องการออกจากระบบใช่หรือไม่"
|
"ต้องการออกจากระบบใช่หรือไม่"
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,4 @@ export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
port: 3007,
|
port: 3007,
|
||||||
},
|
},
|
||||||
base: "./",
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue