提交 e29939fd 编写于 作者: JunZai's avatar JunZai

update

上级 da95213b
...@@ -77,6 +77,7 @@ GanttElastic, ...@@ -77,6 +77,7 @@ GanttElastic,
public options: any = { public options: any = {
isflex: true, isflex: true,
maxRows: 100, maxRows: 100,
dataType: 'treegrid',
title: { title: {
label: "" label: ""
}, },
...@@ -192,12 +193,11 @@ GanttElastic, ...@@ -192,12 +193,11 @@ GanttElastic,
return; return;
} }
this.tasks = [...this.tasks, ...response.data]; this.tasks = [...this.tasks, ...response.data];
// const _items = response.data; response.data.forEach((item: any) => {
// this.formatExpanded(_items); if(!item.collapsed) {
// resolve([..._items]); this.load(item);
// let isRoot = Object.is(node.level,0); }
// let isSelectedAll = node.checked; })
// this.setDefaultSelection(_items, isRoot, isSelectedAll);
this.$emit("load", this.tasks); this.$emit("load", this.tasks);
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status === 401) { if (response && response.status === 401) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册