This commit is contained in:
tianshujie
2024-03-05 15:45:03 +08:00
parent 9798daafa7
commit 2d15c51ad0
2 changed files with 7 additions and 15 deletions
-7
View File
@@ -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)
+7 -8
View File
@@ -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
(