Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于实际开始时间 实际结束时间显示(只设置realStartDate或realEndDate 甘特图显示有误;两个字段都不配置,还会自动显示当天) #31

Open
Broccoli1029 opened this issue Apr 22, 2021 · 2 comments

Comments

@Broccoli1029
Copy link

建议两个字段少一其中之一未定义就不要显示了

@Broccoli1029 Broccoli1029 changed the title 关于实际开始时间 实际结束时间显示(只设置realStartDate或realEndDate 甘特图显示有误) 关于实际开始时间 实际结束时间显示(只设置realStartDate或realEndDate 甘特图显示有误;两个字段都不配置,还会自动显示当天) Apr 22, 2021
@Broccoli1029
Copy link
Author

配置是:
<wlGantt
ref="wl-gantt-demo"
use-real-time
end-date="2021-5-31"
start-date="2021-4-01"
dateType="yearAndMonth"
:data="data"
:columns="columns"
:contextMenuOptions="contextMenuOptions"
@selection-change="selectionChange"
@expand-change="expandChange"
@timechange="timeChange"
@taskRemove="taskRemove"
@prechange="preChange"
@taskAdd="taskAdd"
>

数据是
[
{
"children": [
{
"endDate": "2021-05-02",
"id": "4d2d8219-c5d9-419d-8cb4-64756bc7b3d7",
"name": "正式验收",
"pid": "517b78e3-79c8-4b32-9252-d2ebd68698b6",
"startDate": "2021-04-27",
}
],
"endDate": "2021-05-02",
"id": "517b78e3-79c8-4b32-9252-d2ebd68698b6",
"name": "验收阶段",
"pid": "0",
"startDate": "2021-04-27",
}
]

显示为:
8860c023172f20f605ec4741e875397d

@hql7
Copy link
Owner

hql7 commented Apr 28, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants