Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-station-module-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-station-module-view
Commits
f17782fc
Commit
f17782fc
authored
Jun 19, 2020
by
张博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、去掉5级
2、增加无等级校验
parent
f89390fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
conf.js
mods/components/3dviewConvertor/view/conf.js
+4
-4
index.js
mods/components/3dviewConvertor/view/searchPane/index.js
+6
-3
No files found.
mods/components/3dviewConvertor/view/conf.js
View file @
f17782fc
...
@@ -100,8 +100,8 @@ export const bizControls = [
...
@@ -100,8 +100,8 @@ export const bizControls = [
{
key
:
'level_1'
,
label
:
'1级'
},
{
key
:
'level_1'
,
label
:
'1级'
},
{
key
:
'level_2'
,
label
:
'2级'
},
{
key
:
'level_2'
,
label
:
'2级'
},
{
key
:
'level_3'
,
label
:
'3级'
},
{
key
:
'level_3'
,
label
:
'3级'
},
{
key
:
'level_4'
,
label
:
'4级'
}
,
{
key
:
'level_4'
,
label
:
'4级'
}
{
key
:
'level_5'
,
label
:
'5级'
}
//
{ key: 'level_5', label: '5级' }
]
},
]
},
{
key
:
'risk-point'
,
icon
:
'dianwei-zhongdianshebei'
,
type
:
'patrol'
,
label
:
'巡检点'
,
subs
:
[
{
key
:
'risk-point'
,
icon
:
'dianwei-zhongdianshebei'
,
type
:
'patrol'
,
label
:
'巡检点'
,
subs
:
[
{
key
:
'level_3'
,
label
:
'漏检'
},
{
key
:
'level_3'
,
label
:
'漏检'
},
...
@@ -131,8 +131,8 @@ export const pMonitorControls = [
...
@@ -131,8 +131,8 @@ export const pMonitorControls = [
{
key
:
'level_1'
,
label
:
'1级'
},
{
key
:
'level_1'
,
label
:
'1级'
},
{
key
:
'level_2'
,
label
:
'2级'
},
{
key
:
'level_2'
,
label
:
'2级'
},
{
key
:
'level_3'
,
label
:
'3级'
},
{
key
:
'level_3'
,
label
:
'3级'
},
{
key
:
'level_4'
,
label
:
'4级'
}
,
{
key
:
'level_4'
,
label
:
'4级'
}
{
key
:
'level_5'
,
label
:
'5级'
}
//
{ key: 'level_5', label: '5级' }
]
},
]
},
{
key
:
'risk-point'
,
icon
:
'dianwei-zhongdianshebei'
,
type
:
'patrol'
,
label
:
'巡检点'
,
subs
:
[
{
key
:
'risk-point'
,
icon
:
'dianwei-zhongdianshebei'
,
type
:
'patrol'
,
label
:
'巡检点'
,
subs
:
[
{
key
:
'level_3'
,
label
:
'漏检'
},
{
key
:
'level_3'
,
label
:
'漏检'
},
...
...
mods/components/3dviewConvertor/view/searchPane/index.js
View file @
f17782fc
...
@@ -163,9 +163,14 @@ class SearchPane extends Component {
...
@@ -163,9 +163,14 @@ class SearchPane extends Component {
}
}
onRetrieveRowDoubleClick
=
(
record
)
=>
{
onRetrieveRowDoubleClick
=
(
record
)
=>
{
console
.
log
(
record
);
// 更新视图数据
// 更新视图数据
let
views
=
new
Array
();
let
views
=
new
Array
();
if
(
record
.
position
){
if
(
!
record
.
position
){
message
.
danger
(
'坐标未绑定!!!'
);
}
else
if
(
!
record
.
level
){
message
.
danger
(
'该风险点无等级,请先评价!!!'
);
}
else
{
record
.
id
=
record
.
id
.
replace
(
`
${
record
.
type
}
-`
,
''
);
record
.
id
=
record
.
id
.
replace
(
`
${
record
.
type
}
-`
,
''
);
views
.
push
(
deepCopy
(
record
));
views
.
push
(
deepCopy
(
record
));
let
args
=
{
let
args
=
{
...
@@ -174,8 +179,6 @@ class SearchPane extends Component {
...
@@ -174,8 +179,6 @@ class SearchPane extends Component {
};
};
update3DViewData
(
args
);
update3DViewData
(
args
);
//this.props.focusPosition(this.toCameraPosition(record.position));
//this.props.focusPosition(this.toCameraPosition(record.position));
}
else
{
message
.
danger
(
'坐标未绑定!!!'
);
}
}
}
}
...
...
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