@page "/AppealRecords"
@using Microsoft.Extensions.Configuration

@inject IConfiguration configuration

@{
    RenderFragment appealIcon =
    @<svg t="1640841864723" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1655"><path d="M430.1 568.2l79 79c2.5 2.5 4.3 5.6 5.1 9.1l17.9 71.8c3.7 14.7 22 19.8 32.7 9.1l213.5-213.5c10.7-10.7 5.6-29-9-32.7l-71.8-18.1c-3.4-0.9-6.5-2.6-9-5.1L420.1 199.6c-2.5-2.5-4.3-5.6-5.1-9.1l-17.9-71.8c-3.7-14.7-22-19.8-32.7-9.1L151 323.1c-10.7 10.7-5.6 29 9.1 32.7l71.8 17.9c3.4 0.9 6.6 2.6 9.1 5.1l79 79c7.6 7.6 7.6 19.9 0 27.5L140.4 664.9c-22.8 22.8-22.8 59.9 0 82.7 22.8 22.8 59.9 22.8 82.7 0l179.4-179.4c7.6-7.6 19.9-7.6 27.6 0zM865.9 920H386c-19.1 0-34.8-15.6-34.8-34.8 0-19.1 15.6-34.8 34.8-34.8h479.9c19.1 0 34.8 15.6 34.8 34.8 0 19.2-15.6 34.8-34.8 34.8z" fill="#151515" p-id="1656"></path></svg>;

RenderFragment avatar = @<Avatar Src="https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png"></Avatar>;

}
<PageContainer>
    <Breadcrumb>
        <Breadcrumb>
            <BreadcrumbItem>
                <a href="/Home"><Icon Type="home"></Icon></a>
            </BreadcrumbItem>
            <BreadcrumbItem>
                <Icon Component="appealIcon" Style="width:18px;height:18px;" /><span>申诉记录查看</span>
            </BreadcrumbItem>
        </Breadcrumb>
    </Breadcrumb>
    <Content>
        <Collapse DefaultActiveKey="@(new[]{"1"})">
            <Panel Header="检索条件" Key="1" ShowArrow="false" Active="@ShowSearchPanel">
                <ExtraTemplate>
                    @if (ShowSearchPanel)
                    {
                        <div @onclick="()=> { ShowSearchPanel = !ShowSearchPanel; }">隐藏</div>
                    }
                    else
                    {
                        <div @onclick="()=> { ShowSearchPanel = !ShowSearchPanel; }">展开</div>
                    }
                </ExtraTemplate>
                <ChildContent>
                    <Form @ref="_form" Model="_filter" Size="@AntSizeLDSType.Small">
                        <Row Gutter="(16,0)">
                            <GridCol Span="6">
                                <FormItem Label="@($" 申诉类型")">
                                    <Select DataSource="@AppealTypes"
                                            @bind-Value="@context.AppealTypeId"
                                            LabelName="@nameof(wispro.sp.entity.AppealType.Name)"
                                            ValueName="@nameof(wispro.sp.entity.AppealType.Id)"
                                            Style="width: 170px"
                                            Placeholder="请选择"
                                            AllowClear>
                                    </Select>
                                </FormItem>
                            </GridCol>
                            <GridCol Span="6">
                                <FormItem Label="@($"案件编号")">
                                    <Input @bind-Value="@context.CaseNo" Placeholder="请输入案件编号" />
                                </FormItem>
                            </GridCol>
                            <GridCol Span="6">
                                <FormItem Label="@($"申 诉 人")">
                                    <Input @bind-Value="@context.CreateUser" Placeholder="请输入申诉人名称" />
                                </FormItem>
                            </GridCol>
                            <GridCol Span="6">
                                <FormItem Label="@($"审 核 人")">

                                    <Input @bind-Value="@context.Reviewer" Placeholder="请输入审核人名称" />
                                </FormItem>
                            </GridCol>
                            <GridCol Span="6">
                                <FormItem Label="@($"申诉日期从")">
                                    <DatePicker @bind-Value="@context.beginCreateTime" TValue="DateTime?" Picker="@DatePickerType.Date" />
                                    @*<Input @bind-Value="@context.beginCreateTime" />*@
                                </FormItem>
                            </GridCol>
                            <GridCol Span="6">
                                <FormItem Label="@($" 到")">
                                    <DatePicker @bind-Value="@context.endCreateTime" TValue="DateTime?" Picker="@DatePickerType.Date" />
                                    @*<Input @bind-Value="@context.endCreateTime" />*@
                                </FormItem>
                            </GridCol>
                            <GridCol Span="6">
                                <FormItem Label="@($"审核日期从")">
                                    <DatePicker @bind-Value="@context.beginReviewTime" TValue="DateTime?" Picker="@DatePickerType.Date" />
                                    @*<Input @bind-Value="@context.beginReviewTime" />*@
                                </FormItem>
                            </GridCol>
                            <GridCol Span="6">
                                <FormItem Label="@($" 到")">
                                    <DatePicker @bind-Value="@context.endReviewTime" TValue="DateTime?" Picker="@DatePickerType.Date" />
                                    @*<Input @bind-Value="@context.endReviewTime" />*@
                                </FormItem>
                            </GridCol>
                        </Row>
                        <Row>
                            <GridCol Span="24" Style="text-align:right;">
                                <Button Type="primary" HtmlType="submit" OnClick="OnSearch">查询</Button>
                                <Button Style="margin: 0 8px;" OnClick="()=>{_form?.Reset();}">清除</Button>
                            </GridCol>
                        </Row>
                    </Form>
                </ChildContent>
            </Panel>
        </Collapse>
    </Content>
    <ChildContent>
        <wispro.sp.web.Components.SSTable Datas="@showRecords" ShowAction="false"></wispro.sp.web.Components.SSTable>
    </ChildContent>
</PageContainer>