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
4ddfa4cc
Commit
4ddfa4cc
authored
Aug 04, 2023
by
jingnan
👀
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://94.191.100.41/tfmom/tf-mom-web
into dev
parents
b537f4e7
9931c6e1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
488 additions
and
84 deletions
+488
-84
config.js
...mes/src/privateComponents/components/MBOMConfig/config.js
+0
-1
data.js
...e-mes/src/privateComponents/components/MBOMConfig/data.js
+14
-12
step.vue
...-mes/src/privateComponents/components/MBOMConfig/step.vue
+63
-63
view.vue
...-mes/src/privateComponents/components/MBOMConfig/view.vue
+411
-8
No files found.
applications/dee-mes/src/privateComponents/components/MBOMConfig/config.js
View file @
4ddfa4cc
...
...
@@ -17,7 +17,6 @@ export default {
setColumnsConfig
()
{
this
.
gantt
.
config
.
columns
=
this
.
columns
},
usePlugins
()
{
this
.
gantt
.
plugins
({
tooltip
:
true
,
...
...
applications/dee-mes/src/privateComponents/components/MBOMConfig/data.js
View file @
4ddfa4cc
...
...
@@ -5,18 +5,20 @@ export default {
}
},
watch
:
{
showFlag
(
val
)
{
if
(
!
val
)
{
return
}
if
(
!
this
.
node
)
{
return
}
if
(
this
.
node
.
id
===
this
.
currentId
)
{
return
}
this
.
getData
()
},
showFlag
:
{
immediate
:
true
,
handler
(
val
)
{
if
(
!
val
)
{
return
}
if
(
!
this
.
node
)
{
return
}
if
(
this
.
node
.
id
===
this
.
currentId
)
{
return
}
this
.
getData
()
}
},
node
:
{
immediate
:
true
,
deep
:
true
,
...
...
applications/dee-mes/src/privateComponents/components/MBOMConfig/step.vue
View file @
4ddfa4cc
...
...
@@ -60,67 +60,6 @@ export default {
},
methods
:
{
refreshGantt
()
{
const
val
=
this
.
ganttData
if
(
!
val
||
!
val
.
length
)
{
this
.
gantt
.
parse
({
data
:
[]
})
return
}
const
params
=
{
data
:
[],
links
:
[]
}
val
.
forEach
((
item
,
index
)
=>
{
const
link
=
item
.
extProcessExecutorRoutes
&&
item
.
extProcessExecutorRoutes
[
0
]
params
.
data
.
push
({
index
:
index
+
1
,
text
:
item
.
serialNumber
,
id
:
item
.
id
,
parenId
:
link
&&
link
.
prevNodeId
||
''
,
start_date
:
'2007-1-1'
,
type
:
'task'
,
duration
:
item
.
workHour
?
Number
(
item
.
workHour
/
8
)
:
0
})
if
(
link
)
{
params
.
links
.
push
({
cid
:
link
.
id
,
tid
:
link
.
currNodeId
,
source
:
link
.
prevNodeId
,
target
:
link
.
currNodeId
,
type
:
'0'
,
isCritical
:
link
.
isCritical
})
}
})
this
.
params
=
params
this
.
gantt
.
clearAll
()
this
.
gantt
.
parse
(
this
.
params
)
},
getData
()
{
this
.
currentId
=
this
.
node
.
id
const
params
=
{
'searchItems'
:
{
'items'
:
[{
'fieldName'
:
'aircraftSortiesId'
,
'operator'
:
'EQ'
,
'value'
:
this
.
node
.
id
}]
},
'sortItem'
:
[{
'fieldName'
:
'serialNumber'
,
'sortOrder'
:
'asc'
}],
'openProps'
:
[
{
'name'
:
'extProcessExecutorRoutes'
}
]
}
this
.
$api
.
searchApi
(
'ExtPosition'
,
params
).
then
(
res
=>
{
if
(
res
.
items
.
content
)
{
this
.
ganttData
=
res
.
items
.
content
}
else
{
this
.
ganttData
=
[]
}
this
.
refreshGantt
()
}).
catch
(()
=>
{
this
.
ganttData
=
[]
this
.
refreshGantt
()
})
},
configLayout
()
{
const
ganttAg
=
this
.
gantt
const
getInput
=
function
(
node
)
{
...
...
@@ -310,6 +249,67 @@ export default {
ganttAg
.
init
(
this
.
ganttElId
)
})
},
refreshGantt
()
{
const
val
=
this
.
ganttData
if
(
!
val
||
!
val
.
length
)
{
this
.
gantt
.
parse
({
data
:
[]
})
return
}
const
params
=
{
data
:
[],
links
:
[]
}
val
.
forEach
((
item
,
index
)
=>
{
const
link
=
item
.
extProcessExecutorRoutes
&&
item
.
extProcessExecutorRoutes
[
0
]
params
.
data
.
push
({
index
:
index
+
1
,
text
:
item
.
serialNumber
,
id
:
item
.
id
,
parenId
:
link
&&
link
.
prevNodeId
||
''
,
start_date
:
'2007-1-1'
,
type
:
'task'
,
duration
:
item
.
workHour
?
Number
(
item
.
workHour
/
8
)
:
0
})
if
(
link
)
{
params
.
links
.
push
({
cid
:
link
.
id
,
tid
:
link
.
currNodeId
,
source
:
link
.
prevNodeId
,
target
:
link
.
currNodeId
,
type
:
'0'
,
isCritical
:
link
.
isCritical
})
}
})
this
.
params
=
params
this
.
gantt
.
clearAll
()
this
.
gantt
.
parse
(
this
.
params
)
},
getData
()
{
this
.
currentId
=
this
.
node
.
id
const
params
=
{
'searchItems'
:
{
'items'
:
[{
'fieldName'
:
'aircraftSortiesId'
,
'operator'
:
'EQ'
,
'value'
:
this
.
node
.
id
}]
},
'sortItem'
:
[{
'fieldName'
:
'serialNumber'
,
'sortOrder'
:
'asc'
}],
'openProps'
:
[
{
'name'
:
'extProcessExecutorRoutes'
}
]
}
this
.
$api
.
searchApi
(
'ExtPosition'
,
params
).
then
(
res
=>
{
if
(
res
.
items
.
content
)
{
this
.
ganttData
=
res
.
items
.
content
}
else
{
this
.
ganttData
=
[]
}
this
.
refreshGantt
()
}).
catch
(()
=>
{
this
.
ganttData
=
[]
this
.
refreshGantt
()
})
},
export
(
mode
)
{
if
(
mode
===
'png'
)
{
this
.
gantt
.
exportToPNG
({
...
...
@@ -391,12 +391,12 @@ export default {
}
.gantt_critical_task
{
background
:
#f39c4f
;
border
:
1px
solid
#f39c4f
;
border
:
1px
solid
#f39c4f
;
}
.gantt_task_line
{
&
.workday_over
{
background
:
#f39c4f
;
border
:
1px
solid
#f39c4f
;
border
:
1px
solid
#f39c4f
;
}
}
}
...
...
applications/dee-mes/src/privateComponents/components/MBOMConfig/view.vue
View file @
4ddfa4cc
This diff is collapsed.
Click to expand it.
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