* Adjust code.

This commit is contained in:
leiyong
2020-11-13 17:49:24 +08:00
parent a4333ffdb7
commit e42c5447a0
6 changed files with 10 additions and 22 deletions
+1 -1
View File
@@ -117,5 +117,5 @@ $config->program->datatable->fieldList['PRJSurplus']['sort'] = 'no';
$config->program->datatable->fieldList['actions']['title'] = 'actions';
$config->program->datatable->fieldList['actions']['fixed'] = 'right';
$config->program->datatable->fieldList['actions']['width'] = '240';
$config->program->datatable->fieldList['actions']['width'] = '270';
$config->program->datatable->fieldList['actions']['required'] = 'yes';
+1 -1
View File
@@ -188,7 +188,7 @@ $lang->program->PGMActivate = '激活项目集';
$lang->program->PGMExport = '导出';
$lang->program->PGMStakeholder = '干系人列表';
$lang->program->createStakeholder = '添加干系人';
$lang->program->unlinkStakeholder = '删除干系人';
$lang->program->unlinkStakeholder = '移除干系人';
$lang->program->importStakeholder = '从父项目集导入';
$lang->program->PGMManageMembers = '项目集团队';
+5 -17
View File
@@ -14,9 +14,6 @@
<th class='w-100px'><?php common::printOrderLink('budget', $orderBy, $vars, $lang->program->PGMBudget);?></th>
<th class='w-100px'><?php common::printOrderLink('PM', $orderBy, $vars, $lang->program->PGMPM);?></th>
<th class='text-center w-250px'><?php echo $lang->actions;?></th>
<?php if($canOrder):?>
<th class='w-60px sort-default'><?php common::printOrderLink('order', $orderBy, $vars, $lang->project->orderAB);?></th>
<?php endif;?>
</tr>
</thead>
<tbody id='programTableList'>
@@ -45,8 +42,9 @@
$trAttrs .= " class='$trClass'";
$originOrders[] = $program->order;
?>
<tr <?php echo $trAttrs;?>>
<td class='c-name text-left pgm-title table-nest-title' title='<?php echo $program->name?>'>
<td class='c-name text-left <?php if($canOrder) echo 'sort-handler';?>' title='<?php echo $program->name?>'>
<span class="table-nest-icon icon <?php if($program->type == 'program') echo ' table-nest-toggle' ?>"></span>
<?php if($program->type == 'program'):?>
<?php echo html::a($this->createLink('program', 'pgmproduct', "programID=$program->id"), $program->name);?>
@@ -81,9 +79,6 @@
<?php if(common::hasPriv('program','PRJDelete')) echo html::a($this->createLink("program", "prjdelete", "programID=$program->id"), "<i class='icon-trash'></i>", 'hiddenwin', "class='btn' title='{$lang->delete}'");?>
<?php endif;?>
</td>
<?php if($canOrder):?>
<td class='sort-handler text-center'><i class="icon icon-move"></i></td>
<?php endif;?>
</tr>
<?php endforeach;?>
</tbody>
@@ -124,19 +119,12 @@ $(function()
},
finish: function(e)
{
var items = [];
var projects = '';
e.list.each(function()
{
var $item = $(this.item);
items.push({id: $item.data('id'), order: this.order});
projects += $(this.item).data('id') + ',' ;
});
var orders = {};
items.sort(function(x, y) {return x.order - y.order;}).forEach(function(item, index)
{
var newOrder = ordersList[index];
orders[item.id] = typeof newOrder === 'number' ? newOrder : item.order * 5;
});
$.post(createLink('program', 'updateOrder'), {'programs' : orders, 'orderBy' : orderBy});
$.post(createLink('program', 'PRJUpdateOrder'), {'projects' : projects, 'orderBy' : orderBy});
var $thead = $list.closest('table').children('thead');
$thead.find('.headerSortDown, .headerSortUp').removeClass('headerSortDown headerSortUp').addClass('header');
+1 -1
View File
@@ -55,7 +55,7 @@
<td class='c-actions'>
<?php
$deleteClass = common::hasPriv('program', 'unlinkStakeholder') ? 'btn' : 'btn disabled';
echo html::a($this->createLink('program', 'unlinkStakeholder', "id=$stakeholder->id&programID=$programID&confirm=no"), '<i class="icon-unlink"></i>', 'hiddenwin', "title='{$lang->delete}' class='{$deleteClass}'");
echo html::a($this->createLink('program', 'unlinkStakeholder', "id=$stakeholder->id&programID=$programID&confirm=no"), '<i class="icon-unlink"></i>', 'hiddenwin', "title='{$lang->program->unlinkStakeholder}' class='{$deleteClass}'");
?>
</td>
</tr>
+1 -1
View File
@@ -6,7 +6,7 @@ $lang->stakeholder->batchCreate = '批量添加';
$lang->stakeholder->create = '添加干系人';
$lang->stakeholder->edit = '编辑干系人';
$lang->stakeholder->view = '干系人详情';
$lang->stakeholder->delete = '删除干系人';
$lang->stakeholder->delete = '移除干系人';
$lang->stakeholder->createdBy = '创建者';
$lang->stakeholder->createdDate = '创建时间';
$lang->stakeholder->search = '搜索';
+1 -1
View File
@@ -6,7 +6,7 @@ $lang->stakeholder->batchCreate = '批量添加';
$lang->stakeholder->create = '添加干係人';
$lang->stakeholder->edit = '編輯干係人';
$lang->stakeholder->view = '干係人詳情';
$lang->stakeholder->delete = '刪除干係人';
$lang->stakeholder->delete = '移除干係人';
$lang->stakeholder->createdBy = '創建者';
$lang->stakeholder->createdDate = '創建時間';
$lang->stakeholder->search = '搜索';