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
c7724223
Commit
c7724223
authored
Jun 19, 2020
by
suhuiguang
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
7106c28f
b6395653
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
64 additions
and
37 deletions
+64
-37
point.scss
src/styles/view/biz/point/point.scss
+1
-0
FireEquipmentModel.js
...tLedger/FireResources/FireEquipment/FireEquipmentModel.js
+1
-1
PointToolBar.js
...uipmentLedger/FireResources/FireEquipment/PointToolBar.js
+4
-4
FireStrengthAdd.js
...pmentLedger/FireResources/FireStrength/FireStrengthAdd.js
+7
-5
FireStrengthEdit.js
...mentLedger/FireResources/FireStrength/FireStrengthEdit.js
+3
-2
fireTruckModel.js
...equipmentLedger/FireResources/FireTruck/fireTruckModel.js
+14
-2
PointListView.js
src/view/bizview/point/PointListView.js
+1
-1
PointStatistics.js
src/view/bizview/point/PointStatistics.js
+28
-20
RiskLevelModel.js
...w/bizview/preControl/paramSet/riskLevel/RiskLevelModel.js
+3
-0
PointModel.js
src/view/bizview/preControl/riskModel/model/PointModel.js
+2
-2
No files found.
src/styles/view/biz/point/point.scss
View file @
c7724223
...
...
@@ -569,6 +569,7 @@
// border: 1px solid $core-border-color;
.ant-table
{
height
:
100%
;
border-radius
:
0
;
&
.ant-table-middle
{
...
...
src/view/bizview/equipmentLedger/FireResources/FireEquipment/FireEquipmentModel.js
View file @
c7724223
...
...
@@ -187,7 +187,7 @@ class FireEquipmentModel extends Component {
onChange
=
{
e
=>
this
.
onDateChange
(
'productionDate'
,
e
)}
/
>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
保养周期
<
/span>} field="maintenanceCycle" {...formItemLayout}
>
<
FormItem
label
=
{
<
span
>
保养周期
(
月
)
<
/span>} field="maintenanceCycle" {...formItemLayout}
>
<
InputNumber
className
=
"risk_factor_input"
required
value
=
{
form
.
maintenanceCycle
}
onChange
=
{
value
=>
this
.
onInputChange
(
'maintenanceCycle'
,
value
)}
/
>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
3
维坐标
<
/span>} field="position3d" {...formItemLayout}
>
...
...
src/view/bizview/equipmentLedger/FireResources/FireEquipment/PointToolBar.js
View file @
c7724223
...
...
@@ -74,11 +74,11 @@ class PointToolBar extends Component {
if
(
info
.
file
.
status
!==
'uploading'
)
{
console
.
log
(
info
.
file
,
info
.
fileList
);
}
if
(
info
.
file
.
status
===
'done'
)
{
message
.
success
(
`
${
info
.
file
.
name
}
上传
成功`
);
if
(
info
.
file
.
status
===
'done'
&&
info
.
file
.
response
.
success
)
{
message
.
success
(
`
${
info
.
file
.
name
}
导入
成功`
);
this
.
props
.
reload
();
}
else
if
(
info
.
file
.
status
===
'error'
)
{
message
.
danger
(
`
${
info
.
file
.
name
}
失败.`
);
}
else
if
(
info
.
file
.
status
===
'error'
||
!
info
.
file
.
response
.
success
)
{
message
.
danger
(
`
${
info
.
file
.
name
}
导入
失败.`
);
}
}
};
...
...
src/view/bizview/equipmentLedger/FireResources/FireStrength/FireStrengthAdd.js
View file @
c7724223
...
...
@@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
const
FormItem
=
Form
.
Item
;
const
Option
=
Select
.
Option
;
class
FireStrengthAdd
extends
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -27,11 +28,12 @@ class FireStrengthAdd extends Component {
username
:
[
{
required
:
true
,
message
:
'请输入名称'
}
],
//
position: [
//
{ required: true, message: '请输入职位' }
//
],
position
:
[
{
required
:
true
,
message
:
'请输入职位'
}
],
phone_num
:
[
{
required
:
true
,
message
:
'请输入移动号码'
}
{
required
:
true
,
message
:
'请输入移动号码'
},
{
pattern
:
/^1
[
3|4|5|7|8
][
0-9
]\d{8}
$/
,
message
:
'请输入正确的手机号'
}
]
}
};
...
...
@@ -104,7 +106,7 @@ class FireStrengthAdd extends Component {
renderOption
=
{
item
=>
<
Option
value
=
{
item
.
code
}
>
{
item
.
name
}
<
/Option>
}
onChange
=
{
e
=>
this
.
onSelectChange
(
'position'
,
e
)}
/
>
{
/* <Input
value={strength.position ? strength.position : ''}
onChange={(e) => this.onChange('position', e)}
...
...
src/view/bizview/equipmentLedger/FireResources/FireStrength/FireStrengthEdit.js
View file @
c7724223
...
...
@@ -34,7 +34,8 @@ class FireStrengthEdit extends Component {
{
required
:
true
,
message
:
'请输入职位'
}
],
phone_num
:
[
{
required
:
true
,
message
:
'请输入移动号码'
}
{
required
:
true
,
message
:
'请输入移动号码'
},
{
pattern
:
/^1
[
3|4|5|7|8
][
0-9
]\d{8}
$/
,
message
:
'请输入正确的手机号'
}
]
}
};
...
...
@@ -144,7 +145,7 @@ class FireStrengthEdit extends Component {
<
/FormItem
>
<
FormItem
label
=
"工作描述"
field
=
"jobDes"
{...
formItemLayout
}
>
<
Input
value
=
{
strength
.
job
Des
?
strength
.
jobD
es
:
''
}
value
=
{
strength
.
job
_des
?
strength
.
job_d
es
:
''
}
onChange
=
{(
e
)
=>
this
.
onChange
(
'jobDes'
,
e
)}
className
=
"risk_factor_input"
/>
...
...
src/view/bizview/equipmentLedger/FireResources/FireTruck/fireTruckModel.js
View file @
c7724223
...
...
@@ -36,8 +36,14 @@ class FireTruckModel extends Component {
chargeDeptData
:
[],
riskSourceData
:[],
rules
:
{
carNum
:
[{
required
:
true
,
message
:
'车牌号不能为空'
}],
name
:
[{
required
:
true
,
message
:
'名称不能为空'
}],
carNum
:
[
{
required
:
true
,
message
:
'车牌号不能为空'
},
{
max
:
20
,
message
:
'车牌号不能大于20个字符'
}
],
name
:
[
{
required
:
true
,
message
:
'名称不能为空'
},
{
max
:
100
,
message
:
'名称不能大于100个字符'
}
],
position3d
:
[{
validator
:
this
.
validPositon3d
}]
}
};
...
...
@@ -152,6 +158,12 @@ class FireTruckModel extends Component {
<
FormItem
label
=
{
<
span
>
3
维坐标
<
/span>} field="position3d" {...formItemLayout}
>
<
Input
className
=
"risk_factor_input"
required
disabled
=
{
!
this
.
props
.
editable
}
value
=
{
form
.
position3d
}
onChange
=
{
e
=>
this
.
onInputChange
(
'position3d'
,
e
.
target
.
value
)}
/
>
<
/FormItem
>
<
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
)}
/
>
<
/FormItem
>
<
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
)}
/
>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
3
维楼层
<
/span>} field="floor3d" {...formItemLayout}
>
<
Select
className
=
"fire-equip-select"
...
...
src/view/bizview/point/PointListView.js
View file @
c7724223
...
...
@@ -229,7 +229,7 @@ class PointListView extends Component {
return
(
<
div
className
=
"create-device-root"
>
<
div
className
=
"create-device-host-top"
>
<
div
className
=
"table-title"
>
风险
点信息列表
<
/div
>
<
div
className
=
"table-title"
>
巡检
点信息列表
<
/div
>
<
div
className
=
"table-search"
>
<
PointSearch
setSearchParam
=
{
this
.
setSearchParam
}
countStatus
=
{
status
}
/
>
<
/div
>
...
...
src/view/bizview/point/PointStatistics.js
View file @
c7724223
...
...
@@ -63,26 +63,26 @@ class PointStatistics extends Component {
itemStyle
:
{
normal
:
{
label
:
{
show
:
tru
e
,
position
:
'center'
,
formatter
:
function
(
params
)
{
let
dataIndex
=
params
.
dataIndex
;
if
(
parseInt
(
dataIndex
)
===
0
)
{
return
'{a|'
+
total
+
'}'
+
'
\
r
\
n'
+
'{b|'
+
'总数'
+
'}'
;
}
else
{
return
''
;
}
},
rich
:
{
a
:
{
fontSize
:
'28'
,
color
:
'black'
},
b
:
{
fontSize
:
'16'
,
color
:
'black'
}
}
show
:
fals
e
,
//
position: 'center',
//
formatter: function(params) {
//
let dataIndex = params.dataIndex;
//
if (parseInt(dataIndex) === 0) {
//
return '{a|' + total + '}' + '\r\n' + '{b|' + '总数' + '}';
//
} else {
//
return '';
//
}
//
},
//
rich: {
//
a: {
//
fontSize: '28',
//
color: 'black'
//
},
//
b: {
//
fontSize: '16',
//
color: 'black'
//
}
//
}
},
labelLine
:
{
show
:
false
...
...
@@ -132,6 +132,14 @@ render(){
<
div
className
=
"point-statistics-concent"
>
异常点数:
<
span
>
{
error
}
<
/span
>
<
/div
>
{
total
&&
<
div
className
=
"point-statistics-label"
>
{
total
}
<
br
/>
总数
<
/div
>
}
<
/div
>
);
}
...
...
src/view/bizview/preControl/paramSet/riskLevel/RiskLevelModel.js
View file @
c7724223
...
...
@@ -130,6 +130,9 @@ class RiskLevelModel extends Component {
onChange
=
{(
value
)
=>
this
.
onSelectChange
(
'level'
,
value
)}
/
>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
图标颜色
<
/span>}{...formItemLayout}
>
<
Input
value
=
{
form
.
color
}
disabled
/>
<
/FormItem
>
<
FormItem
label
=
{
<
span
>
上限
<
/span>} field="topLimit" {...formItemLayout}
>
<
InputNumber
defaultValue
=
{
1
}
max
=
{
1000
}
min
=
{
1
}
value
=
{
form
.
topLimit
}
onChange
=
{
value
=>
this
.
onChange
(
value
,
'topLimit'
)}
/
>
<
/FormItem
>
...
...
src/view/bizview/preControl/riskModel/model/PointModel.js
View file @
c7724223
...
...
@@ -173,7 +173,7 @@ class PointModel extends Component {
let
{
pointId
}
=
this
.
state
;
let
searchParam
=
[];
value
&&
searchParam
.
push
({
name
:
e
,
value
});
pointId
&&
searchParam
.
push
({
name
:
'pointId'
,
value
:
pointId
});
//
pointId && searchParam.push({ name: 'pointId', value: pointId });
this
.
setState
({
searchParam
,[
e
]:
value
},()
=>
this
.
questStatistiscData
({
pageNumber
:
0
,
pageSize
:
10
}));
};
...
...
@@ -232,7 +232,7 @@ class PointModel extends Component {
<
div
className
=
"point-model"
>
<
div
className
=
"point-model-left"
>
<
div
className
=
"point-model-title"
>
<
span
>
责任部门
555
:
<
/span
>
<
span
>
责任部门:
<
/span
>
<
Select
className
=
"point-model_select"
data
=
{
deptData
}
...
...
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