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
f9dd2a4c
Commit
f9dd2a4c
authored
Mar 13, 2020
by
shanqiyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增任务流程组件
parent
011fb531
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
16 deletions
+10
-16
urlConsts.js
src/consts/urlConsts.js
+1
-1
preControlService.js
src/services/preControlService.js
+2
-2
index.scss
src/styles/view/planMgmt/index.scss
+1
-0
taskTopo.scss
src/styles/view/planMgmt/taskTopo.scss
+2
-11
index.js
src/view/planMgmt/taskTopo/index.js
+0
-0
index.js
src/view/planMgmt/view/leaderStruct/index.js
+4
-2
No files found.
src/consts/urlConsts.js
View file @
f9dd2a4c
...
...
@@ -220,7 +220,7 @@ export const FasSerUrl = {
getTreeNodeTypeUrl
:
completePrefix
(
baseURI
,
'api/riskModel/riskSource/getChildTypeByPid?riskSourceId={riskSourceId}'
),
// 根据节点ID获取子节点可能的类型
getAllUserUrl
:
completePrefix
(
baseURI
,
'api/common/user/list'
),
//获取所有用户
queryFmeaControlObjUrl
:
completePrefix
(
baseURI
,
'api/riskModel/fmea/{ids}/controlObjCount'
),
//根据fmea id查询关联对象个数
queryTopographyUrl
:
completePrefix
(
baseURI
,
'api/Topography/{appId}'
),
//获取Topo图数据
queryTopographyUrl
:
completePrefix
(
baseURI
,
'api/Topography/
query/{type}/
{appId}'
),
//获取Topo图数据
updateTopographyUrl
:
completePrefix
(
baseURI
,
'api/Topography/updateTopo'
),
//更新Topo图数据
queryNodeDetailUrl
:
completePrefix
(
baseURI
,
'api/Topography/detail/{id}'
),
//获取node节点详情
saveNodeDetailUrl
:
completePrefix
(
baseURI
,
'api/Topography/detail'
),
//保存nodeDetail详情
...
...
src/services/preControlService.js
View file @
f9dd2a4c
...
...
@@ -197,8 +197,8 @@ export const queryAllUserAction = () => {
/**
* 获取节点
*/
export
const
queryTopographyAction
=
(
appId
)
=>
{
return
commonGet
(
formatUrl
(
FasSerUrl
.
queryTopographyUrl
,{
appId
}));
export
const
queryTopographyAction
=
(
type
,
appId
)
=>
{
return
commonGet
(
formatUrl
(
FasSerUrl
.
queryTopographyUrl
,{
type
,
appId
}));
};
/**
...
...
src/styles/view/planMgmt/index.scss
View file @
f9dd2a4c
...
...
@@ -2,3 +2,4 @@
@import
'./plan.scss'
;
@import
'./leaderStruct.scss'
;
@import
'./text.scss'
;
@import
'./taskTopo.scss'
;
src/styles/view/planMgmt/taskTopo.scss
View file @
f9dd2a4c
.publish-view-task
{
width
:
300px
;
right
:
0
;
top
:
82
;
bottom
:
0
;
overflow
:
auto
!
important
;
position
:
absolute
;
}
.task-topo
{
.task-topo
{
height
:
100%
;
width
:
300px
;
right
:
0
;
...
...
@@ -76,4 +67,4 @@
}
}
}
}
}
src/view/planMgmt/taskTopo/index.js
0 → 100644
View file @
f9dd2a4c
This diff is collapsed.
Click to expand it.
src/view/planMgmt/view/leaderStruct/index.js
View file @
f9dd2a4c
...
...
@@ -28,7 +28,8 @@ class LeaderStruct extends Component {
toolBarFlag
:
''
,
selectNode
:
{},
selectNodeType
:
''
,
rightGridData
:
[]
rightGridData
:
[],
type
:
'1'
,
//topo 类型 1 领导架构
};
this
.
diagram
=
null
;
//gojs图
this
.
myPalette
=
null
;
//工具栏
...
...
@@ -41,7 +42,7 @@ class LeaderStruct extends Component {
}
fetchData
=
(
appId
)
=>
{
queryTopographyAction
(
appId
).
then
(
res
=>
{
queryTopographyAction
(
this
.
state
.
type
,
appId
).
then
(
res
=>
{
this
.
setState
({
nodeData
:
res
.
nodeData
,
linkData
:
res
.
linkData
})
this
.
renderCanvas
();
});
...
...
@@ -267,6 +268,7 @@ class LeaderStruct extends Component {
const
{
nodeDataArray
,
linkDataArray
}
=
this
.
updateTopologyData
;
const
params
=
{
appId
:
this
.
props
.
location
.
state
.
appId
,
type
:
this
.
state
.
type
,
nodeData
:
nodeDataArray
,
linkData
:
linkDataArray
,
nodeDetail
:
nodeDetail
...
...
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