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
44985579
Commit
44985579
authored
Mar 31, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
last update by
parent
8f168486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
OperatingIndicatorRO.js
src/container/RollingOutlook/OperatingIndicatorRO.js
+14
-5
No files found.
src/container/RollingOutlook/OperatingIndicatorRO.js
View file @
44985579
...
...
@@ -45,7 +45,7 @@ export default class OperatingIndicatorRO extends Component {
dataTable
:
[],
loading
:
true
,
visibleOI
:
true
,
updateBy
:
'-'
,
updateBy
:
[]
,
notesUpdate
:
'-'
,
disabledSave
:
true
,
editable
:
true
,
...
...
@@ -82,7 +82,7 @@ export default class OperatingIndicatorRO extends Component {
handleGetFor
(
type
)
{
this
.
setState
({
get_for
:
type
},
()
=>
{
//
this.getLatestUpdate()
this
.
getLatestUpdate
()
this
.
getOperatingIDRolling
()
})
}
...
...
@@ -123,11 +123,11 @@ export default class OperatingIndicatorRO extends Component {
}
// console.log(payload);
api
.
create
().
getLastestUpdateROOI
(
payload
).
then
(
response
=>
{
//
console.log(response.data)
console
.
log
(
response
.
data
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
,
updateBy
:
response
.
data
.
data
.
detail
===
null
?
[]
:
response
.
data
.
data
.
detail
,
notesUpdate
:
response
.
data
.
data
.
notes_update
===
null
?
'-'
:
response
.
data
.
data
.
notes_update
})
}
else
{
...
...
@@ -2113,7 +2113,16 @@ export default class OperatingIndicatorRO extends Component {
<
/MuiThemeProvider
>
}
<
/div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
{
this
.
state
.
updateBy
}
<
/Typography
>
<
div
style
=
{{
display
:
'flex'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
<
/Typography
>
<
div
style
=
{{
marginLeft
:
10
,
overflowY
:
'scroll'
,
height
:
75
,
marginTop
:
10
}}
>
{
this
.
state
.
updateBy
.
reverse
().
map
((
item
,
index
)
=>
{
return
(
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
}}
>
{
item
.
latest_update
}
<
/Typography
>
)
})}
<
/div
>
<
/div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
10
}}
>
Notes
:
{
this
.
state
.
notesUpdate
}
<
/Typography
>
<
/div
>
<
div
className
=
"grid grid-2x"
>
...
...
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