Merge commit '8511baf411' into develop
# Conflicts: # src/modules/02_transfer/views/AddTransfer.vue # src/modules/03_leave/views/AddLeave.vue
This commit is contained in:
commit
e70ffe70a2
5 changed files with 258 additions and 205 deletions
|
|
@ -21,9 +21,7 @@
|
|||
accept=".jpg,.png,.pdf,.csv,.doc"
|
||||
url="http://localhost:4444/upload"
|
||||
label="เอกสารเพิ่มเติม"
|
||||
:color="routeName != 'addTransfer' ? 'grey-8': 'blue'"
|
||||
multiple
|
||||
:disable="routeName != 'addTransfer'"
|
||||
type="file"
|
||||
@added="fileUploadDoc"
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -336,6 +334,8 @@ const createTransfer = async () => {
|
|||
formData.append("Organization", tranferOrg.value)
|
||||
formData.append("Reason", noteReason.value)
|
||||
formData.append("file", files.value)
|
||||
console.log(files.value)
|
||||
|
||||
console.log(formData)
|
||||
await http
|
||||
.post(config.API.listtransfer(), formData)
|
||||
|
|
@ -369,7 +369,8 @@ const fecthDataTransfer = async (id: string) => {
|
|||
})
|
||||
}
|
||||
|
||||
const fileUploadDoc = async (files: any) => {
|
||||
fileDocDataUpload.value.push(files)
|
||||
const fileUploadDoc = async (file: any) => {
|
||||
fileDocDataUpload.value.push(file)
|
||||
files.value = file
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue