fix insignia
This commit is contained in:
parent
dd43246ebe
commit
0fd3e8e893
3 changed files with 10 additions and 5 deletions
|
|
@ -853,10 +853,13 @@ const employeeClass = ref<string>("");
|
|||
* @param id id ที่ต้องการดู
|
||||
*/
|
||||
function onClickViewInfo(type: string, id: string, empClass: string) {
|
||||
console.log(empClass);
|
||||
|
||||
infoType.value = type;
|
||||
profileId.value = id;
|
||||
modalDialogInfo.value = true;
|
||||
employeeClass.value = empClass === "officer" ? "" : "-employee";
|
||||
employeeClass.value =
|
||||
empClass.toLocaleLowerCase() === "officer" ? "" : "-employee";
|
||||
}
|
||||
|
||||
/** Hook*/
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
insigniaLevel: e.level ? e.level : "",
|
||||
dateSend: e.requestDate ? date2Thai(e.requestDate) : null,
|
||||
requestNote: e.requestNote ? e.requestNote : "",
|
||||
employeeType: profileType(e.profileType) || null,
|
||||
employeeType: profileType(e.profileType.toLocaleLowerCase()) || null,
|
||||
employeeClass: e.profileType,
|
||||
reason: e.reason ? e.reason : "",
|
||||
markDiscipline: e.markDiscipline,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue