#I5TVHG 任务列表建议增加关联“项目”列

This commit is contained in:
hdm 2022-12-26 15:54:07 +08:00
parent fab35810a0
commit 6792f108fe
2 changed files with 6 additions and 0 deletions

View File

@ -92,6 +92,11 @@ class ProjectTask extends Model
$item['assist_admin_names'] = '-';
} else {
$item['assist_admin_names'] = implode(',', $assist_admin_names);
}
if ($item['project_id'] == 0) {
$item['project_name'] = '-';
} else {
$item['project_name'] = Db::name('Project')->where(['id' => $item['project_id']])->value('name');
}
$item['end_time'] = date('Y-m-d', $item['end_time']);
$item['delay'] = 0;

View File

@ -104,6 +104,7 @@
return html;
}
}
, { field: 'project_name', title: '关联项目', width: 120 }
, { field: 'director_name', title: '负责人', align: 'center', width: 80 }
, { field: 'assist_admin_names', title: '协作人', width: 200 }
, { field: 'plan_hours', title: '预估工时', align: 'center', width: 80 }