|
@@ -0,0 +1,161 @@
|
|
|
+const options = {
|
|
|
+ locale: {
|
|
|
+ name: 'zh_cn',
|
|
|
+ weekdays: ['周天', '周一', '周二', '周三', '周四', '周五', '周六'],
|
|
|
+ months: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
|
|
|
+ },
|
|
|
+ maxRows: 100,
|
|
|
+ maxHeight: 460,
|
|
|
+ title: {
|
|
|
+ label: 'Your project title as html (link or whatever...)',
|
|
|
+ html: false
|
|
|
+ },
|
|
|
+ row: {
|
|
|
+ height: 24
|
|
|
+ },
|
|
|
+ calendar: {
|
|
|
+ hour: {
|
|
|
+ display: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ chart: {
|
|
|
+ progress: {
|
|
|
+ bar: false
|
|
|
+ },
|
|
|
+ expander: {
|
|
|
+ display: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ taskList: {
|
|
|
+ expander: {
|
|
|
+ straight: false
|
|
|
+ },
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ id: 1,
|
|
|
+ label: '任务名称',
|
|
|
+ value: 'taskName',
|
|
|
+ width: 80,
|
|
|
+ style: {
|
|
|
+ 'task-list-header-label': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ },
|
|
|
+ 'task-list-item-value-container': {
|
|
|
+ 'font-weight': '500'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 2,
|
|
|
+ label: '所属模块',
|
|
|
+ value: 'belongModules',
|
|
|
+ width: 80,
|
|
|
+ style: {
|
|
|
+ 'task-list-header-label': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ },
|
|
|
+ 'task-list-item-value-container': {
|
|
|
+ 'font-weight': '500'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 3,
|
|
|
+ label: '开发负责人',
|
|
|
+ value: 'devPerson',
|
|
|
+ width: 80,
|
|
|
+ style: {
|
|
|
+ 'task-list-header-label': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ },
|
|
|
+ 'task-list-item-value-container': {
|
|
|
+ 'font-weight': '500'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 4,
|
|
|
+ label: '测试负责人',
|
|
|
+ value: 'testPerson',
|
|
|
+ width: 80,
|
|
|
+ style: {
|
|
|
+ 'task-list-header-label': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ },
|
|
|
+ 'task-list-item-value-container': {
|
|
|
+ 'font-weight': '500'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 5,
|
|
|
+ label: '排期类型及描述',
|
|
|
+ value: 'description',
|
|
|
+ width: 180,
|
|
|
+ expander: true,
|
|
|
+ style: {
|
|
|
+ 'task-list-header-label': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ },
|
|
|
+ 'task-list-item-value-container': {
|
|
|
+ 'font-weight': '500'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 6,
|
|
|
+ label: '开始时间',
|
|
|
+ value: 'startDate',
|
|
|
+ width: 90,
|
|
|
+ style: {
|
|
|
+ 'task-list-header-label': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ },
|
|
|
+ 'task-list-item-value-container': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 7,
|
|
|
+ label: '结束时间',
|
|
|
+ value: 'endDate',
|
|
|
+ width: 90,
|
|
|
+ style: {
|
|
|
+ 'task-list-header-label': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ },
|
|
|
+ 'task-list-item-value-container': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 8,
|
|
|
+ label: '使用/工作日/全部',
|
|
|
+ value: 'needLegalAllDays',
|
|
|
+ width: 130,
|
|
|
+ style: {
|
|
|
+ 'task-list-header-label': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ },
|
|
|
+ 'task-list-item-value-container': {
|
|
|
+ 'text-align': 'center',
|
|
|
+ width: '100%'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+} // 甘特图配置
|
|
|
+export default options
|