Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
d3ffc8a4
Commit
d3ffc8a4
authored
Feb 28, 2021
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kpis
parent
31a33676
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
193 additions
and
52 deletions
+193
-52
DashboardCAT.js
src/container/Laporan/DashboardCAT.js
+3
-3
KPIs.js
src/container/Laporan/KPIs.js
+190
-49
No files found.
src/container/Laporan/DashboardCAT.js
View file @
d3ffc8a4
...
@@ -95,8 +95,8 @@ export default class DashboardCAT extends Component {
...
@@ -95,8 +95,8 @@ export default class DashboardCAT extends Component {
company_id
:
item
.
company_id
,
company_id
:
item
.
company_id
,
company_name
:
item
.
company_name
,
company_name
:
item
.
company_name
,
}
}
})
})
let
arrayBaru
=
[]
let
arrayBaru
=
[]
this
.
state
.
userCompany
.
map
((
item
,
index
)
=>
{
this
.
state
.
userCompany
.
map
((
item
,
index
)
=>
{
let
indexID
=
companyData
.
findIndex
((
val
)
=>
val
.
company_id
==
item
)
let
indexID
=
companyData
.
findIndex
((
val
)
=>
val
.
company_id
==
item
)
...
@@ -106,7 +106,7 @@ export default class DashboardCAT extends Component {
...
@@ -106,7 +106,7 @@ export default class DashboardCAT extends Component {
})
})
let
defaultProps
=
{
let
defaultProps
=
{
options
:
arrayBaru
,
options
:
arrayBaru
.
sort
((
a
,
b
)
=>
a
.
company_name
.
localeCompare
(
b
.
company_name
))
,
getOptionLabel
:
(
option
)
=>
titleCase
(
option
.
company_name
),
getOptionLabel
:
(
option
)
=>
titleCase
(
option
.
company_name
),
};
};
let
index
=
arrayBaru
.
findIndex
((
val
)
=>
val
.
company_id
==
comID
)
let
index
=
arrayBaru
.
findIndex
((
val
)
=>
val
.
company_id
==
comID
)
...
...
src/container/Laporan/KPIs.js
View file @
d3ffc8a4
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment