|
@@ -19,22 +19,41 @@
|
|
|
@*<Button Type="primary" Icon="plus" OnClick="AddNew" Style="float:right">添加</Button>*@
|
|
|
</Content>
|
|
|
<ChildContent>
|
|
|
-
|
|
|
- <div style="width:100%;overflow:auto;background:#FFFFFF;height:600px;" id="div-Container">
|
|
|
+ <div style="width:100%;overflow:auto;background:#FFFFFF;height:100%;" id="div-Container">
|
|
|
<AntList Bordered DataSource="@_caseList">
|
|
|
<Header>
|
|
|
- <Select TItem="Field"
|
|
|
- TItemValue="string"
|
|
|
- DataSource="@_fields"
|
|
|
- LabelName="@nameof(Field.FieldName)"
|
|
|
- ValueName="@nameof(Field.FieldValue)"
|
|
|
- Placeholder="请选择检索栏位"
|
|
|
- DefaultActiveFirstOption="false"
|
|
|
- OnSelectedItemChanged="OnSelectedItemChangedHandler"
|
|
|
- >
|
|
|
- </Select>
|
|
|
- <Input Placeholder="请输入检索条件" @bind-Value="@txtValue" />
|
|
|
- <Button Type="@ButtonType.Primary" Icon="@IconType.Outline.Search" OnClick="OnSearch">搜索</Button>
|
|
|
+ <Row>
|
|
|
+ <Col Span="4">
|
|
|
+ <Select TItem="Field"
|
|
|
+ TItemValue="string"
|
|
|
+ DataSource="@_fields"
|
|
|
+ LabelName="@nameof(Field.FieldName)"
|
|
|
+ ValueName="@nameof(Field.FieldValue)"
|
|
|
+ Placeholder="请选择检索栏位"
|
|
|
+ DefaultActiveFirstOption="false"
|
|
|
+ OnSelectedItemChanged="OnSelectedItemChangedHandler"
|
|
|
+ >
|
|
|
+ </Select>
|
|
|
+ </Col>
|
|
|
+ <Col Span="6">
|
|
|
+ <Input Placeholder="请输入检索条件" @bind-Value="@txtValue" />
|
|
|
+ </Col>
|
|
|
+ <Col Span="4">
|
|
|
+ <Button Type="@ButtonType.Primary" Icon="@IconType.Outline.Search" OnClick="OnSearch">搜索</Button>
|
|
|
+ </Col>
|
|
|
+ <Col>
|
|
|
+ @if (_filter !=null && _filter.ConditionTree !=null && _filter.ConditionTree?.Count > 0)
|
|
|
+ {
|
|
|
+ foreach(var c in _filter.ConditionTree)
|
|
|
+ {
|
|
|
+ <Tag Closable OnClose="()=>RemoveCondition(c)">@ConvertFiledCondition2String(c)</Tag>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
</Header>
|
|
|
<ChildContent Context="item">
|
|
|
<ListItem>
|
|
@@ -52,13 +71,13 @@
|
|
|
<DescriptionsItem Span="1">
|
|
|
<Space>
|
|
|
<SpaceItem>
|
|
|
- @if(item.DRRCalim != null)
|
|
|
+ @if(item.DRRCalim != null)
|
|
|
{
|
|
|
- <Statistic Title="初稿&返稿相似度" Value="@($"{(item.DRRCalim.TextSimilarity*100.00).ToString("0.00")}%")" PrefixTemplate="@prefix1" />
|
|
|
+ <Statistic Title="初稿&返稿权要相似度" Value="@($"{(item.DRRCalim.TextSimilarity*100.00).ToString("0.00")}%")" PrefixTemplate="@prefix1" />
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- <Statistic Title="返稿&定稿相似度" Value="0" PrefixTemplate="@prefix1" />
|
|
|
+ <Statistic Title="返稿&定稿权要相似度" Value="0" PrefixTemplate="@prefix1" />
|
|
|
}
|
|
|
</SpaceItem>
|
|
|
<SpaceItem>
|
|
@@ -82,20 +101,246 @@
|
|
|
</ListItem>
|
|
|
</ChildContent>
|
|
|
<Footer>
|
|
|
- <Pagination @bind-Current="_pageIndex" Total="_total" OnChange="OnPageChange" />
|
|
|
+ <div>
|
|
|
+ @if (((_total % _pageSize == 0) ? _total / _pageSize : (_total / _pageSize + 1)) > 1)
|
|
|
+ {
|
|
|
+ <div style="float:right">
|
|
|
+ @if (_pageIndex > 1)
|
|
|
+ {
|
|
|
+ <Tooltip Title="@("上一页")">
|
|
|
+ <Button Type="@ButtonType.Default" Icon="@IconType.Outline.LeftCircle" OnClick="()=>OnPageChange(_pageIndex-1)"/>
|
|
|
+ </Tooltip>
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ <Tooltip Title="@("上一页")">
|
|
|
+ <Button Type="@ButtonType.Default" Icon="@IconType.Outline.LeftCircle" OnClick="()=>OnPageChange(_pageIndex-1)"
|
|
|
+ Disabled
|
|
|
+ />
|
|
|
+ </Tooltip>
|
|
|
+ }
|
|
|
+
|
|
|
+ @{
|
|
|
+ int _totalPages = ((_total % _pageSize == 0) ? _total / _pageSize : (_total / _pageSize + 1));
|
|
|
+ int start = ((_pageIndex - 5) < 0 ? 1 : (_pageIndex - 5));
|
|
|
+ int end = ((_pageIndex + 5) > _totalPages ? _totalPages : (_pageIndex + 5));
|
|
|
+
|
|
|
+ Console.WriteLine($"开始:{start},结束:{end}");
|
|
|
+ for (int iPage = start; iPage <= end; iPage++)
|
|
|
+ {
|
|
|
+ int iTem = iPage;
|
|
|
+ if (iTem == _pageIndex)
|
|
|
+ {
|
|
|
+ <Button Type="@ButtonType.Primary" Shape="@ButtonShape.Circle">@((MarkupString)iTem.ToString())</Button>
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ <Button Type="@ButtonType.Default" Shape="@ButtonShape.Circle" OnClick="()=>OnPageChange(iTem)">@((MarkupString)iTem.ToString())</Button>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @if (_pageIndex < ((_total % _pageSize == 0) ? _total / _pageSize : (_total / _pageSize + 1)))
|
|
|
+ {
|
|
|
+ <Tooltip Title="@("下一页")">
|
|
|
+ <Button Type="@ButtonType.Default" Icon="@IconType.Outline.RightCircle" OnClick="()=>OnPageChange(_pageIndex+1)"/>
|
|
|
+ </Tooltip>
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ <Tooltip Title="@("下一页")">
|
|
|
+ <Button Type="@ButtonType.Default" Icon="@IconType.Outline.RightCircle" OnClick="()=>OnPageChange(_pageIndex+1)"
|
|
|
+ Disabled
|
|
|
+ />
|
|
|
+ </Tooltip>
|
|
|
+ }
|
|
|
+ 总数:@_total
|
|
|
+ </div>
|
|
|
+ }
|
|
|
+ </div>
|
|
|
</Footer>
|
|
|
</AntList>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
</div>
|
|
|
|
|
|
</ChildContent>
|
|
|
</PageContainer>
|
|
|
|
|
|
+<Modal Title="@("对比详情")"
|
|
|
+ Visible="@_DetailShow"
|
|
|
+ OnOk="@btnOk"
|
|
|
+ OnCancel="@btnCancel"
|
|
|
+ Centered="@true"
|
|
|
+ Width="800"
|
|
|
+ >
|
|
|
+ <label for="result">对比结果:</label>
|
|
|
+ <div>
|
|
|
+ <RadioGroup @bind-Value="@_value" >
|
|
|
+ <Radio Value="1">初稿&第一次返稿对比</Radio>
|
|
|
+ <Radio Value="2">第一次返稿&定稿对比</Radio>
|
|
|
+ </RadioGroup>
|
|
|
+ </div>
|
|
|
+ <div id="result">
|
|
|
+ <table width="100%" border="1">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <td></td>
|
|
|
+ <td>权利要求</td>
|
|
|
+ <td>摘要</td>
|
|
|
+ <td>说明书</td>
|
|
|
+ <td>全部对比</td>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <td>语义相似度[%]</td>
|
|
|
+ @if (_value == 1)
|
|
|
+ {
|
|
|
+ <td> @($"{(_currentCase.DRRCalim?.TextSimilarity * 100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.DRRAbstract?.TextSimilarity * 100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.DRRFulltext?.TextSimilarity * 100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.DRRFulltext?.TextSimilarity * 100)?.ToString("0.00")}")</td>
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ <td>@($"{(_currentCase.RFRCalim?.TextSimilarity * 100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.RFRAbstract?.TextSimilarity * 100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.RFRFulltext?.TextSimilarity * 100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.RFRFulltext?.TextSimilarity * 100)?.ToString("0.00")}")</td>
|
|
|
+ }
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>原文字数</td>
|
|
|
+ @if (_value == 1)
|
|
|
+ {
|
|
|
+ <td>@_currentCase.DRRCalim?.oldWordCount</td>
|
|
|
+ <td>@_currentCase.DRRAbstract?.oldWordCount</td>
|
|
|
+ <td>@_currentCase.DRRFulltext?.oldWordCount</td>
|
|
|
+ <td>@_currentCase.DRRAll?.oldWordCount</td>
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ <td>@_currentCase.RFRCalim?.oldWordCount</td>
|
|
|
+ <td>@_currentCase.RFRAbstract?.oldWordCount</td>
|
|
|
+ <td>@_currentCase.RFRFulltext?.oldWordCount</td>
|
|
|
+ <td>@_currentCase.RFRAll?.oldWordCount</td>
|
|
|
+ }
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>删除字数</td>
|
|
|
+ @if (_value == 1)
|
|
|
+ {
|
|
|
+ <td>@_currentCase.DRRCalim?.DeleteCount</td>
|
|
|
+ <td>@_currentCase.DRRAbstract?.DeleteCount</td>
|
|
|
+ <td>@_currentCase.DRRFulltext?.DeleteCount</td>
|
|
|
+ <td>@_currentCase.DRRAll?.DeleteCount</td>
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ <td>@_currentCase.RFRCalim?.DeleteCount</td>
|
|
|
+ <td>@_currentCase.RFRAbstract?.DeleteCount</td>
|
|
|
+ <td>@_currentCase.RFRFulltext?.DeleteCount</td>
|
|
|
+ <td>@_currentCase.RFRAll?.DeleteCount</td>
|
|
|
+ }
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>插入字数</td>
|
|
|
+ @if (_value == 1)
|
|
|
+ {
|
|
|
+ <td>@_currentCase.DRRCalim?.InsertCount</td>
|
|
|
+ <td>@_currentCase.DRRAbstract?.InsertCount</td>
|
|
|
+ <td>@_currentCase.DRRFulltext?.InsertCount</td>
|
|
|
+ <td>@_currentCase.DRRAll?.InsertCount</td>
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ <td>@_currentCase.RFRCalim?.InsertCount</td>
|
|
|
+ <td>@_currentCase.RFRAbstract?.InsertCount</td>
|
|
|
+ <td>@_currentCase.RFRFulltext?.InsertCount</td>
|
|
|
+ <td>@_currentCase.RFRAll?.InsertCount</td>
|
|
|
+ }
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>修改比例[%]</td>
|
|
|
+ @if (_value == 1)
|
|
|
+ {
|
|
|
+ <td> @($"{(_currentCase.DRRCalim?.diffRate*100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.DRRAbstract?.diffRate*100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.DRRFulltext?.diffRate*100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.DRRFulltext?.diffRate*100)?.ToString("0.00")}")</td>
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ <td> @($"{(_currentCase.RFRCalim?.diffRate*100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.RFRAbstract?.diffRate*100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.RFRFulltext?.diffRate*100)?.ToString("0.00")}")</td>
|
|
|
+ <td>@($"{(_currentCase.RFRFulltext?.diffRate*100)?.ToString("0.00")}")</td>
|
|
|
+ }
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label>修订文字:</label>
|
|
|
+ <RadioGroup @bind-Value="@_ShowResultString" >
|
|
|
+ <Radio Value="1">权要</Radio>
|
|
|
+ <Radio Value="2">摘要</Radio>
|
|
|
+ <Radio Value="3">说明书</Radio>
|
|
|
+ <Radio Value="4">全文</Radio>
|
|
|
+ </RadioGroup>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="user-select:text !important;width:100%;height:300px;overflow: auto;border: 2px solid black;padding: 10px;">
|
|
|
+ @if(_ShowResultString==1 && _value == 1)
|
|
|
+ {
|
|
|
+ @((MarkupString)_currentCase.DRRCalim?.CompareResultString)
|
|
|
+ }
|
|
|
+
|
|
|
+ @if(_ShowResultString==2 && _value == 1)
|
|
|
+ {
|
|
|
+ @((MarkupString)_currentCase.DRRAbstract?.CompareResultString)
|
|
|
+ }
|
|
|
+
|
|
|
+ @if(_ShowResultString==3 && _value == 1)
|
|
|
+ {
|
|
|
+ @((MarkupString)_currentCase.DRRFulltext?.CompareResultString)
|
|
|
+ }
|
|
|
+
|
|
|
+ @if(_ShowResultString==4 && _value == 1)
|
|
|
+ {
|
|
|
+ @((MarkupString)_currentCase.DRRAll?.CompareResultString)
|
|
|
+ }
|
|
|
+
|
|
|
+ @if(_ShowResultString==1 && _value == 2)
|
|
|
+ {
|
|
|
+ @((MarkupString)_currentCase.RFRCalim?.CompareResultString)
|
|
|
+ }
|
|
|
+
|
|
|
+ @if(_ShowResultString==2 && _value == 2)
|
|
|
+ {
|
|
|
+ @((MarkupString)_currentCase.RFRAbstract?.CompareResultString)
|
|
|
+ }
|
|
|
+
|
|
|
+ @if(_ShowResultString==3 && _value == 2)
|
|
|
+ {
|
|
|
+ @((MarkupString)_currentCase.RFRFulltext?.CompareResultString)
|
|
|
+ }
|
|
|
+
|
|
|
+ @if(_ShowResultString==4 && _value == 2)
|
|
|
+ {
|
|
|
+ @((MarkupString)_currentCase.RFRAll?.CompareResultString)
|
|
|
+ }
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+</Modal>
|
|
|
|
|
|
@code
|
|
|
{
|
|
|
RenderFragment prefix1 =@<Icon Type="like" />;
|
|
|
-}
|
|
|
-
|
|
|
+}
|