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
babf96c2
Commit
babf96c2
authored
Sep 17, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'deni-dev(pc)' into 'master'
banyak dah See merge request
!324
parents
cbd78784
24f6eb8f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
71 deletions
+80
-71
index.js
src/api/index.js
+3
-1
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+1
-1
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+51
-52
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+16
-10
CustomTable.js
src/library/CustomTable.js
+9
-7
No files found.
src/api/index.js
View file @
babf96c2
...
@@ -167,6 +167,7 @@ const create = (type = "") => {
...
@@ -167,6 +167,7 @@ const create = (type = "") => {
const
saveVisualisasiReport
=
(
body
)
=>
api
.
post
(
'item_report/save_visualization'
,
body
)
const
saveVisualisasiReport
=
(
body
)
=>
api
.
post
(
'item_report/save_visualization'
,
body
)
const
getReportParent
=
(
body
)
=>
api
.
post
(
'item_report/get_parent_item_report'
,
body
)
const
getReportParent
=
(
body
)
=>
api
.
post
(
'item_report/get_parent_item_report'
,
body
)
const
deleteReportItems
=
(
id
)
=>
api
.
post
(
`item_report/delete_item_report/
${
id
}
`
)
const
deleteReportItems
=
(
id
)
=>
api
.
post
(
`item_report/delete_item_report/
${
id
}
`
)
const
getAllSettingByType
=
(
body
)
=>
api
.
post
(
'setting/get_all_setting_by_type'
,
body
)
//PARAMETER
//PARAMETER
const
getAllParameter
=
()
=>
api
.
get
(
'/setting/get_all_setting'
)
const
getAllParameter
=
()
=>
api
.
get
(
'/setting/get_all_setting'
)
...
@@ -331,7 +332,8 @@ const create = (type = "") => {
...
@@ -331,7 +332,8 @@ const create = (type = "") => {
getAllOperatingInd
,
getAllOperatingInd
,
getOperatingIndDetail
,
getOperatingIndDetail
,
createOpetaingInd
,
createOpetaingInd
,
uploadMasterBudget
uploadMasterBudget
,
getAllSettingByType
}
}
}
}
...
...
src/container/BudgetTahunan/BalanceSheet.js
View file @
babf96c2
...
@@ -2000,7 +2000,7 @@ export default class BalanceSheet extends Component {
...
@@ -2000,7 +2000,7 @@ export default class BalanceSheet extends Component {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
,
height
:
this
.
props
.
height
-
400
}}
>
<
div
style
=
{{
marginTop
:
20
,
width
:
this
.
props
.
width
-
(
this
.
props
.
open
===
true
?
400
:
150
)
}}
>
{
!
this
.
state
.
loading
&&
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
{
!
this
.
state
.
loading
&&
<
MuiThemeProvider
theme
=
{
getMuiTheme
()}
>
<
MUIDataTable
<
MUIDataTable
data
=
{
dataTable2
}
data
=
{
dataTable2
}
...
...
src/container/MasterData/Parameter/Parameter.js
View file @
babf96c2
This diff is collapsed.
Click to expand it.
src/container/MasterData/UnitBisnis.js
View file @
babf96c2
...
@@ -8,7 +8,7 @@ import MUIDataTable from "mui-datatables";
...
@@ -8,7 +8,7 @@ import MUIDataTable from "mui-datatables";
import
CreateUnitBisnis
from
"./formUnitBisnis/CreateUnitBisnis"
;
import
CreateUnitBisnis
from
"./formUnitBisnis/CreateUnitBisnis"
;
import
ReactTooltip
from
'react-tooltip'
;
import
ReactTooltip
from
'react-tooltip'
;
import
MuiAlert
from
'@material-ui/lab/Alert'
;
import
MuiAlert
from
'@material-ui/lab/Alert'
;
import
{
TextField
,
InputBase
,
Snackbar
,
withStyles
,
LinearProgress
}
from
"@material-ui/core"
;
import
{
TextField
,
InputBase
,
Snackbar
,
withStyles
,
LinearProgress
,
Tooltip
}
from
"@material-ui/core"
;
import
{
ExcelRenderer
}
from
'react-excel-renderer'
;
import
{
ExcelRenderer
}
from
'react-excel-renderer'
;
import
api
from
"../../api"
;
import
api
from
"../../api"
;
import
{
isThisSecond
}
from
"date-fns"
;
import
{
isThisSecond
}
from
"date-fns"
;
...
@@ -18,6 +18,15 @@ import Constant from "../../library/Constant";
...
@@ -18,6 +18,15 @@ import Constant from "../../library/Constant";
import
{
css
}
from
"@emotion/core"
;
import
{
css
}
from
"@emotion/core"
;
import
PropagateLoader
from
"react-spinners/PropagateLoader"
import
PropagateLoader
from
"react-spinners/PropagateLoader"
const
LightTooltip
=
withStyles
((
theme
)
=>
({
tooltip
:
{
backgroundColor
:
theme
.
palette
.
common
.
white
,
color
:
'rgba(0, 0, 0, 0.87)'
,
boxShadow
:
theme
.
shadows
[
1
],
fontSize
:
11
,
},
}))(
Tooltip
);
var
ct
=
require
(
"../../library/CustomTable"
);
var
ct
=
require
(
"../../library/CustomTable"
);
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
const
getMuiTheme
=
()
=>
createMuiTheme
(
ct
.
customTable
());
const
options
=
ct
.
customOptions
();
const
options
=
ct
.
customOptions
();
...
@@ -118,12 +127,11 @@ export default class UnitBisnis extends Component {
...
@@ -118,12 +127,11 @@ export default class UnitBisnis extends Component {
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
tableMeta
.
rowData
[
3
]
!=
null
&&
check
>
-
1
?
{
tableMeta
.
rowData
[
3
]
!=
null
&&
check
>
-
1
?
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
3
][
check
].
message
}
data
-
for
=
"unitbisnis"
>
<
LightTooltip
title
=
{
tableMeta
.
rowData
[
3
][
check
].
message
}
arrow
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
<
/
a
>
:
<
/
LightTooltip
>
:
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
}
}
<
ReactTooltip
border
=
{
true
}
id
=
"unitbisnis"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
/div
>
<
/div
>
);
);
}
}
...
@@ -143,12 +151,11 @@ export default class UnitBisnis extends Component {
...
@@ -143,12 +151,11 @@ export default class UnitBisnis extends Component {
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
tableMeta
.
rowData
[
3
]
!=
null
&&
check
>
-
1
?
{
tableMeta
.
rowData
[
3
]
!=
null
&&
check
>
-
1
?
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
3
][
check
].
message
}
data
-
for
=
"startdate"
>
<
LightTooltip
title
=
{
tableMeta
.
rowData
[
3
][
check
].
message
}
arrow
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
<
/
a
>
:
<
/
LightTooltip
>
:
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
}
}
<
ReactTooltip
border
=
{
true
}
id
=
"startdate"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
/div
>
<
/div
>
);
);
}
}
...
@@ -168,12 +175,11 @@ export default class UnitBisnis extends Component {
...
@@ -168,12 +175,11 @@ export default class UnitBisnis extends Component {
return
(
return
(
<
div
style
=
{{
display
:
'flex'
}}
>
<
div
style
=
{{
display
:
'flex'
}}
>
{
tableMeta
.
rowData
[
3
]
!=
null
&&
check
>
-
1
?
{
tableMeta
.
rowData
[
3
]
!=
null
&&
check
>
-
1
?
<
a
data
-
tip
=
{
tableMeta
.
rowData
[
3
][
check
].
message
}
data
-
for
=
"enddate"
>
<
LightTooltip
title
=
{
tableMeta
.
rowData
[
3
][
check
].
message
}
arrow
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
<
/
a
>
:
<
/
LightTooltip
>
:
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
<
span
style
=
{{
color
:
check
!=
null
&&
check
>
-
1
?
"red"
:
'black'
}}
>
{
val
===
""
?
"Empty"
:
val
}
<
/span
>
}
}
<
ReactTooltip
border
=
{
true
}
id
=
"enddate"
place
=
"bottom"
type
=
"light"
effect
=
"solid"
/>
<
/div
>
<
/div
>
);
);
}
}
...
...
src/library/CustomTable.js
View file @
babf96c2
...
@@ -33,7 +33,7 @@ exports.customTable = function () {
...
@@ -33,7 +33,7 @@ exports.customTable = function () {
MUIDataTableToolbar
:
{
MUIDataTableToolbar
:
{
root
:
{
root
:
{
position
:
'relative'
,
position
:
'relative'
,
padding
:
"0px 15px"
,
padding
:
"0px 15px"
,
backgroundColor
:
'#f2f6fa'
,
//'rgba(0,76,151,0.05)',
backgroundColor
:
'#f2f6fa'
,
//'rgba(0,76,151,0.05)',
},
},
titleText
:
{
titleText
:
{
...
@@ -138,7 +138,7 @@ exports.customTable = function () {
...
@@ -138,7 +138,7 @@ exports.customTable = function () {
color
:
"#555"
,
color
:
"#555"
,
padding
:
"10px 20px"
,
padding
:
"10px 20px"
,
height
:
"auto"
height
:
"auto"
,
,
marginTop
:
"10px"
marginTop
:
"10px"
},
},
},
},
...
@@ -362,6 +362,8 @@ exports.customTable3 = function () {
...
@@ -362,6 +362,8 @@ exports.customTable3 = function () {
overflow
:
"hidden"
,
overflow
:
"hidden"
,
},
},
},
},
responsiveScrollMaxHeight
:
{
},
MuiToolbar
:
{
MuiToolbar
:
{
root
:
{
root
:
{
left
:
{
left
:
{
...
@@ -486,7 +488,7 @@ exports.customOptions = function () {
...
@@ -486,7 +488,7 @@ exports.customOptions = function () {
selectableRows
:
'none'
,
selectableRows
:
'none'
,
filterType
:
'multiselect'
,
filterType
:
'multiselect'
,
responsive
:
'scroll'
,
responsive
:
'scroll'
,
viewColumns
:
true
,
viewColumns
:
true
,
rowsPerPage
:
5
,
rowsPerPage
:
5
,
rowsPerPageOptions
:
[
5
,
10
,
20
,
50
],
rowsPerPageOptions
:
[
5
,
10
,
20
,
50
],
print
:
false
,
print
:
false
,
...
@@ -519,12 +521,12 @@ exports.customOptionsFixedColumn = function () {
...
@@ -519,12 +521,12 @@ exports.customOptionsFixedColumn = function () {
filter
:
false
,
filter
:
false
,
sort
:
false
,
sort
:
false
,
responsive
:
'scrollMaxHeight'
,
responsive
:
'scrollMaxHeight'
,
viewColumns
:
false
,
viewColumns
:
false
,
overflowX
:
'auto'
,
//
overflowX: 'auto',
print
:
false
,
print
:
false
,
download
:
false
,
download
:
false
,
elevation
:
5
,
elevation
:
5
,
search
:
false
,
search
:
false
,
pagination
:
false
pagination
:
false
}
}
}
}
...
@@ -535,7 +537,7 @@ exports.customOptionsManagementDocument = function () {
...
@@ -535,7 +537,7 @@ exports.customOptionsManagementDocument = function () {
selectableRows
:
'none'
,
selectableRows
:
'none'
,
filterType
:
'multiselect'
,
filterType
:
'multiselect'
,
responsive
:
'scroll'
,
responsive
:
'scroll'
,
viewColumns
:
true
,
viewColumns
:
true
,
rowsPerPage
:
10
,
rowsPerPage
:
10
,
rowsPerPageOptions
:
[
10
,
20
,
30
,
50
],
rowsPerPageOptions
:
[
10
,
20
,
30
,
50
],
print
:
false
,
print
:
false
,
...
...
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