Commit 294b7eb5 authored by 王鑫's avatar 王鑫

feat: 进度用户节点

parent c41cc552
<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: "",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment