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
83fe25a2
Commit
83fe25a2
authored
Jan 06, 2021
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oi
parent
81aff5b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
OperatingIndicatorMR.js
src/container/MonthlyReport/OperatingIndicatorMR.js
+2
-2
OperatingIndicator.js
src/container/OprIndicator/OperatingIndicator.js
+2
-1
No files found.
src/container/MonthlyReport/OperatingIndicatorMR.js
View file @
83fe25a2
...
@@ -186,7 +186,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -186,7 +186,7 @@ export default class OperatingIndicatorMR extends Component {
}
}
// console.log(payload);
// console.log(payload);
api
.
create
().
getHierarkiMontlyReportOI
(
payload
).
then
(
response
=>
{
api
.
create
().
getHierarkiMontlyReportOI
(
payload
).
then
(
response
=>
{
//
console.log(response);
console
.
log
(
response
);
let
dataTable
=
[]
let
dataTable
=
[]
let
err
=
false
let
err
=
false
...
@@ -282,7 +282,7 @@ export default class OperatingIndicatorMR extends Component {
...
@@ -282,7 +282,7 @@ export default class OperatingIndicatorMR extends Component {
}
}
})
})
}
}
//
console.log(dataTable);
console
.
log
(
dataTable
);
})
})
}
}
...
...
src/container/OprIndicator/OperatingIndicator.js
View file @
83fe25a2
...
@@ -111,6 +111,7 @@ export default class OperatingIndicator extends Component {
...
@@ -111,6 +111,7 @@ export default class OperatingIndicator extends Component {
"periode"
:
this
.
state
.
periode
.
periode
,
"periode"
:
this
.
state
.
periode
.
periode
,
"report_type"
:
"operating indicator"
,
"report_type"
:
"operating indicator"
,
}
}
console
.
log
(
payload
);
api
.
create
().
getAllOperatingInd
(
payload
).
then
(
response
=>
{
api
.
create
().
getAllOperatingInd
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
@@ -311,7 +312,7 @@ export default class OperatingIndicator extends Component {
...
@@ -311,7 +312,7 @@ export default class OperatingIndicator extends Component {
})
})
}
else
if
(
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
"monthly report"
))
{
}
else
if
(
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
"monthly report"
))
{
console
.
log
(
item
[
1
]
);
console
.
log
(
item
);
let
month
=
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
'jan'
)
?
1
:
let
month
=
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
'jan'
)
?
1
:
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
'feb'
)
?
2
:
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
'feb'
)
?
2
:
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
'mar'
)
?
3
:
String
(
item
[
1
]).
toLocaleLowerCase
().
includes
(
'mar'
)
?
3
:
...
...
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