btn download
This commit is contained in:
parent
9d05105e02
commit
98fa262553
1 changed files with 21 additions and 2 deletions
|
|
@ -37,6 +37,7 @@ const props = defineProps({
|
|||
fecthlistInsignia: Function,
|
||||
dateCheckReceive: String,
|
||||
dateCheckReturn: String,
|
||||
|
||||
dataModal: Object,
|
||||
});
|
||||
// reset วันที่ประกาศราชกิจจานุเบกษา
|
||||
|
|
@ -126,6 +127,8 @@ watch(props, () => {
|
|||
Datereceive.value = props.dataModal.dateReceiveInsignia;
|
||||
Datereturn.value = props.dataModal.dateReturnInsignia;
|
||||
OrganazationId.value = props.dataModal.orgReceiveInsignia;
|
||||
files.value = props.dataModal.docReceiveInsignia
|
||||
filesReturn.value =props.dataModal.docReturnInsignia
|
||||
OrganazationId2.value =
|
||||
Datereturn.value != null
|
||||
? props.dataModal.orgReturnInsignia == null ||
|
||||
|
|
@ -211,7 +214,7 @@ onMounted(() => {
|
|||
</datepicker>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<div class="col-xs-12 col-sm-4" v-if="files === null">
|
||||
<q-file
|
||||
outlined
|
||||
dense
|
||||
|
|
@ -245,6 +248,14 @@ onMounted(() => {
|
|||
:disable="dateCheckReceive !== null"
|
||||
/>
|
||||
</div>
|
||||
<q-btn
|
||||
type="a"
|
||||
target="_blank"
|
||||
:href="files"
|
||||
size="md" icon="mdi-download" flat round color="primary"
|
||||
>
|
||||
<q-tooltip>ดาวน์โหลดเอกสาร รับเครื่องราชฯ</q-tooltip>
|
||||
</q-btn>
|
||||
</div>
|
||||
|
||||
<div
|
||||
|
|
@ -300,7 +311,7 @@ onMounted(() => {
|
|||
</template>
|
||||
</datepicker>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-4">
|
||||
<div class="col-xs-12 col-sm-4" v-if="filesReturn === null">
|
||||
<q-file
|
||||
outlined
|
||||
dense
|
||||
|
|
@ -334,6 +345,14 @@ onMounted(() => {
|
|||
:disable="dateCheckReturn !== null"
|
||||
/>
|
||||
</div>
|
||||
<q-btn
|
||||
type="a"
|
||||
target="_blank"
|
||||
:href="filesReturn"
|
||||
size="md" icon="mdi-download" flat round color="primary"
|
||||
>
|
||||
<q-tooltip>ดาวน์โหลดเอกสาร คืนเครื่องราชฯ</q-tooltip>
|
||||
</q-btn>
|
||||
</div>
|
||||
</div>
|
||||
</q-form>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue