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