perf 优化抄送信息按钮显示

This commit is contained in:
ganzizi 2023-04-21 10:00:34 +08:00
parent 9203046d97
commit d7b2f93797
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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>