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
d229ae87
Commit
d229ae87
authored
Sep 30, 2020
by
吴俊凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改提交
parent
26ff28d4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
25 deletions
+23
-25
MonitorPointConfig.js
...tLedger/FireResources/FireEquipment/MonitorPointConfig.js
+0
-2
PointConfig.js
...quipmentLedger/FireResources/FireEquipment/PointConfig.js
+4
-5
PointConfigModel.js
...entLedger/FireResources/FireEquipment/PointConfigModel.js
+8
-3
fireTruckModel.js
...equipmentLedger/FireResources/FireTruck/fireTruckModel.js
+5
-5
FireFoamAdd.js
...iew/equipmentLedger/FireResources/fireFoam/FireFoamAdd.js
+2
-4
FireFoamDetail.js
.../equipmentLedger/FireResources/fireFoam/FireFoamDetail.js
+2
-3
FireFoamEdit.js
...ew/equipmentLedger/FireResources/fireFoam/FireFoamEdit.js
+2
-3
No files found.
src/view/bizview/equipmentLedger/FireResources/FireEquipment/MonitorPointConfig.js
View file @
d229ae87
...
@@ -285,7 +285,6 @@ class MonitorPointConfig extends Component {
...
@@ -285,7 +285,6 @@ class MonitorPointConfig extends Component {
const
{
form
,
monitorPointId
,
shwoConfig
,
selectedRowKeys
}
=
this
.
state
;
const
{
form
,
monitorPointId
,
shwoConfig
,
selectedRowKeys
}
=
this
.
state
;
let
MonitorPoint
=
Object
();
let
MonitorPoint
=
Object
();
Object
.
assign
(
MonitorPoint
,
form
);
Object
.
assign
(
MonitorPoint
,
form
);
debugger
if
(
monitorPointId
)
{
// 编辑时
if
(
monitorPointId
)
{
// 编辑时
MonitorPoint
.
id
=
monitorPointId
;
MonitorPoint
.
id
=
monitorPointId
;
updateMonitorPointAction
(
MonitorPoint
).
then
(
updateMonitorPointAction
(
MonitorPoint
).
then
(
...
@@ -446,7 +445,6 @@ debugger
...
@@ -446,7 +445,6 @@ debugger
}
}
configEquip
=
()
=>
{
configEquip
=
()
=>
{
debugger
let
{
selectedRowKeys
,
selectedRows
,
form
}
=
this
.
state
;
let
{
selectedRowKeys
,
selectedRows
,
form
}
=
this
.
state
;
...
...
src/view/bizview/equipmentLedger/FireResources/FireEquipment/PointConfig.js
View file @
d229ae87
...
@@ -23,25 +23,24 @@ class PointConfig extends Component {
...
@@ -23,25 +23,24 @@ class PointConfig extends Component {
},
},
_disabled
:
true
,
_disabled
:
true
,
alarmTypeData
:
[],
alarmTypeData
:
[],
fireEquipmentData
:
[]
fireEquipmentData
:
[]
};
};
}
}
componentWillMount
=
()
=>
{
componentWillMount
=
()
=>
{
this
.
loadFireEquipment
();
this
.
loadFireEquipment
();
debugger
let
{
form
}
=
this
.
state
;
let
{
form
}
=
this
.
state
;
form
[
'fireEquipmentId'
]
=
this
.
props
.
fireEquipmentId
;
form
[
'fireEquipmentId'
]
=
this
.
props
.
fireEquipmentId
;
this
.
setState
({
this
.
setState
({
form
form
});
});
};
};
componentWillReceiveProps
(
nextProps
)
{
componentWillReceiveProps
(
nextProps
)
{
this
.
loadFireEquipment
();
this
.
loadFireEquipment
();
}
}
loadFireEquipment
=
()
=>
{
loadFireEquipment
=
()
=>
{
...
@@ -54,7 +53,7 @@ class PointConfig extends Component {
...
@@ -54,7 +53,7 @@ class PointConfig extends Component {
let
{
form
}
=
this
.
state
;
let
{
form
}
=
this
.
state
;
form
[
key
]
=
value
;
form
[
key
]
=
value
;
this
.
setState
({
this
.
setState
({
form
form
});
});
this
.
props
.
setParam
(
form
);
this
.
props
.
setParam
(
form
);
};
};
...
...
src/view/bizview/equipmentLedger/FireResources/FireEquipment/PointConfigModel.js
View file @
d229ae87
...
@@ -96,7 +96,6 @@ class PointConfigModel extends Component {
...
@@ -96,7 +96,6 @@ class PointConfigModel extends Component {
}
}
onSelectChange
=
(
key
,
value
)
=>
{
onSelectChange
=
(
key
,
value
)
=>
{
debugger
let
{
form
}
=
this
.
state
;
let
{
form
}
=
this
.
state
;
form
[
key
]
=
value
;
form
[
key
]
=
value
;
let
_this
=
this
;
let
_this
=
this
;
...
@@ -176,10 +175,16 @@ class PointConfigModel extends Component {
...
@@ -176,10 +175,16 @@ class PointConfigModel extends Component {
searchable
searchable
data
=
{
fireEquipmentData
}
data
=
{
fireEquipmentData
}
value
=
{
form
.
fireEquipmentId
}
value
=
{
form
.
fireEquipmentId
}
renderOption
=
{
item
=>
<
Option
value
=
{
item
.
id
}
>
{
item
.
name
}({
item
.
code
})
<
/Option>
}
//
renderOption={item => <Option value={item.id}>{item.name}({item.code})</Option>}
onChange
=
{
e
=>
this
.
onSelectChange
(
'fireEquipmentId'
,
e
)}
onChange
=
{
e
=>
this
.
onSelectChange
(
'fireEquipmentId'
,
e
)}
className
=
"monitor-point-config-form-select"
className
=
"monitor-point-config-form-select"
/>
>
<
Option
>
请选择
<
/Option
>
{
fireEquipmentData
.
map
(
e
=>
<
Option
key
=
{
e
.
id
}
value
=
{
e
.
id
}
>
{
e
.
name
}
<
/Option>
)
}
<
/Select
>
<
/FormItem
>
<
/FormItem
>
<
/Form
>
<
/Form
>
<
/div
>
<
/div
>
...
...
src/view/bizview/equipmentLedger/FireResources/FireTruck/fireTruckModel.js
View file @
d229ae87
...
@@ -162,10 +162,10 @@ class FireTruckModel extends Component {
...
@@ -162,10 +162,10 @@ class FireTruckModel extends Component {
<
Input
className
=
"risk_factor_input"
required
disabled
=
{
!
this
.
props
.
editable
}
value
=
{
form
.
position3d
}
onChange
=
{
e
=>
this
.
onInputChange
(
'position3d'
,
e
.
target
.
value
)}
/
>
<
Input
className
=
"risk_factor_input"
required
disabled
=
{
!
this
.
props
.
editable
}
value
=
{
form
.
position3d
}
onChange
=
{
e
=>
this
.
onInputChange
(
'position3d'
,
e
.
target
.
value
)}
/
>
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
ue4
位置
<
/span>} field="ue4Location" {...formItemLayout}
>
<
FormItem
label
=
{
<
span
>
ue4
位置
<
/span>} field="ue4Location" {...formItemLayout}
>
<
Input
className
=
"risk_factor_input"
required
disabled
=
{
!
this
.
props
.
editable
}
value
=
{
form
.
ue4Location
}
onChange
=
{
e
=>
this
.
onInputChange
(
'ue4Location'
,
e
.
target
.
value
)}
/
>
<
Input
className
=
"risk_factor_input"
required
disabled
=
{
!
this
.
props
.
editable
}
value
=
{
form
.
ue4Location
===
"null"
?
''
:
form
.
ue4Location
}
onChange
=
{
e
=>
this
.
onInputChange
(
'ue4Location'
,
e
.
target
.
value
)}
/
>
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
ue4
旋转
<
/span>} field="ue4Rotation" {...formItemLayout}
>
<
FormItem
label
=
{
<
span
>
ue4
旋转
<
/span>} field="ue4Rotation" {...formItemLayout}
>
<
Input
className
=
"risk_factor_input"
required
disabled
=
{
!
this
.
props
.
editable
}
value
=
{
form
.
ue4Rotation
}
onChange
=
{
e
=>
this
.
onInputChange
(
'ue4Rotation'
,
e
.
target
.
value
)}
/
>
<
Input
className
=
"risk_factor_input"
required
disabled
=
{
!
this
.
props
.
editable
}
value
=
{
form
.
ue4Rotation
===
"null"
?
''
:
form
.
ue4Rotation
}
onChange
=
{
e
=>
this
.
onInputChange
(
'ue4Rotation'
,
e
.
target
.
value
)}
/
>
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
3
维楼层
<
/span>} field="floor3d" {...formItemLayout}
>
<
FormItem
label
=
{
<
span
>
3
维楼层
<
/span>} field="floor3d" {...formItemLayout}
>
<
Select
<
Select
...
@@ -179,9 +179,9 @@ class FireTruckModel extends Component {
...
@@ -179,9 +179,9 @@ class FireTruckModel extends Component {
/
>
/
>
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
是否室内
<
/span>} field="isIndoor" {...formItemLayout}
>
<
FormItem
label
=
{
<
span
>
是否室内
<
/span>} field="isIndoor" {...formItemLayout}
>
<
RadioGroup
defaultValue
=
{
form
.
isIndoor
}
disabled
=
{
!
this
.
props
.
editable
}
value
=
{
form
.
isIndoor
}
onChange
=
{
e
=>
this
.
onInputChange
(
'isIndoor'
,
e
)}
>
<
RadioGroup
defaultValue
=
{
form
.
isIndoor
}
value
=
{
form
.
isIndoor
}
onChange
=
{
e
=>
this
.
onInputChange
(
'isIndoor'
,
e
)}
>
<
Radio
value
=
{
false
}
>
否
<
/Radio
>
<
Radio
disabled
=
{
form
.
isIndoor
&&!
this
.
props
.
editable
}
value
=
{
false
}
>
否
<
/Radio
>
<
Radio
value
=
{
true
}
>
是
<
/Radio
>
<
Radio
disabled
=
{
!
form
.
isIndoor
&&!
this
.
props
.
editable
}
value
=
{
true
}
>
是
<
/Radio
>
<
/RadioGroup
>
<
/RadioGroup
>
<
/FormItem
>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
车牌号
<
/span>} field="carNum" {...formItemLayout}
>
<
FormItem
label
=
{
<
span
>
车牌号
<
/span>} field="carNum" {...formItemLayout}
>
...
...
src/view/bizview/equipmentLedger/FireResources/fireFoam/FireFoamAdd.js
View file @
d229ae87
...
@@ -21,8 +21,7 @@ class FireFoamAdd extends Component {
...
@@ -21,8 +21,7 @@ class FireFoamAdd extends Component {
position3d
:
''
,
position3d
:
''
,
floor3d
:
'1'
,
floor3d
:
'1'
,
isIndoor
:
true
,
isIndoor
:
true
,
picture
:
[],
picture
:
[]
riskSourceId
:
undefined
},
},
previewVisible
:
false
,
previewVisible
:
false
,
previewImage
:
''
,
previewImage
:
''
,
...
@@ -154,7 +153,6 @@ class FireFoamAdd extends Component {
...
@@ -154,7 +153,6 @@ class FireFoamAdd extends Component {
<
div
className
=
"amos-upload-text"
>
选择图片
<
/div
>
<
div
className
=
"amos-upload-text"
>
选择图片
<
/div
>
<
/div
>
<
/div
>
);
);
return
(
return
(
<
Form
className
=
"basic-demo"
model
=
{
station
}
rules
=
{
rules
}
ref
=
{
component
=>
this
.
form
=
component
}
>
<
Form
className
=
"basic-demo"
model
=
{
station
}
rules
=
{
rules
}
ref
=
{
component
=>
this
.
form
=
component
}
>
<
FormItem
label
=
{
<
span
>
泡沫间名称
<
/span>} field="name" {...formItemLayout}
>
<
FormItem
label
=
{
<
span
>
泡沫间名称
<
/span>} field="name" {...formItemLayout}
>
...
@@ -171,7 +169,7 @@ class FireFoamAdd extends Component {
...
@@ -171,7 +169,7 @@ class FireFoamAdd 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/fireFoam/FireFoamDetail.js
View file @
d229ae87
...
@@ -20,8 +20,7 @@ class FireFoamDetail extends Component {
...
@@ -20,8 +20,7 @@ class FireFoamDetail extends Component {
address
:
''
,
address
:
''
,
position3d
:
''
,
position3d
:
''
,
floor3d
:
''
,
floor3d
:
''
,
isIndoor
:
true
,
isIndoor
:
true
riskSourceId
:
0
}
}
};
};
}
}
...
@@ -75,7 +74,7 @@ class FireFoamDetail extends Component {
...
@@ -75,7 +74,7 @@ class FireFoamDetail extends Component {
data
=
{
riskSourceData
}
data
=
{
riskSourceData
}
renderOption
=
{
item
=>
<
Option
value
=
{
parseInt
(
item
.
id
)}
>
{
item
.
name
}
<
/Option>
}
renderOption
=
{
item
=>
<
Option
value
=
{
parseInt
(
item
.
id
)}
>
{
item
.
name
}
<
/Option>
}
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/fireFoam/FireFoamEdit.js
View file @
d229ae87
...
@@ -24,8 +24,7 @@ class FireFoamEdit extends Component {
...
@@ -24,8 +24,7 @@ class FireFoamEdit extends Component {
position3d
:
''
,
position3d
:
''
,
floor3d
:
'1'
,
floor3d
:
'1'
,
isIndoor
:
true
,
isIndoor
:
true
,
picture
:
[],
picture
:
[]
riskSourceId
:
0
},
},
previewVisible
:
false
,
previewVisible
:
false
,
previewImage
:
''
,
previewImage
:
''
,
...
@@ -203,7 +202,7 @@ class FireFoamEdit extends Component {
...
@@ -203,7 +202,7 @@ class FireFoamEdit 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>
...
...
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