mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:33:32 +09:00
fix : 첨부파일 UI 변경
This commit is contained in:
@@ -102,7 +102,7 @@ function getDetailList(arg){
|
||||
apprStat: req.apprStat,
|
||||
attendNm: req.attendNm
|
||||
})) //비고 데이터 없음, 승인일자 없음 todo
|
||||
console.log(" apprLine.value", apprLine.value)
|
||||
params.prcsAtts = arg.prcsAtts
|
||||
}
|
||||
|
||||
const updateState = async () => {
|
||||
@@ -141,6 +141,15 @@ const onChangeFinal = async () => {
|
||||
loading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
const onPrcsFileDownload = async (prcsNo: string, fileOrd: number, logiFnm: string) => {
|
||||
const link = document.createElement('a')
|
||||
link.href = `https://svcm.hmsn.ink/api/prcs/${prcsNo}/${fileOrd}` //todo
|
||||
link.setAttribute('download', logiFnm)
|
||||
link.setAttribute('target', '_blank')
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -317,22 +326,29 @@ const onChangeFinal = async () => {
|
||||
</tr>
|
||||
<tr>
|
||||
<td>첨부파일</td>
|
||||
<td colspan="3">
|
||||
<VField class="file has-name is-right">
|
||||
<div class="file-label">
|
||||
<input
|
||||
class="file-input"
|
||||
type="file"
|
||||
name="resume">
|
||||
<span class="file-cta">
|
||||
<span class="file-icon">
|
||||
<i class="fas fa-cloud-upload-alt"/>
|
||||
</span>
|
||||
<span class="file-label">첨부파일</span>
|
||||
</span>
|
||||
<span class="file-name light-text">2022.xls</span>
|
||||
<td colspan="4">
|
||||
<div class="column is-12">
|
||||
<VField>
|
||||
<VLabel>첨부파일</VLabel>
|
||||
<VControl>
|
||||
<div
|
||||
v-for="f in params.prcsAtts"
|
||||
:key="f.logiFnm"
|
||||
class="content estimate-file-wrapper"
|
||||
>
|
||||
<div class="estimate-file-name">
|
||||
{{ f.logiFnm }}{{" ("}}{{Math.ceil(f.size / 1024)}}kb{{")"}}
|
||||
</div>
|
||||
<div class="estimate-file-size">
|
||||
|
||||
</div>
|
||||
<div>
|
||||
<i class="fa fa-download estimate-file-download" @click="onPrcsFileDownload(f.prcsNo, f.fileOrd, f.logiFnm)" />
|
||||
</div>
|
||||
</div>
|
||||
</VControl>
|
||||
</VField>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user