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
85808c82
Commit
85808c82
authored
Sep 25, 2020
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fa6bc23e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
CorporateAnnualTarget.js
src/container/BudgetTahunan/CorporateAnnualTarget.js
+25
-3
No files found.
src/container/BudgetTahunan/CorporateAnnualTarget.js
View file @
85808c82
...
@@ -75,7 +75,8 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -75,7 +75,8 @@ export default class CorporateAnnualTarget extends Component {
// formulaYTDList: null,,
// formulaYTDList: null,,
dataDelete
:
[],
dataDelete
:
[],
dataReal
:
[],
dataReal
:
[],
buttonDraft
:
true
buttonDraft
:
true
,
updateBy
:
''
}
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
...
@@ -83,10 +84,11 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -83,10 +84,11 @@ export default class CorporateAnnualTarget extends Component {
componentDidMount
()
{
componentDidMount
()
{
this
.
getItemHierarki
()
this
.
getItemHierarki
()
this
.
getLatestUpdate
()
console
.
log
(
this
.
props
);
console
.
log
(
this
.
props
);
this
.
getKPIType
(
this
.
getKPIType
(
)
this
.
getMaxAch
()
this
.
getMaxAch
()
)
}
}
getItemHierarki
()
{
getItemHierarki
()
{
...
@@ -628,6 +630,25 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -628,6 +630,25 @@ export default class CorporateAnnualTarget extends Component {
})
})
}
}
getLatestUpdate
()
{
let
payload
=
{
"report_id"
:
this
.
props
.
report_id
,
"revision"
:
Number
(
this
.
props
.
revision
),
"periode"
:
this
.
props
.
periode
,
"company_id"
:
this
.
props
.
company
.
company_id
,
"submission_id"
:
this
.
props
.
submissionID
}
api
.
create
().
getLastestUpdateMB
(
payload
).
then
(
response
=>
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
})
}
}
})
}
render
()
{
render
()
{
let
dataTable2
=
this
.
state
.
dataTable
let
dataTable2
=
this
.
state
.
dataTable
let
dataDelete
=
this
.
state
.
dataDelete
let
dataDelete
=
this
.
state
.
dataDelete
...
@@ -1952,6 +1973,7 @@ export default class CorporateAnnualTarget extends Component {
...
@@ -1952,6 +1973,7 @@ export default class CorporateAnnualTarget extends Component {
/
>
/
>
<
/MuiThemeProvider
>
<
/MuiThemeProvider
>
<
/div
>
<
/div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
{
this
.
state
.
updateBy
}
<
/Typography
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x"
>
<
div
className
=
"grid grid-2x"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
...
...
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