แก้การ uploadfile leave

This commit is contained in:
AnandaTon 2023-08-28 10:44:54 +07:00
parent 3193c4a029
commit e5af4ea14f
2 changed files with 18 additions and 17 deletions

View file

@ -176,7 +176,7 @@ const fectDataresign = async (id: string) => {
.then((res: any) => {
let data = res.data.result
// console.log(data);
;(tranferOrg.value = data.location), (dateCommand.value = data.sendDate), (dateLeave.value = data.activeDate), (noteReason.value = data.reason), (files.value = data.file)
;(tranferOrg.value = data.location), (dateCommand.value = data.sendDate), (dateLeave.value = data.activeDate), (noteReason.value = data.reason), (files.value = data.docs)
})
.catch((e: any) => {
console.log(e)
@ -189,6 +189,7 @@ const fectDataresign = async (id: string) => {
const fileUploadDoc = async (file: any) => {
fileDocDataUpload.value.push(file)
nameFile.value = file[0].name
files.value = file
}
</script>