mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
perf 优化抄送信息按钮显示
This commit is contained in:
parent
9203046d97
commit
d7b2f93797
@ -916,7 +916,7 @@ class WorkflowController extends AbstractController
|
||||
'start_time' => $process['var']['start_time'],
|
||||
'end_time' => $process['var']['end_time'],
|
||||
];
|
||||
$text = view('push.bot', ['type' => $type, 'action' => $action, 'data' => (object)$data])->render();
|
||||
$text = view('push.bot', ['type' => $type, 'action' => $action, 'is_finished' => $process['is_finished'], 'data' => (object)$data])->render();
|
||||
$text = preg_replace("/^\x20+/", "", $text);
|
||||
$text = preg_replace("/\n\x20+/", "\n", $text);
|
||||
$msg_action = null;
|
||||
|
||||
@ -139,7 +139,11 @@
|
||||
<span>开始时间:{{$data->start_time}}</span>
|
||||
<span>结束时间:{{$data->end_time}}</span>
|
||||
</div><div class="btn-raw">
|
||||
@if ($is_finished == 1)
|
||||
<Button type="button" class="ivu-btn ivu-btn-small" style="flex: 1;">已同意</Button>
|
||||
@else
|
||||
<Button type="button" class="ivu-btn ivu-btn-small" style="flex: 1;">查看详情</Button>
|
||||
@endif
|
||||
</div></span>
|
||||
@elseif ($type === 'workflow_submitter')
|
||||
<span class="open-review-details" data-id="{{$data->id}}"><b> @if ($action === 'pass')您发起的「{{$data->proc_def_name}}」已通过 @else您发起的「{{$data->proc_def_name}}」被{{$data->nickname}}拒绝 @endif</b>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user