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
3f7bce26
Commit
3f7bce26
authored
Apr 12, 2023
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ENV-DEV' into 'ENV-DEPLOYMENT'
issue reminder See merge request
!1777
parents
410265c7
b07ac26b
Changes
2
Hide 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 @
3f7bce26
...
...
@@ -42,6 +42,7 @@ class ReportProgress extends Component {
alert
:
false
,
tipeAlert
:
''
,
messageAlert
:
''
,
company
:
null
}
}
...
...
@@ -575,7 +576,7 @@ class ReportProgress extends Component {
periode
=
{
this
.
state
.
periode
?
this
.
state
.
periode
.
periode
:
null
}
quarter
=
{
this
.
state
.
quarter
.
name
}
month
=
{
this
.
state
.
month
.
month_id
}
company
=
{
this
.
state
.
company
}
company
=
{
this
.
state
.
company
_id
}
typeReport
=
{
String
(
this
.
state
.
reportType
.
name
).
toLocaleUpperCase
()}
year
=
{
this
.
state
.
periodeMB
.
value
}
getMonitoringMB
=
{
this
.
getMonitoringMB
.
bind
(
this
)}
...
...
src/container/ProgressReport/TableProgressReport.js
View file @
3f7bce26
...
...
@@ -65,7 +65,6 @@ export default class TableProgressReport extends Component {
"quarter"
:
data
.
quarter
===
"Q1"
?
"q1"
:
data
.
quarter
===
"Q2"
?
"q2"
:
data
.
quarter
===
"Q3"
?
"q3"
:
null
}
console
.
log
(
payloadGetData
);
api
.
create
().
sendEmail
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
...
...
@@ -98,7 +97,7 @@ export default class TableProgressReport extends Component {
// })
// this.setState({ alert: true, messageAlert: response.data.message, tipeAlert: 'success' })
}
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"
))
{
setTimeout
(()
=>
{
localStorage
.
removeItem
(
Constant
.
TOKEN
)
...
...
@@ -108,10 +107,10 @@ export default class TableProgressReport extends Component {
})
}
}
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
{
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 {
<
button
type
=
"button"
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'
}}
>
<
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 {
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
...
...
@@ -408,7 +419,7 @@ export default class TableProgressReport extends Component {
<
button
type
=
"button"
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'
}}
>
<
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 {
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
...
...
@@ -559,7 +582,7 @@ export default class TableProgressReport extends Component {
<
button
type
=
"button"
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'
}}
>
<
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 {
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
...
...
@@ -710,7 +745,7 @@ export default class TableProgressReport extends Component {
<
button
type
=
"button"
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'
}}
>
<
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 {
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
options
:
{
display
:
false
}
},
{
name
:
""
,
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