Dung Diego

up

......@@ -52,25 +52,39 @@
<input type="file" ref="pdf" accept=".pdf" style="display:none" @change="upload_pdf">
</div></div>
<div class="row mt-3">
<div class="col" v-for="(value, key) in order">
<span>@{{ key }} @{{ value }}</span>
<div
class="col"
v-for="field in mst_field.filter(f => [0, 3].includes(f.field_type))"
:key="field.field_name"
>
<strong>@{{ field.name }}</strong> :
@{{ row[field.field_name] }}
</div>
</div>
<div class="row mt-3" v-if="table.length">
<div class="row mt-3" >
<div class="col">
<table>
<table class="table table-bordered">
<thead>
<tr>
<th v-for="(value, key) in table[0]" :key="key">
@{{ key }}
<th
v-for="field in mst_field.filter(f => [1, 2].includes(f.field_type))"
:key="field.field_name"
>
@{{ field.name }}
</th>
</tr>
</thead>
<tbody>
<tr v-for="(item, index) in table" :key="index">
<td v-for="(value, key) in table[0]" :key="key">
@{{ item[key] }}
<tr
v-for="(item, index) in table"
:key="index"
>
<td
v-for="field in mst_field.filter(f => [1, 2].includes(f.field_type))"
:key="field.field_name"
>
@{{ item[field.field_name] }}
</td>
</tr>
</tbody>
......