Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
c379e14a
Commit
c379e14a
authored
Nov 27, 2023
by
“lixuyan”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改甘特图位置变化的问题
parent
a0f20397
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
config.js
...mes/src/privateComponents/components/MBOMConfig/config.js
+4
-0
unit.vue
...-mes/src/privateComponents/components/MBOMConfig/unit.vue
+4
-0
No files found.
applications/dee-mes/src/privateComponents/components/MBOMConfig/config.js
View file @
c379e14a
...
...
@@ -24,6 +24,9 @@ export default {
})
},
calcCriticalPath
(
link
)
{
const
sPos
=
this
.
gantt
.
getScrollState
()
// {x:58,y:180}
const
posX
=
sPos
.
x
const
posY
=
sPos
.
y
// 找出当前link 同级 task link
const
peerTasks
=
this
.
getPeerTasks
(
link
)
const
peerLinks
=
this
.
getPeerLinks
(
peerTasks
)
...
...
@@ -73,6 +76,7 @@ export default {
})
this
.
calcLinkSlack
(
peerLinks
,
peerTasks
)
this
.
gantt
.
parse
(
this
.
params
)
this
.
gantt
.
scrollTo
(
posX
,
posY
)
},
modifyTask
(
task
,
operator
)
{
const
_task
=
{
...
...
applications/dee-mes/src/privateComponents/components/MBOMConfig/unit.vue
View file @
c379e14a
...
...
@@ -461,6 +461,9 @@ export default {
// 删除连接后触发
ganttAss
.
attachEvent
(
'onAfterLinkDelete'
,
function
(
id
,
item
)
{
console
.
log
(
'onAfterLinkDelete'
,
id
,
item
)
const
sPosDelete
=
ganttAss
.
getScrollState
()
const
posXDelete
=
sPosDelete
.
x
const
posYDelete
=
sPosDelete
.
y
var
target
=
ganttAss
.
getTask
(
item
.
target
)
that
.
calcCriticalPath
(
item
)
that
.
modifyLink
(
item
,
'REMOVE'
)
...
...
@@ -478,6 +481,7 @@ export default {
})
}
ganttAss
.
parse
(
data
)
ganttAss
.
scrollTo
(
posXDelete
,
posYDelete
)
}
})
...
...
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