แก้ไข ไฟล์ หน้า tranfer/เพิ่ม เพิ่มอัพโหลดไฟล์ ในหน้า leave
This commit is contained in:
parent
94ef333bfc
commit
2b67d24b4d
3 changed files with 223 additions and 262 deletions
|
|
@ -22,7 +22,7 @@
|
|||
accept=".jpg,.png,.pdf,.csv,.doc"
|
||||
url="http://localhost:4444/upload"
|
||||
label="เอกสารเพิ่มเติม"
|
||||
multiple
|
||||
type="file"
|
||||
@added="fileUploadDoc"
|
||||
style="max-width: px"
|
||||
/>
|
||||
|
|
@ -336,6 +336,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 +371,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