|
@@ -101,100 +101,101 @@
|
|
</ActionColumn>
|
|
</ActionColumn>
|
|
</RowTemplate>
|
|
</RowTemplate>
|
|
|
|
|
|
- <ExpandTemplate Context="rowData" >
|
|
|
|
|
|
+ <ExpandTemplate Context="rowData" >
|
|
@if (rowData.Data.InputValueSetting.valueType == entity.workflowDefine.EnumFieldType.List)
|
|
@if (rowData.Data.InputValueSetting.valueType == entity.workflowDefine.EnumFieldType.List)
|
|
{
|
|
{
|
|
- <AntDesign.Table
|
|
|
|
- TItem="wispro.sp.entity.workflowDefine.InputValueSetting"
|
|
|
|
- DataSource="@GetChildItem(rowData.Data)"
|
|
|
|
- Bordered=@true
|
|
|
|
- Size=@TableSize.Middle
|
|
|
|
- HidePagination>
|
|
|
|
- <AntDesign.Column Title="栏位名称" TData="string">
|
|
|
|
- @if (context == EditObj)
|
|
|
|
- {
|
|
|
|
- <Input @bind-Value="context.DisplayName" />
|
|
|
|
|
|
+ <AntDesign.Table
|
|
|
|
+ TItem="wispro.sp.entity.workflowDefine.InputValueSetting"
|
|
|
|
+ DataSource="@GetChildItem(rowData.Data)"
|
|
|
|
+ Bordered=@true
|
|
|
|
+ Size=@TableSize.Middle
|
|
|
|
+ Context="cc"
|
|
|
|
+ HidePagination>
|
|
|
|
+ <AntDesign.Column Title="栏位名称" TData="string">
|
|
|
|
+ @if (cc == EditObj)
|
|
|
|
+ {
|
|
|
|
+ <Input @bind-Value="cc.DisplayName" />
|
|
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- @context.DisplayName
|
|
|
|
- }
|
|
|
|
- </AntDesign.Column>
|
|
|
|
- <AntDesign.Column Title="栏位类型" TData="string">
|
|
|
|
- @if (context == EditObj)
|
|
|
|
- {
|
|
|
|
- <Select DataSource="@FieldTypes"
|
|
|
|
- @bind-Value="@context.valueType"
|
|
|
|
- LabelName="@nameof(wispro.sp.entity.EnumnDescription<wispro.sp.entity.workflowDefine.FieldType>.Description)"
|
|
|
|
- ValueName="@nameof(wispro.sp.entity.EnumnDescription<wispro.sp.entity.workflowDefine.FieldType>.Value)"
|
|
|
|
- Placeholder="请选项一项"
|
|
|
|
- DefaultActiveFirstItem="false"
|
|
|
|
- EnableSearch="true"
|
|
|
|
- AllowClear="true"
|
|
|
|
- Style="width:220px;">
|
|
|
|
- </Select>
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- <span>@wispro.sp.entity.EnumHelper.GetDescription(context.valueType)</span>
|
|
|
|
- }
|
|
|
|
- </AntDesign.Column>
|
|
|
|
- <AntDesign.Column Title="可选值" TData="string">
|
|
|
|
- @if (context == EditObj)
|
|
|
|
- {
|
|
|
|
- <Input @bind-Value="context.Options" />
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- @context.Options
|
|
|
|
- }
|
|
|
|
- </AntDesign.Column>
|
|
|
|
- <AntDesign.Column Title="绑定栏位" TData="string">
|
|
|
|
- @if (context == EditObj)
|
|
|
|
- {
|
|
|
|
- <Input @bind-Value="context.bindField" />
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- @context.bindField
|
|
|
|
- }
|
|
|
|
- </AntDesign.Column>
|
|
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ @cc.DisplayName
|
|
|
|
+ }
|
|
|
|
+ </AntDesign.Column>
|
|
|
|
+ <AntDesign.Column Title="栏位类型" TData="string">
|
|
|
|
+ @if (cc == EditObj)
|
|
|
|
+ {
|
|
|
|
+ <Select DataSource="@FieldTypes"
|
|
|
|
+ @bind-Value="@cc.valueType"
|
|
|
|
+ LabelName="@nameof(wispro.sp.entity.EnumnDescription<wispro.sp.entity.workflowDefine.FieldType>.Description)"
|
|
|
|
+ ValueName="@nameof(wispro.sp.entity.EnumnDescription<wispro.sp.entity.workflowDefine.FieldType>.Value)"
|
|
|
|
+ Placeholder="请选项一项"
|
|
|
|
+ DefaultActiveFirstItem="false"
|
|
|
|
+ EnableSearch="true"
|
|
|
|
+ AllowClear="true"
|
|
|
|
+ Style="width:220px;">
|
|
|
|
+ </Select>
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ <span>@wispro.sp.entity.EnumHelper.GetDescription(cc.valueType)</span>
|
|
|
|
+ }
|
|
|
|
+ </AntDesign.Column>
|
|
|
|
+ <AntDesign.Column Title="可选值" TData="string">
|
|
|
|
+ @if (cc == EditObj)
|
|
|
|
+ {
|
|
|
|
+ <Input @bind-Value="cc.Options" />
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ @cc.Options
|
|
|
|
+ }
|
|
|
|
+ </AntDesign.Column>
|
|
|
|
+ <AntDesign.Column Title="绑定栏位" TData="string">
|
|
|
|
+ @if (cc == EditObj)
|
|
|
|
+ {
|
|
|
|
+ <Input @bind-Value="cc.bindField" />
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ @cc.bindField
|
|
|
|
+ }
|
|
|
|
+ </AntDesign.Column>
|
|
|
|
|
|
- <ActionColumn>
|
|
|
|
- @if (context == EditObj)
|
|
|
|
- {
|
|
|
|
- <Space>
|
|
|
|
- <SpaceItem><Button Type="@ButtonType.Text" OnClick="() => Save(context)">保存</Button></SpaceItem>
|
|
|
|
- </Space>
|
|
|
|
- <Space>
|
|
|
|
- <Popconfirm Title="确定要忽略当前修改?"
|
|
|
|
- OnConfirm="() => OnCancel(context)"
|
|
|
|
- OkText="Yes"
|
|
|
|
- CancelText="No">
|
|
|
|
- <a>取消</a>
|
|
|
|
- </Popconfirm>
|
|
|
|
- </Space>
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- <Space>
|
|
|
|
- <SpaceItem><Button Type="@ButtonType.Text" OnClick="() => Edit(context)">编辑</Button></SpaceItem>
|
|
|
|
- </Space>
|
|
|
|
- <Space>
|
|
|
|
- <Popconfirm Title="确定要删除当前栏位?"
|
|
|
|
- OnConfirm="() => Delete(context)"
|
|
|
|
- OkText="Yes"
|
|
|
|
- CancelText="No">
|
|
|
|
- <a>删除</a>
|
|
|
|
- </Popconfirm>
|
|
|
|
- </Space>
|
|
|
|
- }
|
|
|
|
- </ActionColumn>
|
|
|
|
- </AntDesign.Table>
|
|
|
|
|
|
+ <ActionColumn>
|
|
|
|
+ @if (cc == EditObj)
|
|
|
|
+ {
|
|
|
|
+ <Space>
|
|
|
|
+ <SpaceItem><Button Type="@ButtonType.Text" OnClick="() => Save(cc)">保存</Button></SpaceItem>
|
|
|
|
+ </Space>
|
|
|
|
+ <Space>
|
|
|
|
+ <Popconfirm Title="确定要忽略当前修改?"
|
|
|
|
+ OnConfirm="() => OnCancel(cc)"
|
|
|
|
+ OkText="Yes"
|
|
|
|
+ CancelText="No">
|
|
|
|
+ <a>取消</a>
|
|
|
|
+ </Popconfirm>
|
|
|
|
+ </Space>
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ <Space>
|
|
|
|
+ <SpaceItem><Button Type="@ButtonType.Text" OnClick="() => Edit(cc)">编辑</Button></SpaceItem>
|
|
|
|
+ </Space>
|
|
|
|
+ <Space>
|
|
|
|
+ <Popconfirm Title="确定要删除当前栏位?"
|
|
|
|
+ OnConfirm="() => Delete(cc)"
|
|
|
|
+ OkText="Yes"
|
|
|
|
+ CancelText="No">
|
|
|
|
+ <a>删除</a>
|
|
|
|
+ </Popconfirm>
|
|
|
|
+ </Space>
|
|
|
|
+ }
|
|
|
|
+ </ActionColumn>
|
|
|
|
+ </AntDesign.Table>
|
|
}
|
|
}
|
|
</ExpandTemplate>
|
|
</ExpandTemplate>
|
|
|
|
|
|
-</AntDesign.Table>
|
|
|
|
|
|
+ </AntDesign.Table>
|
|
</Body>
|
|
</Body>
|
|
</Card>
|
|
</Card>
|