feat(SPG-997): add report vip code
parent
e2a6878e71
commit
55ddc9b605
|
@ -23,11 +23,10 @@ export default <ReportConfigEntity>{
|
||||||
main_table_alias: 'main',
|
main_table_alias: 'main',
|
||||||
whereDefaultConditions: [],
|
whereDefaultConditions: [],
|
||||||
defaultOrderBy: [],
|
defaultOrderBy: [],
|
||||||
lowLevelOrderBy: [],
|
lowLevelOrderBy: [`main.created_at DESC`],
|
||||||
filter_period_config: {
|
filter_period_config: {
|
||||||
hidden: true,
|
hidden: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
column_configs: [
|
column_configs: [
|
||||||
{
|
{
|
||||||
column: 'main__code',
|
column: 'main__code',
|
||||||
|
@ -60,11 +59,10 @@ export default <ReportConfigEntity>{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
column: 'main__created_at',
|
column: 'main__created_at',
|
||||||
query: 'main.created_at',
|
query: `to_char(cast(to_timestamp(main.created_at/1000) as date),'DD-MM-YYYY')`,
|
||||||
label: 'Tgl. Dibuat',
|
label: 'Tgl. Dibuat',
|
||||||
type: DATA_TYPE.DIMENSION,
|
type: DATA_TYPE.DIMENSION,
|
||||||
format: DATA_FORMAT.DATE_EPOCH,
|
format: DATA_FORMAT.TEXT,
|
||||||
date_format: 'DD-MM-YYYY',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
column: 'main__creator_name',
|
column: 'main__creator_name',
|
||||||
|
@ -90,9 +88,10 @@ export default <ReportConfigEntity>{
|
||||||
|
|
||||||
{
|
{
|
||||||
filed_label: 'Tgl. Dibuat',
|
filed_label: 'Tgl. Dibuat',
|
||||||
filter_column: 'main__created_at',
|
filter_column: 'main__date',
|
||||||
field_type: FILTER_FIELD_TYPE.date_range_picker,
|
field_type: FILTER_FIELD_TYPE.date_range_picker,
|
||||||
filter_type: FILTER_TYPE.DATE_IN_RANGE_EPOCH,
|
filter_type: FILTER_TYPE.DATE_IN_RANGE_TIMESTAMP,
|
||||||
|
date_format: 'DD-MM-YYYY',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue