摘要: 1、指定任务栏中的文本和灯箱的标题 https://docs.dhtmlx.com/gantt/api__gantt_task_text_template.html 1 // timeLine 文字 2 gantt.templates.task_text = function (start, end 阅读全文
posted @ 2022-05-07 16:34 你在说啥 阅读(539) 评论(0) 推荐(0)
摘要: 1、添加一个新的依赖链接 https://docs.dhtmlx.com/gantt/api__gantt_addlink.html 1 var linkId = gantt.addLink({ 2 id:1, 3 source:1, 4 target:2, 5 type:gantt.config. 阅读全文
posted @ 2022-05-07 16:26 你在说啥 阅读(354) 评论(0) 推荐(0)
摘要: 1 gantt.plugins({ 2 tooltip: true 3 }); 4 // tooltip 自定义 5 gantt.templates.tooltip_text = function (start, end, task) { 6 const equipmentCodes = (task 阅读全文
posted @ 2022-05-07 16:21 你在说啥 阅读(805) 评论(0) 推荐(0)
摘要: 1 <Select 2 v-model:value="scaleConfigValue" 3 style="width: 100px; margin-right: 10px" 4 @select="setScaleConfigFuc" 5 > 6 <Option value="day">按天</Op 阅读全文
posted @ 2021-11-16 17:44 你在说啥 阅读(818) 评论(0) 推荐(0)
摘要: 1 <Select 2 v-model:value="layoutConfigValue" 3 style="width: 100px; margin-right: 10px" 4 @select="setLayoutConfigFuc" 5 > 6 <Option value="gridAndTi 阅读全文
posted @ 2021-11-16 17:42 你在说啥 阅读(438) 评论(0) 推荐(0)
摘要: 1、在甘特图中添加日历 https://docs.dhtmlx.com/gantt/api__gantt_addcalendar.html 1 task.calendar_id = 'default'; 2 // adding a previously created calendar 3 var 阅读全文
posted @ 2021-11-16 17:40 你在说啥 阅读(381) 评论(0) 推荐(0)
摘要: 1 const ganttData = reactive<{ 2 // 全屏开启状态 3 fullScreenStatus: boolean; 4 }>({ 5 fullScreenStatus: false, 6 }); 7 8 function collapseExpandFullFuc() { 阅读全文
posted @ 2021-11-16 17:35 你在说啥 阅读(301) 评论(0) 推荐(0)
摘要: 1、激活“分支”模式,允许在同一树级别内垂直重新排序任务。 https://docs.dhtmlx.com/gantt/api__gantt_order_branch_config.html 此选项允许重新排序任务,同时保存它们的树级别位置。例如,子任务永远不会成为父任务。 1 gantt.conf 阅读全文
posted @ 2021-11-16 17:32 你在说啥 阅读(1170) 评论(0) 推荐(0)
摘要: 1、向时间线区域添加标记 https://docs.dhtmlx.com/gantt/api__gantt_addmarker.html 1 var todayMarker = gantt.addMarker({ 2 start_date: new Date(), 3 css: "today", 4 阅读全文
posted @ 2021-11-16 17:26 你在说啥 阅读(710) 评论(0) 推荐(0)
摘要: 1、双击task时,弹出lightbox弹出框 https://docs.dhtmlx.com/gantt/api__gantt_details_on_dblclick_config.html 1 gantt.config.details_on_dblclick = true; 2 // task双 阅读全文
posted @ 2021-11-16 17:09 你在说啥 阅读(837) 评论(0) 推荐(0)