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
47a732b9
Commit
47a732b9
authored
Nov 22, 2023
by
旭艳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改甘特图未保存工期的问题
parent
c63a77e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
unit.vue
...-mes/src/privateComponents/components/MBOMConfig/unit.vue
+19
-0
No files found.
applications/dee-mes/src/privateComponents/components/MBOMConfig/unit.vue
View file @
47a732b9
...
@@ -157,6 +157,7 @@ export default {
...
@@ -157,6 +157,7 @@ export default {
this
.
AOname
=
''
this
.
AOname
=
''
this
.
loading
=
true
this
.
loading
=
true
this
.
modifyData
=
{
this
.
modifyData
=
{
tasks
:
[],
data
:
[],
data
:
[],
links
:
[]
links
:
[]
}
}
...
@@ -451,6 +452,9 @@ export default {
...
@@ -451,6 +452,9 @@ export default {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
that
.
calcCriticalPath
(
item
)
that
.
calcCriticalPath
(
item
)
that
.
modifyLink
(
item
,
'ADD'
)
that
.
modifyLink
(
item
,
'ADD'
)
if
(
ganttAss
.
getTask
(
item
.
target
).
$level
===
1
&&
ganttAss
.
getTask
(
item
.
source
).
$level
===
1
)
{
that
.
modifyTask
(
ganttAss
.
getTask
(
ganttAss
.
getTask
(
item
.
source
).
parenId
),
'MODIFY'
)
}
ganttAss
.
render
()
ganttAss
.
render
()
},
500
)
},
500
)
})
})
...
@@ -460,6 +464,9 @@ export default {
...
@@ -460,6 +464,9 @@ export default {
var
target
=
ganttAss
.
getTask
(
item
.
target
)
var
target
=
ganttAss
.
getTask
(
item
.
target
)
that
.
calcCriticalPath
(
item
)
that
.
calcCriticalPath
(
item
)
that
.
modifyLink
(
item
,
'REMOVE'
)
that
.
modifyLink
(
item
,
'REMOVE'
)
if
(
ganttAss
.
getTask
(
item
.
target
).
$level
===
1
&&
ganttAss
.
getTask
(
item
.
source
).
$level
===
1
)
{
that
.
modifyTask
(
ganttAss
.
getTask
(
ganttAss
.
getTask
(
item
.
source
).
parenId
),
'MODIFY'
)
}
var
targetLength
=
target
.
$target
.
length
var
targetLength
=
target
.
$target
.
length
if
(
!
targetLength
)
{
if
(
!
targetLength
)
{
var
data
=
{
var
data
=
{
...
@@ -593,6 +600,18 @@ export default {
...
@@ -593,6 +600,18 @@ export default {
}
}
})
})
this
.
$api
.
recursion
(
'ExtProcessExecutorRoute'
,
params
,
true
).
then
(
res
=>
{
this
.
$api
.
recursion
(
'ExtProcessExecutorRoute'
,
params
,
true
).
then
(
res
=>
{
this
.
saveDuration
()
})
},
saveDuration
()
{
const
params
=
this
.
modifyData
.
tasks
.
map
(
task
=>
{
return
{
id
:
task
.
id
,
workHour
:
task
.
duration
,
operator
:
'MODIFY'
}
})
this
.
$api
.
recursion
(
'ExtProcessPlan'
,
params
,
true
).
then
(
res
=>
{
this
.
getData
()
this
.
getData
()
})
})
}
}
...
...
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