//状态列 PlusProject.StatusColumn = function (optons) { return mini.copyTo({ name: "Status", width: 60, header: '
', formatDate: function (date) { return date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate(); }, renderer: function (e) { var record = e.record; var s = ""; if (record.PercentComplete == 100) { var t = record.Finish ? "任务完成于 " + this.formatDate(record.Finish) : ""; s += ''; } if (record.Summary && record.FixedDate) { var t = "此任务固定日期,从开始日期 " + this.formatDate(record.Start) + " 到完成日期 " + this.formatDate(record.Finish); s += ''; } else if (record.ConstraintType >= 2 && mini.isDate(record.ConstraintDate)) { var ct = mini.Gantt.ConstraintType[record.ConstraintType]; if(ct){ var ctype = ct.Name; var t = "此任务有 "+ct.Name+" 的限制,限制日期 " + this.formatDate(record.ConstraintDate); s += ''; } } if (record.Milestone) { s += ''; } if (record.Notes) { var t = '备注:' + record.Notes; s += ''; } if (record.Conflict == 1) { var t = "此任务排程有冲突,如有必要,请适当调整"; s += ''; } //如果有新的任务状态图标显示, 请参考以上代码实现之...... return s; } }, optons); }