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
a88cfc31
Commit
a88cfc31
authored
Oct 23, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oioioi
parent
c5b85991
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
OperatingIndicatorDetail.js
src/container/OprIndicator/OperatingIndicatorDetail.js
+8
-3
No files found.
src/container/OprIndicator/OperatingIndicatorDetail.js
View file @
a88cfc31
...
...
@@ -56,7 +56,8 @@ export default class BalanceSheet extends Component {
visibleOI
:
true
,
disabledSave
:
true
,
editable
:
true
,
emptyData
:
false
emptyData
:
false
,
templateNull
:
true
}
this
.
handleValue
=
this
.
handleValue
.
bind
(
this
)
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
...
...
@@ -370,7 +371,11 @@ export default class BalanceSheet extends Component {
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
setState
({
visibleUpload
:
false
,
visibleOI
:
false
,
loading
:
true
})
let
total
=
0
let
dataTable
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
type_report_id
!=
null
)
{
total
+=
1
}
return
[
item
.
type_report_id
,
item
.
item_report_id
,
...
...
@@ -397,7 +402,7 @@ export default class BalanceSheet extends Component {
item
.
error
]
})
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
})
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
templateNull
:
total
>
0
?
true
:
false
})
}
}
})
...
...
@@ -2057,7 +2062,7 @@ export default class BalanceSheet extends Component {
<
/div
>
<
/button
>
<
/div
>
{
!
this
.
state
.
emptyData
&&
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
}}
>
{
!
this
.
state
.
emptyData
&&
this
.
state
.
templateNull
&&
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
}}
>
<
button
type
=
"button"
onClick
=
{()
=>
...
...
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