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
131e2181
Commit
131e2181
authored
Jun 11, 2020
by
张博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chongtu
parent
fb3f65bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
34 deletions
+4
-34
MaskContent.js
mods/components/3dviewConvertor/view/MaskContent.js
+0
-4
PointLeftTree.js
...3dviewConvertor/view/moduleEditComponent/PointLeftTree.js
+4
-30
No files found.
mods/components/3dviewConvertor/view/MaskContent.js
View file @
131e2181
...
@@ -114,11 +114,7 @@ class MaskContent extends Component {
...
@@ -114,11 +114,7 @@ class MaskContent extends Component {
<
div
className
=
"mask-content"
>
<
div
className
=
"mask-content"
>
<
AmosWebSocket
ref
=
{
node
=>
this
.
aws
=
node
}
url
=
{
wsURL
}
onMessage
=
{
this
.
handleData
}
reconnect
debug
/>
<
AmosWebSocket
ref
=
{
node
=>
this
.
aws
=
node
}
url
=
{
wsURL
}
onMessage
=
{
this
.
handleData
}
reconnect
debug
/>
{
!
alarmStarted
&&
sideControlShow
&&
<
SideControl
multiple
=
{
multiple
}
errorAreaId
=
{
errorAreaId
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
{
!
alarmStarted
&&
sideControlShow
&&
<
SideControl
multiple
=
{
multiple
}
errorAreaId
=
{
errorAreaId
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
<<<<<<<
HEAD
{
!
alarmStarted
&&
<
SearchPane
visible
=
{
searchPaneVisible
}
focusPosition
=
{
focusPosition
}
changeSearchPaneVisible
=
{
this
.
changeSearchPaneVisible
}
/>
}
=======
{
!
alarmStarted
&&
isShowActionBar
&&
<
SearchPane
visible
=
{
searchPaneVisible
}
focusPosition
=
{
focusPosition
}
changeSearchPaneVisible
=
{()
=>
this
.
changeSearchPaneVisible
}
/>
}
{
!
alarmStarted
&&
isShowActionBar
&&
<
SearchPane
visible
=
{
searchPaneVisible
}
focusPosition
=
{
focusPosition
}
changeSearchPaneVisible
=
{()
=>
this
.
changeSearchPaneVisible
}
/>
}
>>>>>>>
876
bde88e84eb33f87d6e192dd5d0e5e70297f58
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
{
!
alarmStarted
&&
!
isShowActionBar
&&
<
ModelHeader
animationProps
=
{
controlAnimation
}
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
{
!
alarmStarted
&&
!
isShowActionBar
&&
<
ModelHeader
animationProps
=
{
controlAnimation
}
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
{
!
alarmStarted
&&
isShowActionBar
&&
<
ActionBar
activeAction
=
{
activeAction
}
onActionItemClick
=
{(
e
)
=>
this
.
actionBarClick
(
e
)}
animationProps
=
{
controlAnimation
}
/>
}
{
!
alarmStarted
&&
isShowActionBar
&&
<
ActionBar
activeAction
=
{
activeAction
}
onActionItemClick
=
{(
e
)
=>
this
.
actionBarClick
(
e
)}
animationProps
=
{
controlAnimation
}
/>
}
...
...
mods/components/3dviewConvertor/view/moduleEditComponent/PointLeftTree.js
View file @
131e2181
...
@@ -42,8 +42,6 @@ class PointLeftTree extends Component {
...
@@ -42,8 +42,6 @@ class PointLeftTree extends Component {
}
}
<<<<<<<
HEAD
=======
componentWillMount
()
{
componentWillMount
()
{
const
{
treeData
,
pointTypeArr
,
treeDataList
}
=
this
.
props
;
const
{
treeData
,
pointTypeArr
,
treeDataList
}
=
this
.
props
;
this
.
setState
({
this
.
setState
({
...
@@ -62,15 +60,15 @@ class PointLeftTree extends Component {
...
@@ -62,15 +60,15 @@ class PointLeftTree extends Component {
treeDataList
treeDataList
});
});
}
}
>>>>>>>
876
bde88e84eb33f87d6e192dd5d0e5e70297f58
onSelectChange
=
(
value
,
item
)
=>
{
onSelectChange
=
(
value
,
item
)
=>
{
console
.
log
(
value
,
item
);
console
.
log
(
value
,
item
);
this
.
setState
({
pointType
:
value
});
this
.
setState
({
pointType
:
value
});
this
.
props
.
pointTypeChange
(
value
);
this
.
props
.
pointTypeChange
(
value
);
}
}
onSearchChange
=
(
e
,
value
)
=>
{
onSearchChange
=
e
=>
{
const
{
treeDataList
,
treeData
}
=
this
.
props
;
const
{
treeDataList
,
treeData
}
=
this
.
state
;
const
value
=
e
.
target
.
value
;
const
expandedKeys
=
treeDataList
const
expandedKeys
=
treeDataList
.
map
(
item
=>
{
.
map
(
item
=>
{
if
(
item
.
title
.
indexOf
(
value
)
>
-
1
)
{
if
(
item
.
title
.
indexOf
(
value
)
>
-
1
)
{
...
@@ -127,17 +125,7 @@ class PointLeftTree extends Component {
...
@@ -127,17 +125,7 @@ class PointLeftTree extends Component {
<
span
>
<
span
>
{
title
}
{
title
}
<
span
className
=
'icon'
>
<
span
className
=
'icon'
>
<<<<<<<
HEAD
{
item
.
isRegion
?
item
.
isBind
?
<
img
src
=
{
moduleEditIcon
.
bindedTip
}
alt
=
''
/>
:
<
img
src
=
{
moduleEditIcon
.
nobindTip
}
alt
=
''
/>
:
item
.
isBind
?
<
img
src
=
{
moduleEditIcon
.
bindedTip
}
alt
=
''
/>
:
item
.
position3d
?
<
img
src
=
{
moduleEditIcon
.
noSaveTip
}
alt
=
''
/>
:
<
img
src
=
{
moduleEditIcon
.
nobindTip
}
alt
=
''
/>
}
=======
{
item
.
isBind
?
<
img
src
=
{
moduleEditIcon
.
bindedTip
}
alt
=
''
/>
:
<
img
src
=
{
moduleEditIcon
.
nobindTip
}
alt
=
''
/>
}
{
item
.
isBind
?
<
img
src
=
{
moduleEditIcon
.
bindedTip
}
alt
=
''
/>
:
<
img
src
=
{
moduleEditIcon
.
nobindTip
}
alt
=
''
/>
}
>>>>>>>
876
bde88e84eb33f87d6e192dd5d0e5e70297f58
<
/span
>
<
/span
>
<
/span>
:
<
/span>
:
<
span
<
span
...
@@ -149,18 +137,6 @@ class PointLeftTree extends Component {
...
@@ -149,18 +137,6 @@ class PointLeftTree extends Component {
{
title
}
{
title
}
<
span
className
=
'icon'
>
<
span
className
=
'icon'
>
{
{
<<<<<<<
HEAD
item
.
isRegion
?
item
.
isBind
?
<
img
src
=
{
moduleEditIcon
.
bindedTip
}
alt
=
''
/>
:
<
img
src
=
{
moduleEditIcon
.
nobindTip
}
alt
=
''
/>
:
item
.
isBind
?
<
img
src
=
{
moduleEditIcon
.
bindedTip
}
alt
=
''
/>
:
item
.
position3d
?
<
img
src
=
{
moduleEditIcon
.
noSaveTip
}
alt
=
''
/>
:
<
img
src
=
{
moduleEditIcon
.
nobindTip
}
alt
=
''
/>
}
<
/span
>
<
/span>
}
<
/div
>
}
=======
this
.
checkPointIsNoSave
(
pointType
,
item
)
?
<
img
src
=
{
moduleEditIcon
.
noSaveTip
}
alt
=
''
/>
:
this
.
checkPointIsNoSave
(
pointType
,
item
)
?
<
img
src
=
{
moduleEditIcon
.
noSaveTip
}
alt
=
''
/>
:
item
.
isBind
?
<
img
src
=
{
moduleEditIcon
.
bindedTip
}
alt
=
''
/>
:
item
.
isBind
?
<
img
src
=
{
moduleEditIcon
.
bindedTip
}
alt
=
''
/>
:
<
img
src
=
{
moduleEditIcon
.
nobindTip
}
alt
=
''
/>
<
img
src
=
{
moduleEditIcon
.
nobindTip
}
alt
=
''
/>
...
@@ -169,7 +145,6 @@ class PointLeftTree extends Component {
...
@@ -169,7 +145,6 @@ class PointLeftTree extends Component {
<
/span>
}
<
/span>
}
<
/div
>
<
/div
>
}
}
>>>>>>>
876
bde88e84eb33f87d6e192dd5d0e5e70297f58
key
=
{
item
.
id
}
key
=
{
item
.
id
}
dataRef
=
{
item
}
dataRef
=
{
item
}
onDragStart
=
{()
=>
{
onDragStart
=
{()
=>
{
...
@@ -205,8 +180,7 @@ class PointLeftTree extends Component {
...
@@ -205,8 +180,7 @@ class PointLeftTree extends Component {
}
}
render
()
{
render
()
{
const
{
treeData
,
pointTypeArr
}
=
this
.
props
;
let
{
treeData
,
pointTypeArr
,
pointType
}
=
this
.
state
;
const
pointType
=
pointTypeArr
[
0
]
?
pointTypeArr
[
0
].
code
:
''
;
return
(
return
(
<
div
className
=
"leftTree"
>
<
div
className
=
"leftTree"
>
<
div
className
=
'leftContainer'
>
<
div
className
=
'leftContainer'
>
...
...
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