Browse Source

kolom status template excel

master
jefry 2 years ago
parent
commit
a6c4334d67
5 changed files with 2 additions and 1 deletions
  1. BIN
      .DS_Store
  2. BIN
      public/.DS_Store
  3. +2
    -1
      public/js/page/dashboard.js
  4. BIN
      public/template/Absensi_Sharing_Template.xlsx
  5. BIN
      views/.DS_Store

BIN
.DS_Store View File


BIN
public/.DS_Store View File


+ 2
- 1
public/js/page/dashboard.js View File

@@ -902,7 +902,8 @@ $('#modal-form').on('shown.bs.modal', async function() {
const file = event.target.files[0];
const data = await file.arrayBuffer();
const workbook = XLSX.read(data);
const aoa = XLSX.utils.sheet_to_json(workbook.Sheets[workbook.SheetNames[0]], { header: 0 });
var aoa = XLSX.utils.sheet_to_json(workbook.Sheets[workbook.SheetNames[0]], { header: 0 });
aoa = aoa.filter((i)=>i["Status"]=='Hadir');
const container = document.getElementById('participantCounter');
container.innerHTML = `${aoa.length} Participant(s)`;
$("input[name='ParticipantList']").val(JSON.stringify(aoa));


BIN
public/template/Absensi_Sharing_Template.xlsx View File


BIN
views/.DS_Store View File


Loading…
Cancel
Save