https://i.sstatic.net/idhrw.png
columns: [
{
header: 'No',
dataKey: 'Index',
},
{ header: 'No Registrasi', dataKey: 'no_register' },
{ header: 'Kode Partai', dataKey: 'kode_partai' },
{ header: 'Sumber', dataKey: 'kode_partai' },
{ header: 'Tanggal Panen', dataKey: 'tanggal_panen' },
{ header: 'Tanggal Terima', dataKey: 'tanggal_penerima' },
],
{
"success": true,
"message": "Data ditemukan",
"data": [
{
"id": 15,
"user_id": 3,
"no_register": "KREO",
"kode_partai": "00PPPP",
"legal_source": "Terdaftar",
"jenis_sbw_kotor": "9000",
"tanggal_panen": "2022-02-10",
"tanggal_penerima": "2022-02-16",
"alamat": "jl kandir",
"no_kendaraan": "K 8992993 KW",
"jumlah_sbw_kotor": "9000",
"jumlah_pcs": "9000",
"jumlah_box": "90999",
"kadar_air": "9000",
"warna": "Cream",
"kondisi": "ok",
"status": "Adding",
"harga_kulak": "900000000",
"created_at": "2022-02-24T05:48:07.000000Z",
"updated_at": "2022-02-24T05:48:07.000000Z"
},
{
"id": 16,
"user_id": 3,
"no_register": "KREO",
"kode_partai": "00PPPP",
"legal_source": "Terdaftar",
"jenis_sbw_kotor": "9000",
"tanggal_panen": "2022-02-10",
"tanggal_penerima": "2022-02-16",
"alamat": "jl kandir",
"no_kendaraan": "K 8992993 KW",
"jumlah_sbw_kotor": "9000",
"jumlah_pcs": "9000",
"jumlah_box": "90999",
"kadar_air": "9000",
"warna": "Cream",
"kondisi": "ok",
"status": "Adding",
"harga_kulak": "900000000",
"created_at": "2022-02-24T05:48:07.000000Z",
"updated_at": "2022-02-24T05:48:07.000000Z"
}
]
}
I have attempted to utilize index + 1, but it does not seem to be effective. My goal is to fill the dataKey with sequential numbers based on the quantity of Arrays received from the api service's response. Is there another approach that can assist me in adding serial numbers in the 'NO' column? I am using Vue.js.