|
@@ -4,7 +4,7 @@
|
|
* @Author: code4eat awesomedema@gmail.com
|
|
* @Author: code4eat awesomedema@gmail.com
|
|
* @Date: 2022-12-16 09:42:52
|
|
* @Date: 2022-12-16 09:42:52
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
- * @LastEditTime: 2023-05-11 17:07:09
|
|
|
|
|
|
+ * @LastEditTime: 2023-05-11 17:16:08
|
|
* @FilePath: /BudgetManaSystem/src/pages/budgetMana/monthlySet/index.tsx
|
|
* @FilePath: /BudgetManaSystem/src/pages/budgetMana/monthlySet/index.tsx
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
*/
|
|
@@ -500,13 +500,14 @@ const EmployeeInfoCheck: React.FC = () => {
|
|
//初始化左侧树结构数据后
|
|
//初始化左侧树结构数据后
|
|
|
|
|
|
if (treeData?.length > 0) {
|
|
if (treeData?.length > 0) {
|
|
-
|
|
|
|
- if (treeData[0].child && treeData[0].child.length > 0) {
|
|
|
|
- const [node, nodeParent] = getDeepestTreeData(treeData[0], 'child');
|
|
|
|
-
|
|
|
|
- set_currentSelectedTreeNode(node);
|
|
|
|
- setExpandedKeys([nodeParent.code]);
|
|
|
|
- getCurrentCommitStatus();
|
|
|
|
|
|
+ if(!currentSelectedTreeNode){
|
|
|
|
+ if (treeData[0].child && treeData[0].child.length > 0) {
|
|
|
|
+ const [node, nodeParent] = getDeepestTreeData(treeData[0], 'child');
|
|
|
|
+
|
|
|
|
+ set_currentSelectedTreeNode(node);
|
|
|
|
+ setExpandedKeys([nodeParent.code]);
|
|
|
|
+ getCurrentCommitStatus();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, [treeData]);
|
|
}, [treeData]);
|