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
b28e2062
Commit
b28e2062
authored
Aug 03, 2023
by
arvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
甘特图站位路线
parent
264c8cd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
step.vue
...-mes/src/privateComponents/components/MBOMConfig/step.vue
+15
-9
No files found.
applications/dee-mes/src/privateComponents/components/MBOMConfig/step.vue
View file @
b28e2062
...
...
@@ -36,10 +36,10 @@ export default {
computed
:
{
columns
()
{
return
[
{
name
:
'index'
,
label
:
'节点'
,
width
:
6
0
,
align
:
'center'
,
resize
:
true
},
{
name
:
'text'
,
label
:
'站位号'
,
width
:
16
0
,
align
:
'center'
,
resize
:
true
},
{
name
:
'duration'
,
label
:
'工期(天)'
,
width
:
10
0
,
align
:
'center'
,
resize
:
true
,
editor
:
{
type
:
'number'
,
map_to
:
'duration'
,
min
:
0
,
max
:
100
}},
{
name
:
''
,
label
:
'前置'
,
width
:
15
0
,
align
:
'center'
,
resize
:
true
,
template
:
(
task
)
=>
{
{
name
:
'index'
,
label
:
'节点'
,
width
:
3
0
,
align
:
'center'
,
resize
:
true
},
{
name
:
'text'
,
label
:
'站位号'
,
width
:
4
0
,
align
:
'center'
,
resize
:
true
},
{
name
:
'duration'
,
label
:
'工期(天)'
,
width
:
3
0
,
align
:
'center'
,
resize
:
true
,
editor
:
{
type
:
'number'
,
map_to
:
'duration'
,
min
:
0
,
max
:
100
}},
{
name
:
''
,
label
:
'前置'
,
width
:
4
0
,
align
:
'center'
,
resize
:
true
,
template
:
(
task
)
=>
{
var
links
=
task
.
$target
var
labels
=
[]
for
(
var
i
=
0
;
i
<
links
.
length
;
i
++
)
{
...
...
@@ -197,11 +197,6 @@ export default {
// 允许通过拖放来调整任务大小
ganttAg
.
config
.
drag_resize
=
true
ganttAg
.
config
.
highlight_critical_path
=
true
ganttAg
.
templates
.
link_class
=
function
(
link
)
{
if
(
link
.
isCritical
)
{
return
'critical_path'
}
}
ganttAg
.
config
.
editor_types
.
custom_datepicker_editor
=
{
show
:
function
(
id
,
column
,
config
,
placeholder
)
{
var
html
=
...
...
@@ -303,6 +298,17 @@ export default {
}
return
true
})
ganttAg
.
attachEvent
(
'onAfterBatchUpdate'
,
function
(
action
)
{
console
.
log
(
'onAfterBatchUpdate'
)
// your code here
})
ganttAg
.
attachEvent
(
'onAutoScheduleCircularLink'
,
function
(
groups
)
{
console
.
log
(
groups
,
'onAutoScheduleCircularLink'
)
// any custom logic here
})
ganttAg
.
attachEvent
(
'onAfterTaskAutoSchedule'
,
function
(
task
,
start
,
link
,
predecessor
)
{
console
.
log
(
task
,
start
,
link
,
predecessor
,
'onAfterTaskAutoSchedule'
)
})
this
.
$nextTick
(()
=>
{
ganttAg
.
init
(
this
.
ganttElId
)
})
...
...
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