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
02c8e025
Commit
02c8e025
authored
Jan 29, 2021
by
王珂
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_upgrade' of 172.16.10.76:station/amos-convertor-view into dev_upgrade
parents
4f76d27a
792ee723
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
42 additions
and
31 deletions
+42
-31
urlConsts.js
src/consts/urlConsts.js
+2
-2
EquipmentModel.js
src/view/bizview/equipmentLedger/Equipment/EquipmentModel.js
+7
-0
RiskFactorModel.js
...bizview/preControl/paramSet/riskFactor/RiskFactorModel.js
+23
-16
index.js
src/view/bizview/preControl/paramSet/riskFactor/index.js
+3
-5
index.js
src/view/bizview/preControl/paramSet/riskLevel/index.js
+7
-7
index.js
src/view/bizview/preControl/riskModel/index.js
+0
-1
No files found.
src/consts/urlConsts.js
View file @
02c8e025
...
...
@@ -66,13 +66,13 @@ export const FscSerUrl = {
trajectoryUrl
:
completePrefix
(
fireBaseURI
,
'api/spc/trajectory/list?current={page}&pageSize={size}'
),
//右侧菜单-轨迹
msgCategoryListUrl
:
completePrefix
(
view3dURI
,
'msgCategoryListUrl'
),
//右侧菜单-消息-类别集合
msgUrl
:
completePrefix
(
fireBaseURI
,
'api/message/page?pageNumber={page}&pageSize={size}&time={time}&type={category}&title={title}'
),
//右侧菜单-消息 *
ruleRePlayUrl
:
completePrefix
(
fireB
aseURI
,
'urule/v1/rule/replay?batchNo={batchNo}'
),
//右侧菜单-步骤点击 *
ruleRePlayUrl
:
completePrefix
(
b
aseURI
,
'urule/v1/rule/replay?batchNo={batchNo}'
),
//右侧菜单-步骤点击 *
stepUrl
:
completePrefix
(
fireBaseURI
,
'api/timeline/contingency/page?current={page}&pageSize={size}'
),
//右侧菜单-步骤 *
broadcastTypeListUrl
:
completePrefix
(
view3dURI
,
'broadcastTypeListUrl'
),
//右侧菜单-播报-类型集合
broadcastUrl
:
completePrefix
(
fireBaseURI
,
'api/timeline/{instanceNo}?recordType={recordType}'
),
//右侧菜单-播报 *
markerDetailsUrl
:
completePrefix
(
view3dURI
,
'view3d/node/info?id={id}&type={type}'
),
//三维地图中各种点详情
tellRegionSelectUrl
:
completePrefix
(
view3dURI
,
'patrol/save/curCompany/{orgCode}'
),
// 注入选择的厂区信息 post
loadPackagesUrl
:
completePrefix
(
securityBaseWs
URI
,
'urule/v1/packageeditor/loadPackages?project={project}'
),
//风险管控查询
loadPackagesUrl
:
completePrefix
(
base
URI
,
'urule/v1/packageeditor/loadPackages?project={project}'
),
//风险管控查询
pointInfoUrl
:
completePrefix
(
fireBaseURI
,
'api/spc/queryPointById/{pointId}'
),
// 获取巡检点详情
...
...
src/view/bizview/equipmentLedger/Equipment/EquipmentModel.js
View file @
02c8e025
...
...
@@ -347,6 +347,9 @@ class EquipmentModel extends Component {
// AmosAlert.error('
错误
', e);
// });
}
handleUpload = () =>{
}
render() {
const { form, rules, chargeDeptData, chargeUserData, fireStationData, previewImage, previewVisible, project, riskSourceData } = this.state;
...
...
@@ -426,6 +429,7 @@ class EquipmentModel extends Component {
<FormItem label={<span>电源负荷图</span>} field={form.imageUrl1} {...formItemLayout}>
<div>
<Upload
customRequest={this.handleUpload}
className="upload-img"
fileList={form.imageUrl1}
listType="picture-card"
...
...
@@ -447,6 +451,7 @@ class EquipmentModel extends Component {
<FormItem label={<span>电缆沟封堵图</span>} field="picture2" {...formItemLayout}>
<div>
<Upload
customRequest={this.handleUpload}
className="upload-img"
fileList={form.imageUrl2}
listType="picture-card"
...
...
@@ -468,6 +473,7 @@ class EquipmentModel extends Component {
<FormItem label={<span>消防车进站行车路线图</span>} field="picture3" {...formItemLayout}>
<div>
<Upload
customRequest={this.handleUpload}
className="upload-img"
fileList={form.imageUrl3}
listType="picture-card"
...
...
@@ -489,6 +495,7 @@ class EquipmentModel extends Component {
<FormItem label={<span>消防取水图</span>} field="picture4" {...formItemLayout}>
<div>
<Upload
customRequest={this.handleUpload}
className="upload-img"
fileList={form.imageUrl4}
listType="picture-card"
...
...
src/view/bizview/preControl/paramSet/riskFactor/RiskFactorModel.js
View file @
02c8e025
import
React
,
{
Component
}
from
'react'
;
import
{
DatePicker
}
from
'amos-antd'
;
import
moment
from
'moment'
;
//
import { DatePicker } from 'amos-antd';
//
import moment from 'moment';
import
{
Form
,
AmosAlert
,
Input
,
Select
}
from
'amos-framework'
;
import
{
accidentTypeNoPageAction
,
riskFactorEditAction
}
from
'../../../../../services/preControlService'
;
import
{
queryDictsByCode
}
from
'../../../../../services/stationMaintenService'
;
const
FormItem
=
Form
.
Item
;
const
Option
=
Select
.
Option
;
const
TextArea
=
Input
.
TextArea
;
const
typeData
=
[{
id
:
1
,
name
:
'消防'
},{
id
:
2
,
name
:
'电力'
},{
id
:
3
,
name
:
'其他'
}];
/**
* 危险因素新增及编辑
*/
...
...
@@ -21,11 +21,12 @@ class RiskFactorModel extends Component {
accidentTypeId
:
null
,
type
:
''
},
accidentTypeData
:[],
typeData
:
[],
accidentTypeData
:
[],
rules
:
{
name
:
[{
required
:
true
,
message
:
'危险因素不能为空'
}],
accidentTypeId
:
[{
required
:
true
,
message
:
'失效模式/事故类型不能为空'
}],
type
:
[{
required
:
true
,
message
:
'分类不能为空'
}]
,
type
:
[{
required
:
true
,
message
:
'分类不能为空'
}]
}
};
}
...
...
@@ -33,18 +34,19 @@ class RiskFactorModel extends Component {
componentWillMount
=
()
=>
{
this
.
getAccidentTypeData
();
const
{
selectRowData
}
=
this
.
props
||
{};
if
(
selectRowData
){
let
form
=
{};
if
(
selectRowData
){
let
form
=
{};
Object
.
assign
(
form
,
selectRowData
);
if
(
form
.
accidentTypeId
){
form
.
accidentTypeId
=
parseInt
(
form
.
accidentTypeId
);
}
this
.
setState
({
form
});
}
queryDictsByCode
(
'INDUSTRY_TYPE'
).
then
(
typeData
=>
{
this
.
setState
({
typeData
});
});
};
getAccidentTypeData
=
()
=>
{
accidentTypeNoPageAction
().
then
(
data
=>
{
this
.
setState
({
accidentTypeData
:
data
});
});
}
onSelectChange
=
(
key
,
value
)
=>
{
const
{
form
}
=
this
.
state
;
...
...
@@ -52,6 +54,12 @@ class RiskFactorModel extends Component {
this
.
setState
({
form
});
};
getAccidentTypeData
=
()
=>
{
accidentTypeNoPageAction
().
then
(
data
=>
{
this
.
setState
({
accidentTypeData
:
data
});
});
}
handleSubmit
=
e
=>
{
this
.
form
.
validate
((
valid
,
dataValues
)
=>
{
if
(
valid
)
{
...
...
@@ -76,7 +84,7 @@ class RiskFactorModel extends Component {
}
render
()
{
const
{
form
,
rules
,
accidentTypeData
}
=
this
.
state
;
const
{
form
,
rules
,
accidentTypeData
,
typeData
}
=
this
.
state
;
const
formItemLayout
=
{
labelCol
:
{
xs
:
{
span
:
24
},
...
...
@@ -97,7 +105,6 @@ class RiskFactorModel extends Component {
};
return
(
<
div
className
=
"risk-factor-model"
>
<
Form
model
=
{
form
}
rules
=
{
rules
}
ref
=
{
component
=>
(
this
.
form
=
component
)}
>
<
FormItem
label
=
{
<
span
>
危险因素
<
/span>} field="name" {...formItemLayout}
>
...
...
@@ -116,8 +123,8 @@ class RiskFactorModel extends Component {
<
Select
className
=
"risk-factor-select"
data
=
{
typeData
}
renderOption
=
{
item
=>
<
Option
value
=
{
item
.
id
}
>
{
item
.
nam
e
}
<
/Option>
}
value
=
{
parseInt
(
form
.
type
)
}
renderOption
=
{
item
=>
<
Option
value
=
{
item
.
dictDataKey
}
>
{
item
.
dictDataValu
e
}
<
/Option>
}
value
=
{
form
.
type
}
onChange
=
{
e
=>
this
.
onSelectChange
(
'type'
,
e
)}
/
>
<
/FormItem
>
...
...
src/view/bizview/preControl/paramSet/riskFactor/index.js
View file @
02c8e025
...
...
@@ -6,7 +6,6 @@ import { Modal, AmosAlert } from 'amos-framework';
import
{
riskFactorDeleteAction
}
from
'../../../../../services/preControlService'
;
import
RiskFactorModel
from
'./RiskFactorModel'
;
const
typeEum
=
{
'1'
:
'消防'
,
'2'
:
'电力'
,
'3'
:
'其他'
};
const
getColumns
=
()
=>
{
return
[
{
...
...
@@ -27,10 +26,9 @@ const getColumns = () => {
},
{
title
:
'分类'
,
dataIndex
:
'type'
,
key
:
'type'
,
width
:
'10%'
,
render
:
text
=>
typeEum
[
text
]
dataIndex
:
'typeName'
,
key
:
'typeName'
,
width
:
'10%'
},
{
title
:
'维护部门'
,
...
...
src/view/bizview/preControl/paramSet/riskLevel/index.js
View file @
02c8e025
...
...
@@ -35,13 +35,13 @@ const getColumns = () => {
width
:
'10%'
,
className
:
'uant-table-thead'
},
{
title
:
'管控级别'
,
dataIndex
:
'manageLevelName'
,
key
:
'manageLevelName'
,
width
:
'10%'
,
className
:
'uant-table-thead'
},
//
{
//
title: '管控级别',
//
dataIndex: 'manageLevelName',
//
key: 'manageLevelName',
//
width: '10%',
//
className: 'uant-table-thead'
//
},
{
title
:
'图标颜色'
,
dataIndex
:
'color'
,
...
...
src/view/bizview/preControl/riskModel/index.js
View file @
02c8e025
...
...
@@ -353,7 +353,6 @@ class RiskModel extends Component {
};
onOk
=
(
modelFlag
,
toolBarFlag
)
=>
{
debugger
const
{
form
,
selectData
}
=
this
.
model
.
state
;
const
{
riskSourceId
,
fmeaId
}
=
this
.
state
;
if
(
modelFlag
===
'risk'
)
{
...
...
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