* [task#143099,done,0.2h] fix bug.
This commit is contained in:
@@ -273,6 +273,12 @@ window.renderRowData = function($row, index, row)
|
||||
$row.attr('data-consumed', row ? row.teamConsumed : 0);
|
||||
$row.attr('data-left', row ? row.teamLeft : 0);
|
||||
|
||||
if(['pause', 'cancel', 'closed'].includes(taskStatus))
|
||||
{
|
||||
$row.find('[data-type=add]').addClass('hidden'); // 已暂停、已取消、已关闭的任务不允许添加成员
|
||||
$row.find('[data-type=delete]').addClass('hidden'); // 已暂停、已取消、已关闭的任务不允许删除成员
|
||||
}
|
||||
|
||||
/* 复制上一行的人员下拉。*/
|
||||
$row.find('[data-name=team]').find('.picker-box').on('inited', function(e, info)
|
||||
{
|
||||
|
||||
@@ -124,11 +124,11 @@ if(!empty($task->team))
|
||||
(
|
||||
set::width('100px'),
|
||||
setClass('center'),
|
||||
btnGroup
|
||||
$memberDisabled ? null : btnGroup
|
||||
(
|
||||
set::items(array(
|
||||
array('icon' => 'plus', 'class' => 'btn ghost btn-add', 'disabled' => $memberDisabled),
|
||||
array('icon' => 'trash', 'class' => 'btn ghost btn-delete', 'disabled' => $memberDisabled),
|
||||
array('icon' => 'plus', 'class' => 'btn ghost btn-add'),
|
||||
array('icon' => 'trash', 'class' => 'btn ghost btn-delete')
|
||||
))
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user