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
981de583
Commit
981de583
authored
Mar 16, 2020
by
shanqiyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理代码
parent
ec5406ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
28 deletions
+29
-28
index.js
src/view/planMgmt/view/index.js
+29
-28
No files found.
src/view/planMgmt/view/index.js
View file @
981de583
...
...
@@ -11,9 +11,6 @@ import formatUrl from 'amos-processor/lib/utils/urlFormat';
import
{
FasSerUrl
}
from
'CONSTS/urlConsts'
;
import
_amosTool
from
'amos-tool'
;
import
TaskTopo
from
'./../taskTopo'
;
const
sidePaneStyle
=
{
planDrill
:
{
left
:
0
,
...
...
@@ -36,18 +33,6 @@ const sidePaneStyle = {
borderRightColor
:
'rgba(234, 234, 234, 1)'
,
overflow
:
'auto'
}
},
taskTopo
:
{
right
:
0
,
top
:
82
,
bottom
:
0
,
style
:
{
backgroundColor
:
'rgba(255, 255, 255, 1)'
,
borderRightWidth
:
'1px'
,
borderRightStyle
:
'solid'
,
borderRightColor
:
'rgba(234, 234, 234, 1)'
,
overflow
:
'auto'
}
}
};
...
...
@@ -68,8 +53,6 @@ class PublishView extends Component {
rightClickNodeTreeItem
:
null
,
node
:
{},
shareVisible
:
false
,
topoVidible
:
false
};
}
...
...
@@ -111,10 +94,6 @@ class PublishView extends Component {
return
<
PlanTreeView
activeKey
=
{
activeKey
}
onTreeSelect
=
{
this
.
onTreeSelect
}
onRightClick
=
{
this
.
onRightClick
}
onRightCancel
=
{
this
.
_handleClick
}
/>
;
}
getTaskTopo
=
()
=>
{
return
<
TaskTopo
appId
=
{
74
}
/
>
}
handleChange
=
(
activeKey
)
=>
{
const
{
params
}
=
this
.
state
;
let
$path
=
{};
...
...
@@ -141,10 +120,6 @@ class PublishView extends Component {
case
'onOff'
:
this
.
setState
({
visible
:
!
this
.
state
.
visible
});
break
;
case
'taskTopo'
:
this
.
setState
({
activeKey
,
topoVidible
:
!
this
.
state
.
topoVidible
});
default
:
break
;
}
...
...
@@ -277,13 +252,39 @@ class PublishView extends Component {
}
render
()
{
const
{
activeKey
,
visible
,
animateDelay
,
shareVisible
,
topoVidible
}
=
this
.
state
;
const
{
activeKey
,
visible
,
animateDelay
,
shareVisible
}
=
this
.
state
;
const
animateProps
=
{
transitionAppear
:
true
};
return
(
<
div
style
=
{{
height
:
'100%'
}}
>
{
this
.
getTaskTopo
()}
<
div
className
=
'publish-view-root'
>
<
div
className
=
'publish-view-content'
>
<
div
className
=
'publish-view-header'
>
{
this
.
renderButton
(
activeKey
)}
<
/div
>
<
SidePane
className
=
'publish-view-side'
animateName
=
"fade-left"
animateProps
=
{
animateProps
}
animateDelay
=
{
animateDelay
}
visible
=
{
visible
}
{...
sidePaneStyle
[
activeKey
]}
>
{
activeKey
&&
this
.
getSidePaneContent
(
activeKey
)}
<
/SidePane
>
{
this
.
props
.
children
}
<
/div
>
{
this
.
getNodeTreeRightClickMenu
()}
<
Modal
header
=
"链接分享"
visible
=
{
shareVisible
}
destroyContent
// onOk={this.onOk}
onCancel
=
{
this
.
cancel
}
content
=
{
visible
&&
this
.
getShareContent
()}
noDefaultFooter
/>
<
/div
>
);
}
...
...
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