1,数据库表 zt_story 添加自定义字段 bakDate1,bakDate2,bakDate3,bakDate4
2,在 /opt/lampp/htdocs/zentaopms/extension/custom/story/ext/config 中添加bakDate.php文件
<?php
$config->story->datatable->defaultField = array('bakDate1','bakDate2','bakDate3','bakDate4');$config->story->datatable->fieldList['bakDate1']['title'] = 'bakDate1';
$config->story->datatable->fieldList['bakDate1']['fixed'] = 'left';
$config->story->datatable->fieldList['bakDate1']['type'] = 'html';
$config->story->datatable->fieldList['bakDate1']['sortType'] = true;
$config->story->datatable->fieldList['bakDate1']['width'] = '100';
$config->story->datatable->fieldList['bakDate1']['required'] = 'no';$config->story->datatable->fieldList['bakDate2']['title'] = 'bakDate2';
$config->story->datatable->fieldList['bakDate2']['fixed'] = 'left';
$config->story->datatable->fieldList['bakDate2']['type'] = 'html';
$config->story->datatable->fieldList['bakDate2']['sortType'] = true;
$config->story->datatable->fieldList['bakDate2']['width'] = '100';
$config->story->datatable->fieldList['bakDate2']['required'] = 'no';$config->story->datatable->fieldList['bakDate3']['title'] = 'bakDate3';
$config->story->datatable->fieldList['bakDate3']['fixed'] = 'left';
$config->story->datatable->fieldList['bakDate3']['type'] = 'html';
$config->story->datatable->fieldList['bakDate3']['sortType'] = true;
$config->story->datatable->fieldList['bakDate3']['width'] = '100';
$config->story->datatable->fieldList['bakDate3']['required'] = 'no';$config->story->datatable->fieldList['bakDate4']['title'] = 'bakDate4';
$config->story->datatable->fieldList['bakDate4']['fixed'] = 'left';
$config->story->datatable->fieldList['bakDate4']['type'] = 'html';
$config->story->datatable->fieldList['bakDate4']['sortType'] = true;
$config->story->datatable->fieldList['bakDate4']['width'] = '100';
$config->story->datatable->fieldList['bakDate4']['required'] = 'no';
3,在 /opt/lampp/htdocs/zentaopms/extension/custom/story/ext/lang/zh-cn 添加 bakDate.php
<?php
$lang->story->bakDate1= "设计评审时间";
$lang->story->bakDate2= "预计提测时间";
$lang->story->bakDate3= "预计测试完成时间";
$lang->story->bakDate4= "上线时间";
4,在 /opt/lampp/htdocs/zentaopms/extension/custom/story/ext/module 添加 printCell.php
case 'bakDate1':echo $story->bakDate1;
case 'bakDate2':echo $story->bakDate2;
case 'bakDate3':echo $story->bakDate3;
case 'bakDate4':echo $story->bakDate4;
如下效果