Update CSS styles and data handling in various components
This commit is contained in:
parent
75673fa297
commit
7605d470b4
@ -1261,6 +1261,10 @@ body {
|
|||||||
margin-bottom: 0.25rem;
|
margin-bottom: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mb-10 {
|
||||||
|
margin-bottom: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
.mb-2 {
|
.mb-2 {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
@ -1373,14 +1377,6 @@ body {
|
|||||||
margin-top: 1.5rem;
|
margin-top: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mb-5 {
|
|
||||||
margin-bottom: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mb-10 {
|
|
||||||
margin-bottom: 2.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.box-border {
|
.box-border {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
@ -357,14 +357,7 @@ const filterData = (params: any) => {
|
|||||||
})
|
})
|
||||||
onResult((queryResult) => {
|
onResult((queryResult) => {
|
||||||
if (queryResult.data != undefined) {
|
if (queryResult.data != undefined) {
|
||||||
queryResult.data.rekapitulasiAllGangguan.forEach((item: any) => {
|
data.value = queryResult.data.rekapitulasiAllGangguan
|
||||||
data.value = [
|
|
||||||
...data.value,
|
|
||||||
{
|
|
||||||
...item
|
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
console.log(queryResult.loading)
|
console.log(queryResult.loading)
|
||||||
console.log(queryResult.networkStatus)
|
console.log(queryResult.networkStatus)
|
||||||
|
@ -481,12 +481,10 @@ const filterData = (params: any) => {
|
|||||||
})
|
})
|
||||||
onResult((queryResult) => {
|
onResult((queryResult) => {
|
||||||
if (queryResult.data != undefined) {
|
if (queryResult.data != undefined) {
|
||||||
let no = 0
|
dataReal.value = queryResult.data.rekapitulasiPerJenisGangguan.map(
|
||||||
queryResult.data.rekapitulasiPerJenisGangguan.forEach((item: any) => {
|
(item: any, index: number) => {
|
||||||
dataReal.value = [
|
return {
|
||||||
...dataReal.value,
|
no: ++index,
|
||||||
{
|
|
||||||
no: ++no,
|
|
||||||
sub_kelompok: item.sub_kelompok,
|
sub_kelompok: item.sub_kelompok,
|
||||||
kode: item.kode,
|
kode: item.kode,
|
||||||
jenisGangguan: item.tipe_permasalahan,
|
jenisGangguan: item.tipe_permasalahan,
|
||||||
@ -526,8 +524,8 @@ const filterData = (params: any) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
})
|
)
|
||||||
}
|
}
|
||||||
console.log(queryResult.loading)
|
console.log(queryResult.loading)
|
||||||
console.log(queryResult.networkStatus)
|
console.log(queryResult.networkStatus)
|
||||||
|
@ -580,10 +580,9 @@ const filterData = (params: any) => {
|
|||||||
})
|
})
|
||||||
onResult((queryResult) => {
|
onResult((queryResult) => {
|
||||||
if (queryResult.data != undefined) {
|
if (queryResult.data != undefined) {
|
||||||
var i = 1
|
data.value = queryResult.data.rekapitulasiGangguanPerPosko.map((item: any, index: number) => {
|
||||||
queryResult.data.rekapitulasiGangguanPerPosko.forEach((item: any) => {
|
return {
|
||||||
const entry = {
|
no: ++index,
|
||||||
no: Number(i++),
|
|
||||||
nama_posko: item.nama_posko,
|
nama_posko: item.nama_posko,
|
||||||
laporan: {
|
laporan: {
|
||||||
total: item.total,
|
total: item.total,
|
||||||
@ -621,10 +620,7 @@ const filterData = (params: any) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data.value = [...data.value, entry]
|
|
||||||
})
|
})
|
||||||
|
|
||||||
data.value = [...data.value]
|
|
||||||
}
|
}
|
||||||
console.log(queryResult.data)
|
console.log(queryResult.data)
|
||||||
console.log(queryResult.loading)
|
console.log(queryResult.loading)
|
||||||
|
@ -480,11 +480,9 @@ const filterData = (params: any) => {
|
|||||||
})
|
})
|
||||||
onResult((queryResult) => {
|
onResult((queryResult) => {
|
||||||
if (queryResult.data != undefined) {
|
if (queryResult.data != undefined) {
|
||||||
var i = 1
|
data.value = queryResult.data.rekapitulasiGangguanPerRegu.map((item: any, index: number) => {
|
||||||
|
return {
|
||||||
queryResult.data.rekapitulasiGangguanPerRegu.forEach((item: any) => {
|
no: ++index,
|
||||||
const entry = {
|
|
||||||
no: Number(i++),
|
|
||||||
kode_regu: item.kode_regu,
|
kode_regu: item.kode_regu,
|
||||||
nama_regu: item.nama_regu,
|
nama_regu: item.nama_regu,
|
||||||
laporan: {
|
laporan: {
|
||||||
@ -523,10 +521,7 @@ const filterData = (params: any) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
data.value = [...data.value, entry]
|
|
||||||
})
|
})
|
||||||
|
|
||||||
data.value = [...data.value]
|
|
||||||
}
|
}
|
||||||
console.log(queryResult.data)
|
console.log(queryResult.data)
|
||||||
console.log(queryResult.loading)
|
console.log(queryResult.loading)
|
||||||
|
@ -440,7 +440,6 @@ const filterData = (params: any) => {
|
|||||||
onResult((queryResult) => {
|
onResult((queryResult) => {
|
||||||
if (queryResult.data != undefined) {
|
if (queryResult.data != undefined) {
|
||||||
data.value = queryResult.data.daftarKeluhanMelaporLebihDariSatuKali
|
data.value = queryResult.data.daftarKeluhanMelaporLebihDariSatuKali
|
||||||
console.log(data.value[0])
|
|
||||||
}
|
}
|
||||||
console.log(queryResult.data)
|
console.log(queryResult.data)
|
||||||
console.log(queryResult.loading)
|
console.log(queryResult.loading)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user