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
56894852
Commit
56894852
authored
Jan 17, 2021
by
d.arizona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apdet
parent
40a0e700
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
HomePage.js
src/container/HomePage.js
+4
-4
MonthlyReport.js
src/container/MonthlyReport.js
+12
-1
No files found.
src/container/HomePage.js
View file @
56894852
...
...
@@ -8,6 +8,7 @@ import api from '../api';
import
{
Link
}
from
'react-router-dom'
;
import
{
PropagateLoader
}
from
'react-spinners'
;
import
{
titleCase
}
from
'../library/Utils'
;
import
{
format
}
from
'date-fns'
;
var
ct
=
require
(
"../library/CustomTable"
);
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
...
...
@@ -216,7 +217,7 @@ class HomePage extends Component {
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
Link
to
=
{{
pathname
:
this
.
state
.
isApproverMB
?
`/home/master-budget/`
:
`/home/monthly-report/`
,
pathname
:
String
(
tableMeta
.
rowData
[
3
]).
toLocaleLowerCase
().
includes
(
"master"
)
?
`/home/master-budget/`
:
`/home/monthly-report/`
,
state
:
{
userType
:
'approver'
,
rawData
:
this
.
state
.
rawData
[
tableMeta
.
rowIndex
]
...
...
@@ -297,8 +298,7 @@ class HomePage extends Component {
/
>
<
/div
>
);
let
bulan
=
new
Date
().
toLocaleString
(
'default'
,
{
month
:
'long'
})
let
bulan
=
format
(
new
Date
(),
'MMM'
)
let
tahun
=
new
Date
().
getFullYear
()
return
(
<
div
style
=
{{
flex
:
1
,
backgroundColor
:
'#f8f8f8'
,
minHeight
:
this
.
props
.
height
}}
>
...
...
@@ -520,7 +520,7 @@ class HomePage extends Component {
{
/* : this.state.isApproverMRList === true || this.state.isApprover === false ? */
}
<
div
style
=
{{
flex
:
1
,
padding
:
20
,
width
:
'100%'
}}
>
<
Paper
style
=
{{
width
:
450
,
padding
:
20
,
borderRadius
:
10
}}
>
<
Typography
style
=
{{
fontWeight
:
'bold'
,
textDecorationLine
:
'underline'
}}
>
{
`Monthly Report
${
this
.
state
.
valueSubmitMR
}
/
${
this
.
state
.
listSubcoMR
.
length
}
-
${
bulan
}
${
tahun
}
`
}
<
/Typography
>
<
Typography
style
=
{{
fontWeight
:
'bold'
,
textDecorationLine
:
'underline'
}}
>
{
`Monthly Report
-
${
bulan
}
${
tahun
}
${
this
.
state
.
valueSubmitMR
}
/
${
this
.
state
.
listSubcoMR
.
length
}
`
}
<
/Typography
>
{
this
.
state
.
listSubcoMR
.
map
((
item
,
index
)
=>
{
return
(
<
div
style
=
{{
display
:
'flex'
,
justifyContent
:
'space-between'
,
marginTop
:
10
,
paddingLeft
:
10
}}
>
...
...
src/container/MonthlyReport.js
View file @
56894852
...
...
@@ -108,10 +108,21 @@ export default class MonthlyReport extends Component {
}
componentDidMount
()
{
this
.
getPermission
()
//
this.getPermission()
this
.
setState
({
loading
:
true
})
this
.
props
.
selectIndex
(
'Monthly Report'
)
if
(
this
.
props
.
location
.
state
!==
undefined
)
{
// console.log(this.props);
this
.
setState
({
userType
:
this
.
props
.
location
.
state
.
userType
,
intent
:
'Home'
,
lastPeriod
:
this
.
props
.
location
.
state
.
rawData
.
periode
,
rawData
:
this
.
props
.
location
.
state
.
rawData
},
()
=>
{
this
.
getPermission
()
})
}
else
{
this
.
getPermission
()
}
// console.log(this.props)
// this.getCompanyActive()
// this.getCompanySubmitted()
// console.log(a)
}
getChecApprover
()
{
...
...
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