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
20709072
Commit
20709072
authored
Aug 16, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create, update, donlot parameter
parent
ce2d68d2
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1234 additions
and
222 deletions
+1234
-222
index.js
src/api/index.js
+18
-1
app.css
src/assets/sass/app.css
+41
-0
DashboardCAT.js
src/container/Laporan/DashboardCAT.js
+2
-2
CreateParameter.js
src/container/MasterData/Parameter/CreateParameter.js
+595
-175
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+575
-41
CreateUnitBisnis.js
src/container/MasterData/formUnitBisnis/CreateUnitBisnis.js
+1
-1
AddUser.js
src/container/Otorisasi/User/AddUser.js
+1
-1
EditUser.js
src/container/Otorisasi/User/EditUser.js
+1
-1
No files found.
src/api/index.js
View file @
20709072
...
@@ -69,6 +69,7 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
...
@@ -69,6 +69,7 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
//Role
//Role
const
getRole
=
()
=>
api
.
get
(
'role/get_all_role'
)
const
getRole
=
()
=>
api
.
get
(
'role/get_all_role'
)
const
getRoleActive
=
()
=>
api
.
get
(
'role/get_all_role_active'
)
const
getDetailRole
=
(
roleId
)
=>
api
.
get
(
`role/get_role_by_id/
${
roleId
}
`
)
const
getDetailRole
=
(
roleId
)
=>
api
.
get
(
`role/get_role_by_id/
${
roleId
}
`
)
const
searchRole
=
(
body
)
=>
api
.
post
(
'/role/search_role'
,
body
)
const
searchRole
=
(
body
)
=>
api
.
post
(
'/role/search_role'
,
body
)
const
addRole
=
(
body
)
=>
api
.
post
(
'role/create_role'
,
body
)
const
addRole
=
(
body
)
=>
api
.
post
(
'role/create_role'
,
body
)
...
@@ -88,6 +89,7 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
...
@@ -88,6 +89,7 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
// Perusahaan
// Perusahaan
const
getPerusahaan
=
()
=>
api
.
get
(
'company/get_all_company'
)
const
getPerusahaan
=
()
=>
api
.
get
(
'company/get_all_company'
)
const
getPerusahaanActive
=
()
=>
api
.
get
(
'company/get_all_company_active'
)
const
createPerusahaan
=
(
body
)
=>
api
.
post
(
'/company/create_company'
,
body
)
const
createPerusahaan
=
(
body
)
=>
api
.
post
(
'/company/create_company'
,
body
)
const
updatePerusahaan
=
(
body
)
=>
api
.
post
(
'/company/update_company'
,
body
)
const
updatePerusahaan
=
(
body
)
=>
api
.
post
(
'/company/update_company'
,
body
)
const
getPerusahaanHierarki
=
()
=>
api
.
get
(
'company/get_company_hierarki'
)
const
getPerusahaanHierarki
=
()
=>
api
.
get
(
'company/get_company_hierarki'
)
...
@@ -112,6 +114,13 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
...
@@ -112,6 +114,13 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
const
checkUploadUser
=
(
body
)
=>
api
.
post
(
'/user/check_import'
,
body
)
const
checkUploadUser
=
(
body
)
=>
api
.
post
(
'/user/check_import'
,
body
)
const
uploadUser
=
(
body
)
=>
api
.
post
(
'/user/import_user'
,
body
)
const
uploadUser
=
(
body
)
=>
api
.
post
(
'/user/import_user'
,
body
)
//PARAMETER
const
getAllParameter
=
()
=>
api
.
get
(
'/setting/get_all_setting'
)
const
getDetailParameter
=
(
id
)
=>
api
.
get
(
`setting/get_setting_by_id/
${
id
}
`
)
const
getAllGroup
=
()
=>
api
.
get
(
'/setting_group/get_all_setting_group'
)
const
getParameterByGroup
=
(
groupID
)
=>
api
.
get
(
`/setting_type/get_all_setting_type_by_group/
${
groupID
}
`
)
const
createParameter
=
(
body
)
=>
api
.
post
(
'setting/create_setting'
,
body
)
const
updateParameter
=
(
body
)
=>
api
.
post
(
'setting/update_setting'
,
body
)
//Template
//Template
const
downloadTemplate
=
(
fileName
,
fileType
)
=>
api
.
get
(
`attachment/download_file?fileName=
${
fileName
}
&&fileType=
${
fileType
}
`
)
const
downloadTemplate
=
(
fileName
,
fileType
)
=>
api
.
get
(
`attachment/download_file?fileName=
${
fileName
}
&&fileType=
${
fileType
}
`
)
...
@@ -167,7 +176,15 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
...
@@ -167,7 +176,15 @@ const create = (baseURL = 'https://tia.eksad.com/tia-reporting-dev/public/') =>
changePassword
,
changePassword
,
getPerusahaanHierarki
,
getPerusahaanHierarki
,
checkUploadUser
,
checkUploadUser
,
uploadUser
uploadUser
,
getAllParameter
,
getAllGroup
,
getParameterByGroup
,
getDetailParameter
,
updateParameter
,
createParameter
,
getPerusahaanActive
,
getRoleActive
}
}
}
}
...
...
src/assets/sass/app.css
View file @
20709072
...
@@ -161,6 +161,47 @@
...
@@ -161,6 +161,47 @@
.btn-no-outline{
.btn-no-outline{
outline: 'none'
outline: 'none'
}
}
.form {
display: flex;
}
.form>div {
display: inline-block;
vertical-align: top;
}
#treeviewDriveC,
#treeviewDriveD {
margin-top: 10px;
}
.drive-header {
min-height: auto;
padding: 0px;
cursor: default;
}
.drive-header .dx-icon {
margin-top: -4px;
}
.drive-panel {
padding: 20px 30px;
font-size: 115%;
font-weight: bold;
border-right: 1px solid rgba(165, 165, 165, 0.4);
height: 100%;
}
.drive-panel:last-of-type {
border-right: none;
}
.dx-treeview-item {
position: relative;
left: -2px;
}
.color-white {
.color-white {
src/container/Laporan/DashboardCAT.js
View file @
20709072
...
@@ -78,10 +78,10 @@ export default class DashboardCAT extends Component {
...
@@ -78,10 +78,10 @@ export default class DashboardCAT extends Component {
<
Tab
label
=
"KPIs"
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
/
>
<
Tab
label
=
"KPIs"
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
/
>
<
/Tabs
>
<
/Tabs
>
<
/AppBar
>
<
/AppBar
>
{
this
.
state
.
tab
==
0
?
{
this
.
state
.
tab
==
=
0
?
<
ExceutiveScoreboard
height
=
{
this
.
props
.
height
}
/
>
<
ExceutiveScoreboard
height
=
{
this
.
props
.
height
}
/
>
:
:
this
.
state
.
tab
==
1
?
this
.
state
.
tab
==
=
1
?
<
span
>
Testt
<
/span
>
<
span
>
Testt
<
/span
>
:
:
<
span
>
Test2
<
/span
>
<
span
>
Test2
<
/span
>
...
...
src/container/MasterData/Parameter/CreateParameter.js
View file @
20709072
This diff is collapsed.
Click to expand it.
src/container/MasterData/Parameter/Parameter.js
View file @
20709072
This diff is collapsed.
Click to expand it.
src/container/MasterData/formUnitBisnis/CreateUnitBisnis.js
View file @
20709072
...
@@ -78,7 +78,7 @@ export default class CreateUnitBisnis extends Component {
...
@@ -78,7 +78,7 @@ export default class CreateUnitBisnis extends Component {
return
(
return
(
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"test app-popup-show"
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-content background-white border-radius"
style
=
{{
borderRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x
"
style
=
{{
backgroundColor
:
'#51c6ea'
,
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"popup-panel grid grid-2x
main-color"
style
=
{{
height
:
64
,
borderTopRightRadius
:
8
,
borderTopLeftRadius
:
8
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"col-1"
style
=
{{
maxWidth
:
"inherit"
,
display
:
'flex'
,
alignItems
:
'center'
}}
>
<
div
className
=
"popup-title"
>
<
div
className
=
"popup-title"
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Edit
Data
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
16
,
fontWeight
:
'bold'
}}
>
Edit
Data
<
/span
>
...
...
src/container/Otorisasi/User/AddUser.js
View file @
20709072
...
@@ -119,7 +119,7 @@ export default class AddUser extends Component {
...
@@ -119,7 +119,7 @@ export default class AddUser extends Component {
}
}
getRole
()
{
getRole
()
{
api
.
create
().
getRole
().
then
((
response
)
=>
{
api
.
create
().
getRole
Active
().
then
((
response
)
=>
{
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
.
status
===
'success'
)
{
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
let
roleData
=
data
.
map
((
item
)
=>
{
let
roleData
=
data
.
map
((
item
)
=>
{
...
...
src/container/Otorisasi/User/EditUser.js
View file @
20709072
...
@@ -154,7 +154,7 @@ export default class EditUser extends Component {
...
@@ -154,7 +154,7 @@ export default class EditUser extends Component {
}
}
getRole
()
{
getRole
()
{
api
.
create
().
getRole
().
then
((
response
)
=>
{
api
.
create
().
getRole
Active
().
then
((
response
)
=>
{
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
.
status
===
'success'
)
{
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
let
roleData
=
data
.
map
((
item
)
=>
{
let
roleData
=
data
.
map
((
item
)
=>
{
...
...
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