소스 검색

修复提示信息&数据刷新

code4eat 2 년 전
부모
커밋
53db6c2609
3개의 변경된 파일14개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 0
      src/app.tsx
  2. 1 1
      src/pages/budgetMana/monthlyDataCheck/index.tsx
  3. 12 3
      src/pages/budgetMana/monthlyInfoCheck/index.tsx

+ 1 - 0
src/app.tsx

@@ -157,6 +157,7 @@ export const request: RequestConfig = {
                 success: true,
                 data: true
               } : response.data
+              
             }else{
               notification.error({
                  

+ 1 - 1
src/pages/budgetMana/monthlyDataCheck/index.tsx

@@ -1075,7 +1075,7 @@ const MonthlyDataCheck: React.FC = () => {
         doResize();
 
         return ()=>{
-            window.removeEventListener('resize',(e)=>handleResize(e))
+            window.removeEventListener('resize',(e)=>handleResize(e));
         }
 
     }, [])

+ 12 - 3
src/pages/budgetMana/monthlyInfoCheck/index.tsx

@@ -4,7 +4,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2022-12-16 09:42:52
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-03-01 16:26:50
+ * @LastEditTime: 2023-03-06 15:41:55
  * @FilePath: /BudgetManaSystem/src/pages/budgetMana/monthlySet/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -390,16 +390,24 @@ const MonthlyInfoCheck: React.FC = () => {
         });
         if (resp) {
             message.success('生成数据成功');
-            getCurrentComputeDate();
+            tableRef.current?.reload();
         } else {
             message.success('生成数据错误!');
         }
     }
 
     const generateFunc = (type: number) => {
+
+        let msg = '';
+
+        if(type == 1)msg = '生成操作会根据基础设定的单元人员对照信息重新生成数据,手动调整的人员信息将会丢失,确定继续生成操作?';
+        if(type == 2)msg = '生成操作会覆盖现有的科室数据,确定继续生成操作?';
+        if(type == 3)msg = '生成操作会覆盖现有的收费项目数据,确定继续生成操作?';
+
+
         Modal.confirm({
             title: '注意',
-            content: '生成操作会根据基础设定的单元人员对照信息重新生成数据,手动调整的人员信息将会丢失,确定继续生成操作?',
+            content: msg,
             onOk: () => confirmGenerateHandle(type)
 
         })
@@ -631,6 +639,7 @@ const MonthlyInfoCheck: React.FC = () => {
             {/* <div style={{width:16,height:'92vh',background:'#F5F7FA'}}></div> */}
             <div className='rightContent'>
                 <BMSPagecontainer title={`核算年月:${currentComputeDate}`} ghost>
+                    <div></div>
                     <div className='checkBtn' onClick={() => checkHandle(`${auditType}`)}>{auditType == '0' ? '审核' : '取消审核'}</div>
                     {/* <div className='midLine'>
                         <span>点击检查</span>