MeritMS+jQuery.Gantt价值管理系统增加项目进度展示

128 篇文章 0 订阅
72 篇文章 0 订阅


https://github.com/taitems/jQuery.Gantt

$(function() {
            "use strict";
            $(".gantt").gantt({
              source:"/projectgant/getprojgants",
                // source: [{
                //     name: "珠三角",
                //     desc: "可研",
                //     id:2,
                //     values: [{
                //         from: "/Date(1492790400000)/",
                //         to: "/Date(1501257600000)/",
                //         desc: '<b>Task #</b>3<br><b>Data</b>: [2011-02-01 15:30:00 - 2011-02-01 16:00:00]',
                //         label: "label是啥",
                //         customClass: "ganttRed",
                //         dataObj: ['ha','ha2']
                //     }]
                //   },
                months: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"], //月份显示的语言
                dow: ["日", "一", "二", "三", "四", "五", "六"], //星期显示的语言
                navigate: "scroll",
                scale: "days",
                maxScale: "months",
                minScale: "hours",
                itemsPerPage: 20,
                useCookie: true,
                scrollToToday:true,
                markNow:true,
                onItemClick: function(data) {
                    // alert("Item clicked - show some details"+data);
                    $('#modalTable1').modal({
                    show:true,
                    backdrop:'static'
                    });
                },
                onAddClick: function(dt, rowId) {
                    // alert("Empty space clicked - add an item!"+dt+","+rowId);
                    if ({{.role}}!=1){
                      alert("权限不够!");
                      return;
                    }
                    $("label#info").remove();
                    $("#saveproj").removeClass("disabled")
                    $('#modalTable').modal({
                    show:true,
                    backdrop:'static'
                    });
                },
                onRender: function() {
                    if (window.console && typeof console.log === "function") {
                        console.log("chart rendered");
                    }
                }
            });

            // $(".gantt").popover({
            //     selector: ".bar",
            //     title: "I'm a popover",
            //     content: "And I'm the content of said popover.",
            //     trigger: "hover",
            //     placement: "auto right"
            // });

            // prettyPrint();
        });




  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值