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
ee038bf0
Commit
ee038bf0
authored
Nov 19, 2020
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upgrade' into equip
parents
0166f09f
f30e4b03
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
53 additions
and
49 deletions
+53
-49
ledgerService.js
src/services/ledgerService.js
+9
-1
FireEquipmentToolBar.js
...edger/FireResources/FireEquipment/FireEquipmentToolBar.js
+3
-0
MonitorPointConfig.js
...tLedger/FireResources/FireEquipment/MonitorPointConfig.js
+4
-0
FireStationAdd.js
...uipmentLedger/FireResources/FireStation/FireStationAdd.js
+1
-2
fireStation.js
.../equipmentLedger/FireResources/FireStation/fireStation.js
+12
-20
FireDetectorToolBar.js
...tLedger/FireResources/fireDetector/FireDetectorToolBar.js
+3
-0
fireFoam.js
...izview/equipmentLedger/FireResources/fireFoam/fireFoam.js
+9
-26
BizFrame.js
src/view/mainframe/BizFrame.js
+12
-0
No files found.
src/services/ledgerService.js
View file @
ee038bf0
...
...
@@ -557,7 +557,15 @@ export const getFireDetectorListAction = (filter, page, size) => {
export
const
getpreControlFireStationDetailAction
=
(
id
)
=>
{
return
commonGet
(
formatUrl
(
FasSerUrl
.
xiaofangxiaoshiUrl
,
{
id
}));
};
/**
* 新增消防小室
*
* @param {*} equipmentId
* @param {*} fireEquipmentId
*/
export
const
addFireStation
=
(
data
)
=>
{
return
commonPost
(
FasSerUrl
.
getFireStationInfoUrl
,
data
);
};
export
const
queryDictsByCode
=
(
code
)
=>
{
return
commonGet
(
formatUrl
(
FasSerUrl
.
dictListUrl
,
{
code
}));
...
...
src/view/bizview/equipmentLedger/FireResources/FireEquipment/FireEquipmentToolBar.js
View file @
ee038bf0
...
...
@@ -46,6 +46,9 @@ class FireEquipmentToolBar extends Component {
let
{
searchParam
}
=
this
.
state
;
let
{
getTableListData
,
pageConfig
}
=
this
.
props
;
this
.
setState
({
name
:
value
});
if
(
value
===
'#'
){
value
=
'%23'
}
searchParam
.
name
=
value
;
searchParam
.
pageNumber
=
pageConfig
.
pageNumber
;
searchParam
.
pageSize
=
pageConfig
.
pageSize
;
...
...
src/view/bizview/equipmentLedger/FireResources/FireEquipment/MonitorPointConfig.js
View file @
ee038bf0
...
...
@@ -171,6 +171,10 @@ class MonitorPointConfig extends Component {
}
getMonitorPointListData
=
(
param
)
=>
{
this
.
setState
({
selectedRows
:[],
selectedRowKeys
:[]
})
if
(
!
param
)
{
return
;
}
...
...
src/view/bizview/equipmentLedger/FireResources/FireStation/FireStationAdd.js
View file @
ee038bf0
...
...
@@ -21,7 +21,6 @@ class FireStationAdd extends Component {
position3d
:
''
,
floor3d
:
'1'
,
isIndoor
:
true
,
riskSourceId
:
undefined
,
picture
:
[]
},
previewVisible
:
false
,
...
...
@@ -174,7 +173,7 @@ class FireStationAdd extends Component {
dropdownStyle
=
{{
maxHeight
:
200
,
overflow
:
'auto'
}}
treeData
=
{
riskSourceData
}
placeholder
=
"请选择"
value
=
{
station
.
riskSourceId
}
value
=
{
station
.
riskSourceId
===
null
?
undefined
:
station
.
riskSourceId
}
onChange
=
{
e
=>
this
.
onSelectChange
(
'riskSourceId'
,
e
)}
/
>
<
/FormItem
>
...
...
src/view/bizview/equipmentLedger/FireResources/FireStation/fireStation.js
View file @
ee038bf0
...
...
@@ -10,15 +10,18 @@ import FireStationEdit from './FireStationEdit';
import
FireStationAdd
from
'./FireStationAdd'
;
import
FireStatioinToolBar
from
'./fireStatioinToolBar'
;
import
{
pathMapping
}
from
'./../../../../../routes/customRoutes'
;
import
{
deleteFireStationDataAction
,
getFireStationAction
}
from
'../../../../../services/ledgerService'
;
import
{
deleteFireStationDataAction
,
deleteFireStationMatchesAction
,
getFireStationAction
}
from
'../../../../../services/ledgerService'
;
import
{
queryRegionTreeAction
}
from
'../../../../../services/preControlService'
;
import
{
FasSerUrl
}
from
'../../../../../consts/urlConsts
'
;
import
{
addFireStation
}
from
'./../../../../../services/ledgerService
'
;
const
fireStationPath
=
pathMapping
.
stationMatches
;
const
ls
=
_amosTool
.
Store
.
lsTool
;
const
apiKey
=
SysConsts
.
api_key
;
const
token
=
SysConsts
.
token
;
const
url
=
FasSerUrl
.
getFireStationInfoUrl
;
const
fireStationTableColumns
=
self
=>
{
return
[
...
...
@@ -337,27 +340,16 @@ class FireStationTableView extends Component {
formData
.
append
(
item
,
station
[
item
]);
}
});
fetch
(
url
,
{
method
:
'post'
,
headers
:
{
Accept
:
'application/json;charset=UTF-8'
,
'X-Api-Key'
:
_amosTool
.
Store
.
getCookieByName
(
apiKey
),
'X-Access-Token'
:
ls
.
read
(
token
),
'appKey'
:
'CONVERTER_STATION'
,
'product'
:
'CONVERTER_STATION_WEB'
,
'token'
:
ls
.
read
(
token
)
},
body
:
formData
})
.
then
(
e
=>
{
addFireStation
(
formData
).
then
(
data
=>
{
AmosAlert
.
success
(
'提示'
,
'保存成功'
);
this
.
cancel
();
// this.getFireStationData(this.pageConfig);
this
.
state
.
reload
();
}
)
.
catch
(
e
=>
{
}
,
err
=>
{
AmosAlert
.
error
(
'错误'
,
'保存失败'
);
});
}
);
}
add
=
()
=>
{
...
...
src/view/bizview/equipmentLedger/FireResources/fireDetector/FireDetectorToolBar.js
View file @
ee038bf0
...
...
@@ -26,6 +26,9 @@ class FireDetectorToolBar extends Component {
let
{
searchParam
}
=
this
.
state
;
let
{
getTableListData
,
pageConfig
}
=
this
.
props
;
this
.
setState
({
name
:
value
});
if
(
value
===
'#'
){
value
=
'%23'
}
searchParam
.
name
=
value
;
searchParam
.
pageNumber
=
pageConfig
.
pageNumber
;
searchParam
.
pageSize
=
pageConfig
.
pageSize
;
...
...
src/view/bizview/equipmentLedger/FireResources/fireFoam/fireFoam.js
View file @
ee038bf0
...
...
@@ -8,17 +8,15 @@ import AmosGridTable from './../../../common/tableComponent/table/AmosGridTable'
import
FireReourceDetail
from
'./FireFoamDetail'
;
import
FireReourceEdit
from
'./FireFoamEdit'
;
import
FireReourceAdd
from
'./FireFoamAdd'
;
import
{
deleteFireStationDataAction
,
getFireStationAction
}
from
'../../../../../services/ledgerService'
;
import
{
deleteFireStationDataAction
,
getFireStationAction
,
addFireStation
}
from
'../../../../../services/ledgerService'
;
import
{
queryRegionTreeAction
}
from
'../../../../../services/preControlService'
;
import
FireFoamToolBar
from
'./fireFoamToolBar'
;
import
{
pathMapping
}
from
'./../../../../../routes/customRoutes'
;
import
{
FasSerUrl
}
from
'../../../../../consts/urlConsts'
;
const
fireFoamPath
=
pathMapping
.
stationMatches
;
const
ls
=
_amosTool
.
Store
.
lsTool
;
const
apiKey
=
SysConsts
.
api_key
;
const
token
=
SysConsts
.
token
;
const
url
=
FasSerUrl
.
getFireStationInfoUrl
;
const
fireFoamTableColumns
=
self
=>
{
return
[
...
...
@@ -335,31 +333,16 @@ class FireFoamable extends Component {
formData
.
append
(
item
,
station
[
item
]);
}
});
fetch
(
url
,
{
method
:
'post'
,
headers
:
{
Accept
:
'application/json;charset=UTF-8'
,
'X-Api-Key'
:
_amosTool
.
Store
.
getCookieByName
(
apiKey
),
'X-Access-Token'
:
ls
.
read
(
token
),
'appKey'
:
'CONVERTER_STATION'
,
'product'
:
'CONVERTER_STATION_WEB'
,
'token'
:
ls
.
read
(
token
)
addFireStation
(
formData
).
then
(
data
=>
{
AmosAlert
.
success
(
'提示'
,
'保存成功'
);
this
.
cancel
();
this
.
state
.
reload
();
},
body
:
formData
})
.
then
(
e
=>
{
if
(
e
.
status
===
200
){
AmosAlert
.
success
(
'提示'
,
'保存成功'
);
this
.
cancel
();
// this.getFireStationData(this.pageConfig);
this
.
state
.
reload
();
}
else
{
AmosAlert
.
error
(
'错误'
,
'保存失败,请检查编号是否重复!'
);
}
})
.
catch
(
e
=>
{
err
=>
{
AmosAlert
.
error
(
'错误'
,
'保存失败'
);
});
}
);
}
add
=
()
=>
{
...
...
src/view/mainframe/BizFrame.js
View file @
ee038bf0
...
...
@@ -57,6 +57,18 @@ class BizFrame extends Component {
}
}
componentDidMount
()
{
const
is
=
window
.
location
.
href
.
indexOf
(
'isShow='
);
if
(
is
!==
-
1
)
{
const
header
=
document
.
getElementsByClassName
(
'header'
)[
0
];
if
(
header
)
{
const
body
=
document
.
getElementsByClassName
(
'content-body'
)[
0
];
body
.
style
.
top
=
'0px'
;
header
.
style
.
display
=
'none'
;
}
}
}
/**
* 处理三维地图上各种点的跳转
*/
...
...
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