I'm new to Vue.js and I'm trying to merge rows with same value but my table isn't showing up correctly. I'm stuck, could anyone advise me?
async getNetworks(audId) {
try
{
const response = await this.axios.get("/s/teams/network-groupss?audId=" + audId);
if (!this.networkGroups[audId])
{
this.$set(this.networkGroups, audId, {});
this.$set(this.networkGroups[audId], 'isExpanded', false);
}
this.$set(this.networkGroups[audId], 'data', response.data ? response.data.data : []);
}
catch (error)
{
console.log(error.message);
}
}
<tbody class="network_Group">
<tr
v-for="(networkGroup) in networkGroups[team.id].data"
:key="networkGroup.id"
:class="{ odd2: index % 2 !== 0 }">
<td
class="text-center data-column first_row">
<span> {{ networkGroup.source }} </span>
</td>
<td class="text-center data-column">
<span> {{ networkGroup.name }} </span>
</td>
<td class="text-nowrap text-left breakAll">
<span> {{ networkGroup.accountId }}</span>
</td>
<td class="text-center data-column">
<span> {{ networkGroup.size }} </span>
</td>
</tr>
</tbody>
This is my table: Current table This is what I want: Table I want