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
8ce14d89
Commit
8ce14d89
authored
Dec 11, 2020
by
吴俊凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重点设备单页面查询
parent
48e95abd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
MatchEquipment.js
src/view/bizview/equipmentLedger/Equipment/MatchEquipment.js
+17
-1
No files found.
src/view/bizview/equipmentLedger/Equipment/MatchEquipment.js
View file @
8ce14d89
...
...
@@ -108,6 +108,10 @@ class MatchEquipment extends Component {
componentDidMount
()
{
if
(
this
.
props
.
location
.
state
)
{
let
{
equipmentId
,
show
}
=
this
.
props
.
location
.
state
;
if
(
equipmentId
===
undefined
){
equipmentId
=
this
.
props
.
location
.
query
.
equipmentId
this
.
setState
({
equipmentId
:
equipmentId
});
}
let
{
searchParam
}
=
this
.
state
;
searchParam
.
pageNumber
=
0
;
searchParam
.
pageSize
=
10
;
...
...
@@ -120,6 +124,19 @@ class MatchEquipment extends Component {
this
.
setState
({
show
});
}
}
//兼容url直接请求
if
(
this
.
props
.
location
.
query
){
let
{
equipmentId
}
=
this
.
props
.
location
.
query
;
let
{
searchParam
}
=
this
.
state
;
searchParam
.
pageNumber
=
0
;
searchParam
.
pageSize
=
10
;
if
(
equipmentId
)
{
this
.
getEquipmentData
(
equipmentId
);
this
.
setState
({
equipmentId
},()
=>
this
.
getMatchEquipmentListData
(
searchParam
));
this
.
setState
({
equipmentId
},()
=>
this
.
getPrePlanPictureData
());
this
.
setState
({
equipmentId
:
equipmentId
});
}
}
}
componentWillReceiveProps
(
nextProps
)
{
...
...
@@ -195,7 +212,6 @@ class MatchEquipment extends Component {
// totalCount: data.totalElements
// });
// });
equipmentId
&&
getFireEquipmentListsAction
(
searchParam
,
equipmentId
,
param
.
pageNumber
,
param
.
pageSize
).
then
(
data
=>
{
this
.
setState
({
dataList
:
data
.
content
,
...
...
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