fixing report probation
This commit is contained in:
parent
af8937c29f
commit
ef6b015113
5 changed files with 23 additions and 24 deletions
|
|
@ -29,7 +29,7 @@ const mixin = useCounterMixin();
|
|||
const { showLoader, hideLoader, messageError } = mixin;
|
||||
const assignId = ref<string>(route.params.form.toString());
|
||||
const personalId = ref<string>(route.params.personalId.toString());
|
||||
const fullname = ref<string>("");
|
||||
// const fullname = ref<string>("");
|
||||
const tab = ref<string>("save1");
|
||||
const dataArrayNumber = ref<number>();
|
||||
const dataRole = ref<string>("mentor");
|
||||
|
|
@ -48,9 +48,7 @@ async function fecthAssign(id: string) {
|
|||
.get(config.API.formevaluateCommander(id))
|
||||
.then(async (res: any) => {
|
||||
await fecthdataAssign(res.data.data);
|
||||
fullname.value = res.data.data.experimentee
|
||||
? res.data.data.experimentee.name
|
||||
: "";
|
||||
// fullname.value = res.data.person ? res.data.person.name : "";
|
||||
dataArrayNumber.value = 1;
|
||||
})
|
||||
.catch((e: any) => {
|
||||
|
|
@ -99,7 +97,7 @@ async function FileDownload(type: string) {
|
|||
.then(async (res) => {
|
||||
downloadFile(
|
||||
res,
|
||||
`แบบบันทึกผล(ผู้บังคับบัญชา)_${fullname.value}_ครั้งที่${numTab.no}.${type}`
|
||||
`แบบบันทึกผล(ผู้บังคับบัญชา)_${probationStore.person.name}_ครั้งที่${numTab.no}.${type}`
|
||||
);
|
||||
})
|
||||
.catch(async (e) => {
|
||||
|
|
@ -118,7 +116,7 @@ async function FileDownload(type: string) {
|
|||
.then(async (res) => {
|
||||
downloadFile(
|
||||
res,
|
||||
`แบบบันทึกผล(ผู้บังคับบัญชา)_${fullname.value}_ครั้งที่${numTab.no}.${type}`
|
||||
`แบบบันทึกผล(ผู้บังคับบัญชา)_${probationStore.person.name}_ครั้งที่${numTab.no}.${type}`
|
||||
);
|
||||
})
|
||||
.catch(async (e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue