|
|
|
@ -1,6 +1,7 @@
|
|
|
|
<script setup>
|
|
|
|
<script setup>
|
|
|
|
import { defineProps, ref, onMounted, onBeforeUnmount } from 'vue'
|
|
|
|
import { defineProps, ref, onMounted, onBeforeUnmount } from 'vue'
|
|
|
|
import * as bootstrap from 'bootstrap'
|
|
|
|
import * as bootstrap from 'bootstrap'
|
|
|
|
|
|
|
|
import * as XSLX from 'xlsx'
|
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
const props = defineProps({
|
|
|
|
modalId: String,
|
|
|
|
modalId: String,
|
|
|
|
@ -54,6 +55,11 @@ function close() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function excelExport() {
|
|
|
|
|
|
|
|
let sheet = XSLX.utils.table_to_sheet(document.getElementById(props.modalId + 'Table'))
|
|
|
|
|
|
|
|
XSLX.writeFile(sheet, props.dto.senderPostmanId + '.xlsx')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
defineExpose({
|
|
|
|
open,
|
|
|
|
open,
|
|
|
|
close,
|
|
|
|
close,
|
|
|
|
@ -66,13 +72,16 @@ defineExpose({
|
|
|
|
<div class="modal-dialog modal-xl">
|
|
|
|
<div class="modal-dialog modal-xl">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h1 class="modal-title fs-5" :id="props.modalId + 'Label'">{{ props.dto.senderAgentId }} <i class="bi bi-arrow-right"></i> {{ props.dto.recipientAgentId }}</h1>
|
|
|
|
<h1 class="modal-title fs-5" :id="props.modalId + 'Label'">
|
|
|
|
|
|
|
|
{{ props.dto.senderAgentId }} <i class="bi bi-arrow-right"></i> {{ props.dto.recipientAgentId }}
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-success" @click="excelExport">EXCEL</button>
|
|
|
|
|
|
|
|
</h1>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="col-12">
|
|
|
|
<table class="table table-striped table-bordered align-middle fs-7">
|
|
|
|
<table class="table table-striped table-bordered table-hover table-sm align-middle fs-7" :id="props.modalId + 'Table'">
|
|
|
|
<thead>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="col" class="text-center" v-if="columnList.length > 0" v-for="columnName in columnList">{{ columnName }}</th>
|
|
|
|
<th scope="col" class="text-center" v-if="columnList.length > 0" v-for="columnName in columnList">{{ columnName }}</th>
|
|
|
|
|