Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gantt
Overview
Overview
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
杨子
vue-gantt
Commits
f9185140
Commit
f9185140
authored
Jun 10, 2022
by
杨子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刻度取后台值
parent
2814847a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
GanttView.vue
src/components/GanttView.vue
+6
-2
No files found.
src/components/GanttView.vue
View file @
f9185140
...
...
@@ -49,7 +49,7 @@ const bars1 = ref([
const
dateValueStart
=
ref
(
""
);
const
dateValueEnd
=
ref
(
""
);
const
minuteInterval
=
ref
(
2
);
const
minuteInterval
=
ref
(
10
);
const
minuteValue
=
ref
();
const
emits
=
defineEmits
([
"updateTaskName"
]);
const
Backgrounds
=
[
'#BE9B93'
,
'#C1F462'
,
'#485C23'
,
'#67EAC1'
,
'#35B0C9'
,
'#151EC4'
,
'#7425EC'
,
'#F89681'
,
'#AC31E2'
,
'#972880'
,
'#5A0E34'
,
'#247168'
,
'#D6C51B'
,
'#F95E3D'
,
'#F82F04'
];
...
...
@@ -74,10 +74,14 @@ httpRequest
return
}
let
{
beginTime
,
endTime
,
name
,
contreeList
}
=
data
;
let
{
beginTime
,
endTime
,
name
,
contreeList
,
minuteInterval
}
=
data
;
emits
(
"updateTaskName"
,
name
);
chartStart
.
value
=
beginTime
;
chartEnd
.
value
=
endTime
;
if
(
minuteInterval
){
minuteInterval
.
value
=
minuteInterval
}
if
(
Array
.
isArray
(
contreeList
))
{
contreeList
=
contreeList
.
map
((
value
,
index
)
=>
{
if
(
Array
.
isArray
(
value
.
processesList
))
{
...
...
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