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
40adf2a5
Commit
40adf2a5
authored
Jun 12, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.删除多余action
parent
6f336b34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
index.js
mods/components/3dviewConvertor/view/searchPane/index.js
+6
-7
No files found.
mods/components/3dviewConvertor/view/searchPane/index.js
View file @
40adf2a5
...
...
@@ -16,6 +16,9 @@ import {
const
{
TabList
,
Tab
,
TabPanel
}
=
Tabs
;
const
MsgType
=
{
protal
:
'巡检'
,
equiment
:
'设备'
,
riskAlert
:
'风险'
};
const
space
=
200
;
const
defaultHeight
=
200
;
const
getColumns
=
(
self
,
retrieveType
)
=>
{
switch
(
retrieveType
)
{
case
'riskSource'
:
...
...
@@ -144,7 +147,7 @@ class SearchPane extends Component {
}
}
getPanelHeight
=
()
=>
{
return
700
;
return
defaultHeight
;
};
setPageConfig
=
({
pageSize
,
current
})
=>
{
...
...
@@ -252,9 +255,9 @@ class SearchPane extends Component {
toCameraPosition
=
(
item
)
=>
{
if
(
item
&&
item
.
x
){
return
{
x
:
item
.
x
,
y
:
item
.
y
+
200
,
z
:
item
.
z
+
200
};
return
{
x
:
item
.
x
,
y
:
item
.
y
+
space
,
z
:
item
.
z
+
space
};
}
else
if
(
item
&&
item
[
0
]){
return
{
x
:
item
[
0
]
,
y
:
item
[
1
]
+
200
,
z
:
item
[
2
]
+
200
};
return
{
x
:
item
[
0
]
,
y
:
item
[
1
]
+
space
,
z
:
item
[
2
]
+
space
};
}
else
{
return
;
}
...
...
@@ -290,7 +293,6 @@ class SearchPane extends Component {
<
AmosGridTable
rowKey
=
"id"
columns
=
{
getColumns
(
this
,
retrieveType
)}
getTableDataAction
=
{()
=>
{}}
callBack
=
{
this
.
reload
}
isPageable
setPageConfig
=
{
this
.
setPageConfig
}
...
...
@@ -306,7 +308,6 @@ class SearchPane extends Component {
<
TabPanel
activeKey
=
"message"
>
<
AmosGridTable
columns
=
{
getMsgColumns
()}
getTableDataAction
=
{()
=>
{}}
callBack
=
{
this
.
reload
}
isPageable
setPageConfig
=
{
this
.
setPageConfig
}
...
...
@@ -319,7 +320,6 @@ class SearchPane extends Component {
<
TabPanel
activeKey
=
"record"
>
<
AmosGridTable
columns
=
{
getRecordColumns
()}
getTableDataAction
=
{()
=>
{}}
callBack
=
{
this
.
reload
}
isPageable
setPageConfig
=
{
this
.
setPageConfig
}
...
...
@@ -332,7 +332,6 @@ class SearchPane extends Component {
<
TabPanel
activeKey
=
"trajectory"
>
<
AmosGridTable
columns
=
{
getTrajectoryColumns
()}
getTableDataAction
=
{()
=>
{}}
callBack
=
{
this
.
reload
}
isPageable
setPageConfig
=
{
this
.
setPageConfig
}
...
...
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