更新
This commit is contained in:
parent
a062b2ed2c
commit
6c4baf8e52
@ -46,6 +46,16 @@ class Task extends CommonModel
|
|||||||
foreach($copied_list as $k=>$v){
|
foreach($copied_list as $k=>$v){
|
||||||
$task['copied_info'][]=Member::where(['code'=>$v])->field('name,code,avatar')->find();
|
$task['copied_info'][]=Member::where(['code'=>$v])->field('name,code,avatar')->find();
|
||||||
}
|
}
|
||||||
|
if($task['department_liaison']){
|
||||||
|
$task['liasion_info']=Member::where(['code'=>$task['department_liaison']])->field('name,code,avatar')->find();
|
||||||
|
}else{
|
||||||
|
$task['liasion_info']=[];
|
||||||
|
}
|
||||||
|
if($task['department']){
|
||||||
|
$task['department_info']=Department::where(['organization_code'=>$task['department']])->field('name')->find();
|
||||||
|
}else{
|
||||||
|
$task['department_info']=[];
|
||||||
|
}
|
||||||
if ($task['pcode']) {
|
if ($task['pcode']) {
|
||||||
$task['parentTask'] = self::where(['code' => $task['pcode']])->field('id', true)->find();
|
$task['parentTask'] = self::where(['code' => $task['pcode']])->field('id', true)->find();
|
||||||
$parents = [];
|
$parents = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user