fix: 修复OA审批汇总子页面图标与返回位置 (#1185)

审批汇总子页面加载本地图标字体,消除英文图标名,并将返回按钮移至右侧。
This commit is contained in:
yueyang 2026-11-16 09:31:40 +08:00
parent 167211490b
commit 256d0ff0f2
3 changed files with 18 additions and 6 deletions

View File

@ -77,6 +77,10 @@
. ($exportFilters === [] ? '' : '?' . http_build_query($exportFilters));
@endphp
@if ($approvalSummaryMode)
<link rel="stylesheet" href="{{ url('/css/fonts/material-icons/style.css') }}">
@endif
@include('business.pages.partials.date-range-picker')
<style>
@ -557,6 +561,7 @@
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: .5rem .8rem;
padding: .75rem 1rem;
border: 1px solid var(--vip-border, #D8D2C7);
@ -576,6 +581,7 @@
font-size: .75rem;
font-weight: 600;
text-decoration: none;
margin-left: auto;
}
.process-details-detail-heading__back:hover,
@ -589,8 +595,9 @@
display: inline-flex;
align-items: center;
gap: .4rem;
color: var(--vip-content-muted, #595959);
font-size: .75rem;
color: var(--vip-content-ink, #171717);
font-size: .8125rem;
font-weight: 700;
}
.process-details-detail-heading__title b {
@ -1090,14 +1097,14 @@
@if ($approvalSummaryMode)
<div class="process-details-detail-heading">
<a class="process-details-detail-heading__back" href="{{ $backUrl ?: $pageUrl }}">
<span class="material-icons-outlined" aria-hidden="true">arrow_back</span>
返回 OA 流程
</a>
<span class="process-details-detail-heading__title">
<span class="material-icons-outlined" aria-hidden="true">fact_check</span>
审批汇总
</span>
<a class="process-details-detail-heading__back" href="{{ $backUrl ?: $pageUrl }}">
<span class="material-icons-outlined" aria-hidden="true">arrow_back</span>
返回 OA 流程
</a>
</div>
@endif

View File

@ -242,6 +242,8 @@ class ProcessDetailsPageTest extends FeatureTestCase
->assertOk()
->assertSee('返回 OA 流程')
->assertSee('审批汇总')
->assertSee('css/fonts/material-icons/style.css', false)
->assertSeeInOrder(['审批汇总', '返回 OA 流程'])
->assertSee($businessId)
->assertSee('<th>审批编号</th>', false)
->assertSee('<th>用途</th>', false)

View File

@ -66,6 +66,9 @@ class ProcessDetailsPageDataTest extends TestCase
$content,
);
$this->assertStringContainsString('is-approval-summary', $content);
$this->assertStringContainsString('css/fonts/material-icons/style.css', $content);
$this->assertStringContainsString('justify-content: space-between', $content);
$this->assertStringContainsString('margin-left: auto', $content);
$this->assertStringContainsString('requestRefresh(true)', $content);
$this->assertStringContainsString('setBusy(true)', $content);
$this->assertStringNotContainsString(