更新审批表单
This commit is contained in:
parent
e4aa77e119
commit
dab1c4b625
|
@ -297,6 +297,11 @@ class ProjectIndex extends ApiController
|
|||
->order('s.sort asc')
|
||||
->where(array('s.action_id' => $id, 's.type' => 2, 's.delete_time' => 0))
|
||||
->select()->toArray();
|
||||
foreach ($step_array as $k => $v) {
|
||||
$step_array[$k]['start_time'] = date('Y-m-d H:i:s', $v['start_time']);
|
||||
$step_array[$k]['end_time'] = date('Y-m-d H:i:s', $v['end_time']);
|
||||
$step_array[$k]['create_time'] = date('Y-m-d H:i:s', $v['create_time']);
|
||||
}
|
||||
|
||||
//阶段操作记录
|
||||
$step_record = Db::name('StepRecord')
|
||||
|
@ -330,6 +335,9 @@ class ProjectIndex extends ApiController
|
|||
$step['check_name'] = Db::name('Admin')->where(['id' => $step['flow_uid']])->value('name');
|
||||
$flow_names = Db::name('Admin')->where([['id','in',$step['flow_ids']]])->column('name');
|
||||
$step['flow_names'] = implode(',',$flow_names);
|
||||
$step['start_time'] = date('Y-m-d H:i:s', $step['start_time']);
|
||||
$step['end_time'] = date('Y-m-d H:i:s', $step['end_time']);
|
||||
$step['create_time'] = date('Y-m-d H:i:s', $step['create_time']);
|
||||
if ($this->uid == $step['flow_uid']){
|
||||
$is_check_admin = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue