Преглед изворни кода

修改刷新公式过早问题

Renxy пре 1 година
родитељ
комит
2451711957
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      src/pages/PSRManage/detail.js

+ 4 - 2
src/pages/PSRManage/detail.js

@@ -637,6 +637,9 @@ const PSRDetail = () => {
           luckysheetRef.current.refreshFormula();
         },
         workbookCreateAfter: async () => {
+          setTimeout(() => {
+            luckysheetRef.current.refreshFormula();
+          }, 800);
           //当前为为终版psr标签并且可编辑状态时填充人日数据
           if (key == '3' && is_edit) {
             fillWorkLoadData();
@@ -668,7 +671,6 @@ const PSRDetail = () => {
 
     luckysheetRef.current.destroy();
     luckysheetRef.current.create(option);
-    luckysheetRef.current.refreshFormula();
   };
 
   const fillWorkLoadData = async () => {
@@ -767,7 +769,7 @@ const PSRDetail = () => {
             }}
             disabled={noData}
           >
-            {`${data_type == 2 ? '' : name}历史版本`}
+            历史版本
           </Button>
           <Button
             type="primary"