diff --git a/module/project/js/batchedit.ui.js b/module/project/js/batchedit.ui.js index 1a11b29834..9587f061a0 100644 --- a/module/project/js/batchedit.ui.js +++ b/module/project/js/batchedit.ui.js @@ -79,13 +79,6 @@ batchIgnoreTip = function(index) window.renderRowData = function($row, index, row) { - /* 如果某个项目是长期项目,更新计划完成日期和可用工作日的样式。*/ - /* If a project is a long-term project, update the style of the planned completion date and available working days. */ - if(row.end == LONG_TIME) - { - $row.find('[data-name="end"] [id^=end]').attr('data-longTime', 1).addClass('hidden').next().removeClass('hidden'); - $row.find('[name^=days]').val(0).attr('readonly', true); - } const aclList = !disabledprograms && row.parent ? programAclList : projectAclList; $row.find('[data-name="acl"]').find('.picker-box').on('inited', function(e, info) diff --git a/module/project/ui/batchedit.html.php b/module/project/ui/batchedit.html.php index 2ad50428c4..84c5263859 100644 --- a/module/project/ui/batchedit.html.php +++ b/module/project/ui/batchedit.html.php @@ -87,18 +87,17 @@ formBatchPanel ( set::name('end'), set::label($lang->project->end), - set::control('date'), set::width('120px'), - inputControl + set::control(array ( - setClass('has-suffix-icon hidden'), - to::suffix(icon('calendar')), - input + 'control' => 'date', + 'format' => jsRaw("(value) => (value === '" . LONG_TIME . "' ? '" . $lang->project->longTime . "' : zui.formatDate(value, 'yyyy-MM-dd'))"), + 'actions' => array ( - set::value($lang->project->longTime), - set::disabled(true) + array('text' => $lang->datepicker->dpText->TEXT_TODAY, 'data-set-date' => helper::today()), + array('text' => $lang->project->longTime, 'data-set-date' => LONG_TIME) ) - ) + )), ), formBatchItem (