Perubahan UI Halaman Laporan Kegiatan
This commit is contained in:
@@ -242,8 +242,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
<th>NIP</th>
|
||||
<th>Nama</th>
|
||||
<th>Pegawai</th>
|
||||
<th>Posisi</th>
|
||||
<th>Syarat</th>
|
||||
<th>Jangka Waktu</th>
|
||||
@@ -749,15 +748,10 @@
|
||||
searchable: false,
|
||||
},
|
||||
{
|
||||
data: 'id_pelaksana',
|
||||
name: 'id_pelaksana',
|
||||
orderable: true,
|
||||
searchable: true,
|
||||
className: 'text-center'
|
||||
},
|
||||
{
|
||||
data: 'nama_pelaksana',
|
||||
name: 'nama_pelaksana',
|
||||
data: 'info_pegawai',
|
||||
name: 'pencarian_pegawai',
|
||||
className: 'align-middle',
|
||||
width: '26.5%',
|
||||
orderable: true,
|
||||
searchable: true,
|
||||
},
|
||||
@@ -835,12 +829,12 @@
|
||||
.nama === 'laporan kegiatan').length;
|
||||
|
||||
if (!firstData.posisi) {
|
||||
table.column(3).visible(false);
|
||||
table.column(2).visible(false);
|
||||
}
|
||||
|
||||
if (laporanSyaratCount > 0) {
|
||||
table.column(7).visible(false);
|
||||
table.column(8).visible(false);
|
||||
table.column(9).visible(false);
|
||||
}
|
||||
|
||||
$('#' + tableId).data('is-shared', laporanSyaratCount > 0);
|
||||
|
||||
@@ -185,8 +185,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
<th>NIP</th>
|
||||
<th>Nama</th>
|
||||
<th>Pegawai</th>
|
||||
<th>Posisi</th>
|
||||
<th>Syarat</th>
|
||||
<th>Jangka Waktu</th>
|
||||
@@ -685,15 +684,10 @@
|
||||
searchable: false,
|
||||
},
|
||||
{
|
||||
data: 'id_pelaksana',
|
||||
name: 'id_pelaksana',
|
||||
orderable: true,
|
||||
searchable: true,
|
||||
className: 'text-center'
|
||||
},
|
||||
{
|
||||
data: 'nama_pelaksana',
|
||||
name: 'nama_pelaksana',
|
||||
data: 'info_pegawai',
|
||||
name: 'pencarian_pegawai',
|
||||
className: 'align-middle',
|
||||
width: '26.5%',
|
||||
orderable: true,
|
||||
searchable: true,
|
||||
},
|
||||
@@ -766,7 +760,7 @@
|
||||
|
||||
var firstData = kegiatan.anggota && kegiatan.anggota.length > 0 ? kegiatan.anggota[0] : null;
|
||||
if (firstData && !firstData.posisi) {
|
||||
table.column(3).visible(false);
|
||||
table.column(2).visible(false);
|
||||
}
|
||||
|
||||
var laporanSyaratCount = 0;
|
||||
|
||||
@@ -252,8 +252,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
<th>NIP</th>
|
||||
<th>Nama</th>
|
||||
<th>Pegawai</th>
|
||||
<th>Posisi</th>
|
||||
<th>Syarat</th>
|
||||
<th>Jangka Waktu</th>
|
||||
@@ -797,15 +796,10 @@
|
||||
searchable: false,
|
||||
},
|
||||
{
|
||||
data: 'id_pelaksana',
|
||||
name: 'id_pelaksana',
|
||||
orderable: true,
|
||||
searchable: true,
|
||||
className: 'text-center'
|
||||
},
|
||||
{
|
||||
data: 'nama_pelaksana',
|
||||
name: 'nama_pelaksana',
|
||||
data: 'info_pegawai',
|
||||
name: 'pencarian_pegawai',
|
||||
className: 'align-middle',
|
||||
width: '26.5%',
|
||||
orderable: true,
|
||||
searchable: true,
|
||||
},
|
||||
@@ -880,11 +874,11 @@
|
||||
const isInEditJumlah = editJumlahRubrikIds.includes(firstData.id_rubrik);
|
||||
|
||||
if (!firstData.posisi) {
|
||||
table.column(3).visible(false);
|
||||
table.column(2).visible(false);
|
||||
}
|
||||
|
||||
if (!isInEditJumlah) {
|
||||
table.column(6).visible(false);
|
||||
table.column(5).visible(false);
|
||||
}
|
||||
|
||||
const hasLaporanKegiatan = firstData.rubrik &&
|
||||
|
||||
@@ -159,8 +159,7 @@
|
||||
</div>
|
||||
</th>
|
||||
<th>No</th>
|
||||
<th>Nama</th>
|
||||
<th>NIP</th>
|
||||
<th>Pegawai</th>
|
||||
<th>Posisi</th>
|
||||
<th>Jabatan Tugas Tambahan</th>
|
||||
<th>Jangka Waktu</th>
|
||||
@@ -598,18 +597,13 @@
|
||||
className: 'text-center'
|
||||
},
|
||||
{
|
||||
data: 'nama_pelaksana',
|
||||
name: 'nama_pelaksana',
|
||||
data: 'info_pegawai',
|
||||
name: 'pencarian_pegawai',
|
||||
className: 'align-middle',
|
||||
width: '26.5%',
|
||||
orderable: true,
|
||||
searchable: true,
|
||||
},
|
||||
{
|
||||
data: 'id_pelaksana',
|
||||
name: 'id_pelaksana',
|
||||
orderable: true,
|
||||
searchable: true,
|
||||
className: 'text-center'
|
||||
},
|
||||
{
|
||||
data: 'posisi',
|
||||
name: 'posisi',
|
||||
@@ -672,16 +666,16 @@
|
||||
.nama === 'laporan kegiatan').length;
|
||||
|
||||
if (!firstData.posisi) {
|
||||
table.column(4).visible(false);
|
||||
table.column(3).visible(false);
|
||||
}
|
||||
|
||||
if (!isInEditJumlah) {
|
||||
table.column(8).visible(false);
|
||||
table.column(7).visible(false);
|
||||
}
|
||||
|
||||
if (laporanSyaratCount > 0) {
|
||||
table.column(7).visible(false);
|
||||
table.column(10).visible(false);
|
||||
table.column(6).visible(false);
|
||||
table.column(9).visible(false);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user