Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zentao-view
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
zentao
zentao-view
Commits
294b7eb5
Commit
294b7eb5
authored
Mar 07, 2021
by
王鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 进度用户节点
parent
c41cc552
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
TaskProgress.vue
src/views/progress/TaskProgress.vue
+21
-6
No files found.
src/views/progress/TaskProgress.vue
View file @
294b7eb5
<
template
>
<a-card
class=
"cust-list-cart"
>
<!--
<q-page
class=
"q-pa-sm"
>
-->
<gantt-elastic
:options=
"options"
:tasks=
"tasks"
...
...
@@ -10,9 +9,6 @@
>
<gantt-header
slot=
"header"
:options=
"options"
></gantt-header>
</gantt-elastic>
<!--
<div
class=
"q-mt-md"
/>
-->
<!--
<q-btn
@
click=
"addTask"
icon=
"mdi-plus"
label=
"Add tas k"
/>
-->
<!--
</q-page>
-->
<div
style=
"margin-top: 20px"
>
<a-pagination
@
change=
"pageChange"
...
...
@@ -181,7 +177,6 @@ export default {
if
(
response
&&
response
.
code
==
SYS_CONST
.
REQUEST
.
SUCCEED
)
{
let
respData
=
response
.
data
;
let
taskList
=
[];
respData
=
respData
.
splice
(
0
,
30
)
for
(
const
respDataKey
in
respData
)
{
let
day
=
this
.
GetNumberOfDays
(
new
Date
(),
respData
[
respDataKey
].
begin
);
let
duration
=
this
.
GetNumberOfDays
(
respData
[
respDataKey
].
begin
,
respData
[
respDataKey
].
end
);
...
...
@@ -197,7 +192,27 @@ export default {
type
:
"project"
})
// 子元素
}
else
{
}
else
if
(
respData
[
respDataKey
].
name
===
""
)
{
taskList
.
push
({
id
:
respData
[
respDataKey
].
id
,
name
:
''
,
user
:
''
,
label
:
respData
[
respDataKey
].
label
,
parentId
:
respData
[
respDataKey
].
parentId
,
start
:
getDate
(
24
*
day
),
duration
:
duration
*
24
*
60
*
60
*
1000
,
percent
:
50
,
type
:
"milestone"
,
collapsed
:
true
,
style
:
{
base
:
{
fill
:
"#0287D0"
,
stroke
:
"#0077C0"
}
}
})
}
else
{
taskList
.
push
({
id
:
respData
[
respDataKey
].
id
,
name
:
""
,
...
...
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