Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-view
Project
Project
Details
Activity
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
station
amos-convertor-view
Commits
9112e815
Commit
9112e815
authored
Aug 19, 2020
by
zhengjiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消防整改
parent
1901dff0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
index.js
src/view/bizview/fireRectification/index.js
+11
-7
No files found.
src/view/bizview/fireRectification/index.js
View file @
9112e815
...
@@ -275,8 +275,12 @@ class FireRectification extends Component {
...
@@ -275,8 +275,12 @@ class FireRectification extends Component {
regularUpdateData
=
()
=>
{
regularUpdateData
=
()
=>
{
let
result
=
true
;
let
result
=
true
;
const
{
warmningFileList
,
hiddenFileList
,
updateFrom
}
=
this
.
state
;
const
{
warmningFileList
,
hiddenFileList
,
updateFrom
}
=
this
.
state
;
if
(
warmningFileList
.
length
===
0
&&
hiddenFileList
.
length
===
0
&&
updateFrom
.
warnningData
.
length
===
0
&&
console
.
log
(
updateFrom
.
dangerData
);
updateFrom
.
hiddenData
.
length
===
0
&&
updateFrom
.
dangerData
.
length
===
0
&&
!
updateFrom
.
backResult
&&
!
updateFrom
.
refResult
)
{
if
((
warmningFileList
===
undefined
||
warmningFileList
.
length
===
0
)
&&
(
hiddenFileList
===
undefined
||
hiddenFileList
.
length
===
0
)
&&
(
updateFrom
.
dangerData
===
undefined
||
updateFrom
.
dangerData
.
length
===
0
)
&&
!
updateFrom
.
backResult
&&
!
updateFrom
.
refResult
)
{
result
=
false
;
result
=
false
;
}
}
return
result
;
return
result
;
...
@@ -300,7 +304,7 @@ class FireRectification extends Component {
...
@@ -300,7 +304,7 @@ class FireRectification extends Component {
}
}
});
});
}
}
if
(
updateFrom
.
hiddenData
!==
undefined
&&
updateFrom
.
hiddenData
.
length
!==
0
)
{
if
(
updateFrom
.
hiddenData
!==
undefined
&&
updateFrom
.
hiddenData
.
length
!==
0
&&
canSave
)
{
updateFrom
.
hiddenData
.
map
((
item
,
i
)
=>
{
updateFrom
.
hiddenData
.
map
((
item
,
i
)
=>
{
if
(
item
.
doneResult
===
'1'
)
{
if
(
item
.
doneResult
===
'1'
)
{
let
a
=
`fileList
${
i
}
`
;
let
a
=
`fileList
${
i
}
`
;
...
@@ -313,7 +317,7 @@ class FireRectification extends Component {
...
@@ -313,7 +317,7 @@ class FireRectification extends Component {
});
});
}
}
let
ref
=
this
.
regularUpdateData
();
let
ref
=
this
.
regularUpdateData
();
if
(
!
ref
)
{
if
(
!
ref
&&
canSave
)
{
AmosAlert
.
warning
(
'注意'
,
'页面数据未发生变动,无需保存'
);
AmosAlert
.
warning
(
'注意'
,
'页面数据未发生变动,无需保存'
);
canSave
=
false
;
canSave
=
false
;
}
}
...
@@ -657,7 +661,7 @@ class FireRectification extends Component {
...
@@ -657,7 +661,7 @@ class FireRectification extends Component {
<
/Upload
>
<
/Upload
>
<
/div>
}
<
/div>
}
{
dataStates
===
'2'
&&
<
div
onClick
=
{()
=>
this
.
downLoad
(
record
.
filePath
,
'告警信息'
)}
>
{
dataStates
===
'2'
&&
<
div
onClick
=
{()
=>
this
.
downLoad
(
record
.
filePath
,
'告警信息'
)}
>
<
i
className
=
"icon amosicon"
>&
#
xe611
;
<
/i
>
<
Icon
type
=
"download"
/
>
<
a
>
下载
<
/a
>
<
a
>
下载
<
/a
>
<
/div>
}
<
/div>
}
<
/div
>
<
/div
>
...
@@ -805,7 +809,7 @@ class FireRectification extends Component {
...
@@ -805,7 +809,7 @@ class FireRectification extends Component {
onShowSizeChange
=
{(
e
,
a
)
=>
this
.
handlerWhenDataChange
(
'pageSize'
,
a
)}
onShowSizeChange
=
{(
e
,
a
)
=>
this
.
handlerWhenDataChange
(
'pageSize'
,
a
)}
/
>
/
>
<
/CommonContainer>
}
<
/CommonContainer>
}
<
DetailContent
{
this
.
state
.
detailVisible
&&
<
DetailContent
detailVisible
=
{
this
.
state
.
detailVisible
}
detailVisible
=
{
this
.
state
.
detailVisible
}
handleClose
=
{
this
.
handleClose
}
handleClose
=
{
this
.
handleClose
}
savePack
=
{(
e
)
=>
this
.
savePack
(
e
)}
savePack
=
{(
e
)
=>
this
.
savePack
(
e
)}
...
@@ -835,7 +839,7 @@ class FireRectification extends Component {
...
@@ -835,7 +839,7 @@ class FireRectification extends Component {
DataPack
=
{(
e
)
=>
this
.
DataPack
(
e
)}
DataPack
=
{(
e
)
=>
this
.
DataPack
(
e
)}
/
>
/
>
<
/div
>
<
/div
>
<
/DetailContent
>
<
/DetailContent>
}
<
/div
>
<
/div
>
);
);
...
...
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