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
f0d0dfa6
Commit
f0d0dfa6
authored
Mar 23, 2021
by
田涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug768修复-电力设备,添加配套设备页面,按分类搜索结果错误
parent
44bd8dac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
+16
-12
urlConsts.js
src/consts/urlConsts.js
+1
-0
ledgerService.js
src/services/ledgerService.js
+9
-2
EquipmentFireEquipmentAdd.js
...ew/equipmentLedger/Equipment/EquipmentFireEquipmentAdd.js
+6
-10
No files found.
src/consts/urlConsts.js
View file @
f0d0dfa6
...
...
@@ -151,6 +151,7 @@ export const FasSerUrl = {
fireEquipmentClassifyAllListUrl
:
completePrefix
(
fireBaseURI
,
'api/firequment/point/listByType?equipClassify={equipClassify}'
),
//获取消防装备列表
fireEquipmentListUrl
:
completePrefix
(
fireBaseURI
,
'api/fireSource/info/page?name={name}&code={code}&equipClassify={equipClassify}&pageNumber={page}&pageSize={size}&bindStation={bindStation}'
),
//获取消防装备列表
getFireEquipmentListstUrl
:
completePrefix
(
fireBaseURI
,
'api/equipment/getEquipmentBySpe?name={name}&code={code}&pageNumber={page}&pageSize={size}&equipmentId={equipmentId}'
),
//新-获取消防装备列表
getFireEquipmentListstUrlV2
:
completePrefix
(
fireBaseURI
,
'api/equipment/getEquipmentBySpeV2?name={name}&code={code}&pageNumber={page}&pageSize={size}&equipmentId={equipmentId}'
),
//新-获取消防装备列表
monitorPointListUrl
:
completePrefix
(
fireBaseURI
,
'api/firequment/point/page?pageNumber={page}&pageSize={size}&type={type}&searchValue={searchValue}'
),
//获取消防装备已配置监测点位列表
monitorPointEditUrl
:
completePrefix
(
fireBaseURI
,
'api/firequment/point'
),
//新增/更新消防装备监测点位
monitorPointDeleteUrl
:
completePrefix
(
fireBaseURI
,
'api/firequment/point/batch/delete?pointIds={ids}'
),
//删除消防装备监测点位
...
...
src/services/ledgerService.js
View file @
f0d0dfa6
...
...
@@ -46,12 +46,19 @@ export const getFireEquipmentListsAction = (filter,equipmentId, page, size) => {
name
=
name
===
undefined
?
null
:
name
;
code
=
code
===
undefined
?
null
:
code
;
equipmentId
=
equipmentId
===
undefined
?
null
:
equipmentId
;
// bindStation = bindStation === undefined ? '' : bindStation;
// equipClassify = equipClassify === undefined ? '0,1,3' : equipClassify;
let
url
=
formatUrl
(
FasSerUrl
.
getFireEquipmentListstUrl
,
{
name
,
code
,
page
,
size
,
equipmentId
});
return
commonGet
(
url
);
};
export
const
getFireEquipmentListsActionV2
=
(
filter
,
equipmentId
,
page
,
size
)
=>
{
let
{
name
,
code
}
=
filter
;
name
=
name
===
undefined
?
null
:
name
;
code
=
code
===
undefined
?
null
:
code
;
equipmentId
=
equipmentId
===
undefined
?
null
:
equipmentId
;
let
url
=
formatUrl
(
FasSerUrl
.
getFireEquipmentListstUrlV2
,
{
name
,
code
,
page
,
size
,
equipmentId
});
return
commonGet
(
url
);
};
/**
* 已配置点位列表
*
...
...
src/view/bizview/equipmentLedger/Equipment/EquipmentFireEquipmentAdd.js
View file @
f0d0dfa6
import
React
,
{
Component
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
{
Select
,
Input
}
from
'amos-framework'
;
import
AmosGridTable
from
'./../../common/tableComponent/table/AmosGridTable'
;
import
{
Input
}
from
'amos-framework'
;
import
{
TreeSelect
}
from
'amos-antd'
;
import
AmosGridTable
from
'./../../common/tableComponent/table/AmosGridTable'
;
// import { getFireEquipmentListAction } from './../../../../services/ledgerService';
import
{
getFiltersAction
,
getFireEquipmentListsAction
}
from
'./../../../../services/ledgerService'
;
import
{
getFiltersAction
,
getFireEquipmentListsAction
V2
}
from
'./../../../../services/ledgerService'
;
import
EditableCell
from
'./../../common/editableCell/EditableCell'
;
import
{
consts
}
from
'amos-tool'
;
import
'../index.scss'
;
const
Option
=
Select
.
Option
;
const
fireEquipmentTableColumns
=
self
=>
{
return
[
{
...
...
@@ -123,7 +119,7 @@ class EquipmentFireEquipmentAdd extends Component {
onSelectChange
(
value
)
{
const
{
searchParam
}
=
this
.
state
;
searchParam
.
code
=
value
;
searchParam
.
equipmentId
=
value
;
searchParam
.
pageNumber
=
this
.
pageConfig
.
pageNumber
;
searchParam
.
pageSize
=
this
.
pageConfig
.
pageSize
;
this
.
setState
({
...
...
@@ -182,7 +178,7 @@ class EquipmentFireEquipmentAdd extends Component {
// totalCount: data.totalElements
// });
// });
getFireEquipmentListsAction
(
searchParam
,
null
,
param
.
pageNumber
,
param
.
pageSize
).
then
(
data
=>
{
getFireEquipmentListsAction
V2
(
searchParam
,
param
.
equipmentId
,
param
.
pageNumber
,
param
.
pageSize
).
then
(
data
=>
{
this
.
setState
({
dataList
:
data
.
content
,
totalCount
:
data
.
totalElements
...
...
@@ -220,7 +216,7 @@ class EquipmentFireEquipmentAdd extends Component {
let
data
=
[];
if
(
arr
.
length
>
0
)
{
arr
.
forEach
((
item
,
i
)
=>
{
data
.
push
({
label
:
item
.
name
,
value
:
item
.
code
,
children
:
[]
});
data
.
push
({
label
:
item
.
name
,
value
:
item
.
id
,
children
:
[]
});
if
(
item
.
children
.
length
>
0
)
{
data
[
i
].
children
=
this
.
formatterCategory
(
item
.
children
);
}
...
...
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