|
@@ -85,16 +85,10 @@ const info: React.FC<widowProp> = (prop:widowProp) => {
|
|
|
runtimeEditType = 'create';
|
|
|
// 设置新增初始值
|
|
|
formRef.current?.setFieldsValue({
|
|
|
- buttonList: [],
|
|
|
- funccode: '',
|
|
|
- funcname: '',
|
|
|
- num: 0,
|
|
|
- oldfunccode: '',
|
|
|
- orderno: 1,
|
|
|
- parentname: node.title?.toString(),
|
|
|
- remark: '',
|
|
|
- url: '',
|
|
|
+ riskExposureNo: '',
|
|
|
+ riskExposureName: '',
|
|
|
});
|
|
|
+ setFormData([]);
|
|
|
leaf.current = '1';
|
|
|
levelcode.current = levelcode.current + 1;
|
|
|
}
|
|
@@ -174,6 +168,7 @@ const info: React.FC<widowProp> = (prop:widowProp) => {
|
|
|
setRiskWeightFlag(false);
|
|
|
}
|
|
|
formRef.current?.setFieldsValue(data);
|
|
|
+ setEditType('update');
|
|
|
}
|
|
|
|
|
|
// 风险暴漏分类规则删除
|
|
@@ -363,8 +358,10 @@ const info: React.FC<widowProp> = (prop:widowProp) => {
|
|
|
console.log(e.key,nodeData)
|
|
|
if (e.key == 'create') {
|
|
|
createNode(nodeData);
|
|
|
+ e.domEvent.stopPropagation();
|
|
|
} else if (e.key == 'delete') {
|
|
|
deleteNode(nodeData);
|
|
|
+ e.domEvent.stopPropagation();
|
|
|
}
|
|
|
}}} trigger={['contextMenu']}
|
|
|
>
|
|
@@ -431,11 +428,11 @@ const info: React.FC<widowProp> = (prop:widowProp) => {
|
|
|
|
|
|
|
|
|
{ riskFlag &&
|
|
|
- <SDTable
|
|
|
- title="风险暴露分类认定规则列表"
|
|
|
+ <ProTable
|
|
|
search={false}
|
|
|
rowKey="ruleNo"
|
|
|
columns={columns}
|
|
|
+ dataSource={formData}
|
|
|
toolBarRender={(_, { selectedRows }) => [
|
|
|
<SDButton
|
|
|
key="create"
|
|
@@ -457,9 +454,6 @@ const info: React.FC<widowProp> = (prop:widowProp) => {
|
|
|
}}
|
|
|
actionRef={actionRef}
|
|
|
formRef={proformRef}
|
|
|
- setDetailVisible={() => {setDetailVisible(true)}}
|
|
|
- setEditType={setBackEditType}
|
|
|
- setCurrentRow={setCurrentRow}
|
|
|
/>}
|
|
|
|
|
|
{detailVisible && (
|