您的位置:首页 > Web前端 > JQuery

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

2017-04-23 21:16 204 查看
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();
});




内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐