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
b07ac26b
Commit
b07ac26b
authored
Apr 12, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/riri' into 'ENV-DEV'
issue reminder See merge request
!1776
parents
b242e5f9
c47b5d7d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
9 deletions
+57
-9
ProgressReport.js
src/container/ProgressReport/ProgressReport.js
+2
-1
TableProgressReport.js
src/container/ProgressReport/TableProgressReport.js
+55
-8
No files found.
src/container/ProgressReport/ProgressReport.js
View file @
b07ac26b
...
@@ -42,6 +42,7 @@ class ReportProgress extends Component {
...
@@ -42,6 +42,7 @@ class ReportProgress extends Component {
alert
:
false
,
alert
:
false
,
tipeAlert
:
''
,
tipeAlert
:
''
,
messageAlert
:
''
,
messageAlert
:
''
,
company
:
null
}
}
}
}
...
@@ -575,7 +576,7 @@ class ReportProgress extends Component {
...
@@ -575,7 +576,7 @@ class ReportProgress extends Component {
periode
=
{
this
.
state
.
periode
?
this
.
state
.
periode
.
periode
:
null
}
periode
=
{
this
.
state
.
periode
?
this
.
state
.
periode
.
periode
:
null
}
quarter
=
{
this
.
state
.
quarter
.
name
}
quarter
=
{
this
.
state
.
quarter
.
name
}
month
=
{
this
.
state
.
month
.
month_id
}
month
=
{
this
.
state
.
month
.
month_id
}
company
=
{
this
.
state
.
company
}
company
=
{
this
.
state
.
company
_id
}
typeReport
=
{
String
(
this
.
state
.
reportType
.
name
).
toLocaleUpperCase
()}
typeReport
=
{
String
(
this
.
state
.
reportType
.
name
).
toLocaleUpperCase
()}
year
=
{
this
.
state
.
periodeMB
.
value
}
year
=
{
this
.
state
.
periodeMB
.
value
}
getMonitoringMB
=
{
this
.
getMonitoringMB
.
bind
(
this
)}
getMonitoringMB
=
{
this
.
getMonitoringMB
.
bind
(
this
)}
...
...
src/container/ProgressReport/TableProgressReport.js
View file @
b07ac26b
...
@@ -65,7 +65,6 @@ export default class TableProgressReport extends Component {
...
@@ -65,7 +65,6 @@ export default class TableProgressReport extends Component {
"quarter"
:
data
.
quarter
===
"Q1"
?
"q1"
:
data
.
quarter
===
"Q2"
?
"q2"
:
data
.
quarter
===
"Q3"
?
"q3"
:
null
"quarter"
:
data
.
quarter
===
"Q1"
?
"q1"
:
data
.
quarter
===
"Q2"
?
"q2"
:
data
.
quarter
===
"Q3"
?
"q3"
:
null
}
}
console
.
log
(
payloadGetData
);
api
.
create
().
sendEmail
(
payload
).
then
(
response
=>
{
api
.
create
().
sendEmail
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
...
@@ -98,7 +97,7 @@ export default class TableProgressReport extends Component {
...
@@ -98,7 +97,7 @@ export default class TableProgressReport extends Component {
// })
// })
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'success' })
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'success' })
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
)
||
response
.
data
.
message
.
includes
(
"Token Expired"
))
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
)
||
response
.
data
.
message
.
includes
(
"Token Expired"
))
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
localStorage
.
removeItem
(
Constant
.
TOKEN
)
...
@@ -108,10 +107,10 @@ export default class TableProgressReport extends Component {
...
@@ -108,10 +107,10 @@ export default class TableProgressReport extends Component {
})
})
}
}
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'error'
,
loading
:
false
})
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
problem
,
tipeAlert
:
'error'
,
loading
:
false
})
}
}
})
})
}
}
...
@@ -241,7 +240,7 @@ export default class TableProgressReport extends Component {
...
@@ -241,7 +240,7 @@ export default class TableProgressReport extends Component {
<
button
<
button
type
=
"button"
type
=
"button"
style
=
{{
background
:
'white'
}}
style
=
{{
background
:
'white'
}}
onClick
=
{()
=>
this
.
handleShowPopup
(
tableMeta
.
rowData
[
5
],
tableMeta
.
rowData
)}
onClick
=
{()
=>
this
.
handleShowPopup
(
tableMeta
.
rowData
[
7
],
tableMeta
.
rowData
)}
>
>
<
div
style
=
{{
width
:
85
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
width
:
85
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
{
tableMeta
.
rowData
[
3
]
===
null
||
tableMeta
.
rowData
[
3
]
===
0
?
"Send Email"
:
"Sent"
}
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
{
tableMeta
.
rowData
[
3
]
===
null
||
tableMeta
.
rowData
[
3
]
===
0
?
"Send Email"
:
"Sent"
}
<
/span
>
...
@@ -280,6 +279,18 @@ export default class TableProgressReport extends Component {
...
@@ -280,6 +279,18 @@ export default class TableProgressReport extends Component {
display
:
false
display
:
false
}
}
},
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
{
name
:
""
,
name
:
""
,
options
:
{
options
:
{
...
@@ -408,7 +419,7 @@ export default class TableProgressReport extends Component {
...
@@ -408,7 +419,7 @@ export default class TableProgressReport extends Component {
<
button
<
button
type
=
"button"
type
=
"button"
style
=
{{
background
:
'white'
}}
style
=
{{
background
:
'white'
}}
onClick
=
{()
=>
this
.
handleShowPopup
(
tableMeta
.
rowData
[
5
],
tableMeta
.
rowData
)}
onClick
=
{()
=>
this
.
handleShowPopup
(
tableMeta
.
rowData
[
7
],
tableMeta
.
rowData
)}
>
>
<
div
style
=
{{
position
:
'relative'
,
width
:
85
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
position
:
'relative'
,
width
:
85
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
{
tableMeta
.
rowData
[
3
]
===
null
||
tableMeta
.
rowData
[
3
]
===
0
?
"Send Email"
:
"Sent"
}
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
{
tableMeta
.
rowData
[
3
]
===
null
||
tableMeta
.
rowData
[
3
]
===
0
?
"Send Email"
:
"Sent"
}
<
/span
>
...
@@ -447,6 +458,18 @@ export default class TableProgressReport extends Component {
...
@@ -447,6 +458,18 @@ export default class TableProgressReport extends Component {
display
:
false
display
:
false
}
}
},
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
{
name
:
""
,
name
:
""
,
options
:
{
options
:
{
...
@@ -559,7 +582,7 @@ export default class TableProgressReport extends Component {
...
@@ -559,7 +582,7 @@ export default class TableProgressReport extends Component {
<
button
<
button
type
=
"button"
type
=
"button"
style
=
{{
background
:
'white'
}}
style
=
{{
background
:
'white'
}}
onClick
=
{()
=>
this
.
handleShowPopup
(
tableMeta
.
rowData
[
5
],
tableMeta
.
rowData
)}
onClick
=
{()
=>
this
.
handleShowPopup
(
tableMeta
.
rowData
[
7
],
tableMeta
.
rowData
)}
>
>
<
div
style
=
{{
width
:
85
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
width
:
85
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
{
tableMeta
.
rowData
[
3
]
===
null
||
tableMeta
.
rowData
[
3
]
===
0
?
"Send Email"
:
"Sent"
}
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
{
tableMeta
.
rowData
[
3
]
===
null
||
tableMeta
.
rowData
[
3
]
===
0
?
"Send Email"
:
"Sent"
}
<
/span
>
...
@@ -598,6 +621,18 @@ export default class TableProgressReport extends Component {
...
@@ -598,6 +621,18 @@ export default class TableProgressReport extends Component {
display
:
false
display
:
false
}
}
},
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
{
name
:
""
,
name
:
""
,
options
:
{
options
:
{
...
@@ -710,7 +745,7 @@ export default class TableProgressReport extends Component {
...
@@ -710,7 +745,7 @@ export default class TableProgressReport extends Component {
<
button
<
button
type
=
"button"
type
=
"button"
style
=
{{
background
:
'white'
}}
style
=
{{
background
:
'white'
}}
onClick
=
{()
=>
this
.
handleShowPopup
(
tableMeta
.
rowData
[
5
],
tableMeta
.
rowData
)}
onClick
=
{()
=>
this
.
handleShowPopup
(
tableMeta
.
rowData
[
7
],
tableMeta
.
rowData
)}
>
>
<
div
style
=
{{
width
:
85
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
width
:
85
,
height
:
30
,
backgroundColor
:
'#354960'
,
borderRadius
:
5
,
alignItems
:
'center'
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
{
tableMeta
.
rowData
[
3
]
===
null
||
tableMeta
.
rowData
[
3
]
===
0
?
"Send Email"
:
"Sent"
}
<
/span
>
<
span
style
=
{{
color
:
'#fff'
,
fontSize
:
11
}}
>
{
tableMeta
.
rowData
[
3
]
===
null
||
tableMeta
.
rowData
[
3
]
===
0
?
"Send Email"
:
"Sent"
}
<
/span
>
...
@@ -749,6 +784,18 @@ export default class TableProgressReport extends Component {
...
@@ -749,6 +784,18 @@ export default class TableProgressReport extends Component {
display
:
false
display
:
false
}
}
},
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
{
name
:
""
,
name
:
""
,
options
:
{
options
:
{
...
...
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