|
@@ -38,9 +38,24 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
expandTreeIds: [],
|
|
|
defaultFormData: null,
|
|
|
parentID: '',
|
|
|
+<<<<<<< HEAD
|
|
|
modalType: OrganizationModalEnum.ADD,
|
|
|
accountTotal: null
|
|
|
})
|
|
|
+=======
|
|
|
+ typeEum: '0',
|
|
|
+ up: 'up',
|
|
|
+ down: 'down',
|
|
|
+ accountTotal: null
|
|
|
+ })
|
|
|
+ // const titleType = {
|
|
|
+ // ADD: 1,
|
|
|
+ // ADDITEM: 2,
|
|
|
+ // RENAME: 3,
|
|
|
+ // DEL: 4,
|
|
|
+ // MOVE: 5
|
|
|
+ // }
|
|
|
+>>>>>>> 8d40226 (fix: 组织架构弹窗内容报错问题)
|
|
|
|
|
|
const { run: tryOrganizationList } = useRequest(
|
|
|
() => queryOrganizationalStructureList({ dataID, structureType }),
|
|
@@ -128,7 +143,11 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
...state,
|
|
|
visible: true,
|
|
|
defaultFormData: record,
|
|
|
+<<<<<<< HEAD
|
|
|
modalType: OrganizationModalEnum.MOVE
|
|
|
+=======
|
|
|
+ typeEum: ModalType.MOVE
|
|
|
+>>>>>>> 8d40226 (fix: 组织架构弹窗内容报错问题)
|
|
|
})
|
|
|
}}
|
|
|
>
|
|
@@ -149,7 +168,11 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
structureType: structureType,
|
|
|
parentID: record.ID
|
|
|
},
|
|
|
+<<<<<<< HEAD
|
|
|
modalType: OrganizationModalEnum.ADDITEM
|
|
|
+=======
|
|
|
+ typeEum: ModalType.ADDITEM
|
|
|
+>>>>>>> 8d40226 (fix: 组织架构弹窗内容报错问题)
|
|
|
})
|
|
|
}}
|
|
|
>
|
|
@@ -164,7 +187,11 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
...state,
|
|
|
visible: true,
|
|
|
defaultFormData: record,
|
|
|
+<<<<<<< HEAD
|
|
|
modalType: OrganizationModalEnum.RENAME
|
|
|
+=======
|
|
|
+ typeEum: ModalType.UPDATE
|
|
|
+>>>>>>> 8d40226 (fix: 组织架构弹窗内容报错问题)
|
|
|
})
|
|
|
}}
|
|
|
>
|
|
@@ -181,7 +208,11 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
...state,
|
|
|
visible: true,
|
|
|
defaultFormData: record,
|
|
|
+<<<<<<< HEAD
|
|
|
modalType: OrganizationModalEnum.DEL,
|
|
|
+=======
|
|
|
+ typeEum: ModalType.DEL,
|
|
|
+>>>>>>> 8d40226 (fix: 组织架构弹窗内容报错问题)
|
|
|
accountTotal: record.accountTotal
|
|
|
})
|
|
|
}}
|
|
@@ -229,7 +260,12 @@ const Organization: React.FC<OrganizationProps> = ({ dataID, structureType }) =>
|
|
|
setState({
|
|
|
...state,
|
|
|
visible: true,
|
|
|
+<<<<<<< HEAD
|
|
|
modalType: OrganizationModalEnum.ADD,
|
|
|
+=======
|
|
|
+ currentModalType: ModalType.ADD,
|
|
|
+ typeEum: ModalType.ADD,
|
|
|
+>>>>>>> 8d40226 (fix: 组织架构弹窗内容报错问题)
|
|
|
defaultFormData: {
|
|
|
dataID: dataID,
|
|
|
structureType: structureType,
|