Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
1f591444
Commit
1f591444
authored
May 14, 2020
by
仇晓婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gant
parent
b4599a45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
gantt.vue
pages/aps/results/gantt.vue
+6
-3
No files found.
pages/aps/results/gantt.vue
View file @
1f591444
...
...
@@ -369,7 +369,7 @@ export default {
data
()
{
return
{
tasks
:[]
,
tasks
,
options
,
dynamicStyle
:
{},
lastId
:
16
...
...
@@ -385,6 +385,8 @@ export default {
Api
.
paged
({
scheduleId
:
this
.
id
})
.
then
(
r
=>
{
if
(
r
.
result
)
{
var
parentId
=
r
.
result
.
id
;
//父级id
Api
.
getdetail
({
part_task_pk
:
r
.
result
[
0
].
id
,
scheduleId
:
this
.
id
...
...
@@ -396,11 +398,12 @@ export default {
id
:
r
.
result
[
i
].
op_task_pk
,
label
:
r
.
result
[
i
].
task_name
,
user
:
r
.
result
[
i
].
equip_id
,
// start: r.result[i].plan_start,
// endTime: r.result[i].plan_finish,
endTime
:
"2020-7-30"
,
start
:
getDate
(
1
),
duration
:
(
15
*
i
)
*
24
*
60
*
60
*
1000
,
start
:
getDate
(
-
24
*
5
),
duration
:
15
*
24
*
60
*
60
*
1000
,
percent
:
85
,
put_into_qty
:
r
.
result
[
i
].
put_into_qty
,
dispatch_qty
:
r
.
result
[
i
].
dispatch_qty
...
...
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