Quellcode durchsuchen

修改部分table样式

code4eat vor 2 Jahren
Ursprung
Commit
dafd21602c

+ 1 - 1
src/pages/Home/style.less

@@ -11,7 +11,7 @@
     background: #F7F9FC;
     border-radius: 4px;
     padding: 16px 28px;
-    // margin-top: 16px;
+    margin-top: 16px;
 
     .tab {
       position: relative;

+ 36 - 34
src/pages/budgetMana/monthlyDataCheck/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-07 19:16:36
+ * @LastEditTime: 2023-03-08 11:11:39
  * @FilePath: /BudgetManaSystem/src/pages/budgetMana/monthlySet/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -104,37 +104,37 @@ const MonthlyDataCheck: React.FC = () => {
             title: '职类',
             dataIndex: 'unitTypeName',
             key: 'unitTypeName',
-            align: 'center'
+     
         },
         {
             title: '核算单元名称',
             dataIndex: 'unitName',
             key: 'unitName',
-            align: 'center'
+          
         },
         {
             title: '科室',
             dataIndex: 'deptName',
             key: 'deptName',
-            align: 'center'
+           
         },
         {
             title: '工号',
             dataIndex: 'empNo',
             key: 'empNo',
-            align: 'center'
+            
         },
         {
             title: '姓名',
             dataIndex: 'empName',
             key: 'empName',
-            align: 'center'
+            
         },
         {
             title: '工资类型',
             dataIndex: 'salaryType',
             key: 'salaryType',
-            align: 'center'
+           
         },
 
     ]
@@ -144,31 +144,31 @@ const MonthlyDataCheck: React.FC = () => {
             title: '职类',
             dataIndex: 'unitTypeName',
             key: 'unitTypeName',
-            align: 'center'
+           
         },
         {
             title: '核算单元名称',
             dataIndex: 'unitName',
             key: 'unitName',
-            align: 'center'
+         
         },
         {
             title: '科室',
             dataIndex: 'deptName',
             key: 'deptName',
-            align: 'center'
+           
         },
         {
             title: '项目名称',
             dataIndex: 'assessmentName',
             key: 'assessmentName',
-            align: 'center'
+            
         },
         {
             title: '分配方式',
             dataIndex: 'distributionType',
             key: 'distributionType',
-            align: 'center',
+          
             render: (record: any) => {
 
                 if (record == 1) return '占比'
@@ -180,25 +180,25 @@ const MonthlyDataCheck: React.FC = () => {
             title: '数值',
             dataIndex: 'value',
             key: 'value',
-            align: 'center'
+         
         },
         {
             title: '工号',
             dataIndex: 'targetValue',
             key: 'targetValue',
-            align: 'center'
+          
         },
         {
             title: '姓名',
             dataIndex: 'targetValueName',
             key: 'targetValueName',
-            align: 'center'
+          
         },
         {
             title: '说明',
             dataIndex: 'description',
             key: 'description',
-            align: 'center'
+          
         }
 
     ];
@@ -208,20 +208,20 @@ const MonthlyDataCheck: React.FC = () => {
             title: '项目名称',
             dataIndex: 'itemName',
             key: 'itemName',
-            align: 'center'
+        
         },
         {
             title: '类型',
             dataIndex: 'itemTypeName',
             key: 'itemTypeName',
-            align: 'center',
+          
 
         },
         {
             title: '点值',
             dataIndex: 'orderPointValue',
             key: 'orderPointValue',
-            align: 'center'
+         
         },
     ];
 
@@ -230,31 +230,31 @@ const MonthlyDataCheck: React.FC = () => {
             title: '年度',
             dataIndex: 'year',
             key: 'year',
-            align: 'center'
+           
         },
         {
             title: '月份',
             dataIndex: 'month',
             key: 'month',
-            align: 'center'
+           
         },
         {
             title: '项目名称',
             dataIndex: 'itemName',
             key: 'itemName',
-            align: 'center'
+        
         },
         {
             title: '项目类型',
             dataIndex: 'itemTypeName',
             key: 'itemTypeName',
-            align: 'center'
+         
         },
         {
             title: '金额',
             dataIndex: 'cost',
             key: 'cost',
-            align: 'center'
+          
         },
         // {
         //     title: '操作人',
@@ -270,6 +270,8 @@ const MonthlyDataCheck: React.FC = () => {
         // },
     ]
 
+    let inervalhander = undefined;
+
     const getCurrentComputeDate = async () => {
         const resp = await getComputeDate();
         set_currentComputeDate(resp);
@@ -551,7 +553,7 @@ const MonthlyDataCheck: React.FC = () => {
                             title: '核算单元',
                             dataIndex: 'unitName',
                             key: 'unitName',
-                            align: 'center',
+                          
                             width: 120,
                             fixed: 'left',
                         }, ...columns,
@@ -559,7 +561,7 @@ const MonthlyDataCheck: React.FC = () => {
                             title: '总得分',
                             dataIndex: 'totalScore',
                             key: 'totalScore',
-                            align: 'center',
+                          
                             width: 100,
                             fixed: 'right',
                         },
@@ -818,7 +820,7 @@ const MonthlyDataCheck: React.FC = () => {
                 unitCode: formData.unitCode,
                 deptCode: formData.deptCode,
                 nonAssessmentCode: typeof formData.assessmentCode == 'number' ? formData.assessmentCode : formData.assessmentCode.value,
-                targetValue: `${formData.userId}`,
+                targetValue: `${formData.userId?formData.userId:''}`,
                 value: `${formData.value}`,
                 description: formData.description
             }
@@ -838,7 +840,7 @@ const MonthlyDataCheck: React.FC = () => {
                 unitCode: formData.unitCode,
                 deptCode: formData.deptCode,
                 nonAssessmentCode: formData.assessmentCode.value,
-                targetValue: `${formData.userId}`,
+                targetValue: `${formData.userId?formData.userId:''}`,
                 value: `${formData.value}`,
                 description: formData.description
 
@@ -1028,7 +1030,7 @@ const MonthlyDataCheck: React.FC = () => {
 
     useEffect(()=>{
          if(loading){
-               setInterval(()=>{
+            inervalhander = setInterval(()=>{
                    getCalcStatus();
                },60000)
          }
@@ -1414,7 +1416,7 @@ const MonthlyDataCheck: React.FC = () => {
                                                         title: '金额',
                                                         dataIndex: 'salary',
                                                         key: 'salary',
-                                                        align: 'center',
+                                                  
                                                         width: '10%',
                                                         // shouldCellUpdate:(record:any, prevRecord:any) => true,
                                                         render: (text: any, record: any) => {
@@ -1474,7 +1476,7 @@ const MonthlyDataCheck: React.FC = () => {
                                                     title: '操作',
                                                     fixed: 'right',
                                                     key: 'option',
-                                                    align: 'center',
+                                                 
                                                     width: 130,
                                                     valueType: 'option',
                                                     render: (_: any, record: any) => [
@@ -1605,7 +1607,7 @@ const MonthlyDataCheck: React.FC = () => {
                                                         title: '数值',
                                                         dataIndex: 'value',
                                                         key: 'value',
-                                                        align: 'center',
+                                                   
                                                         render: (text: any, record: any) => {
 
                                                             return (
@@ -1642,7 +1644,7 @@ const MonthlyDataCheck: React.FC = () => {
                                                             title: '数值',
                                                             dataIndex: 'value',
                                                             key: 'value',
-                                                            align: 'center'
+                                                          
                                                         }
                                                     ]} request={(params, sort, filter) => getTableData('3', params, sort, filter)} />}
                                                 </div>
@@ -1697,7 +1699,7 @@ const MonthlyDataCheck: React.FC = () => {
                                                 key: 'option',
                                                 valueType: 'option',
                                                 width: 100,
-                                                align: 'center',
+                                               
                                                 fixed: 'right',
                                                 render: (_: any, record: any) => [
                                                     <EditManaIndexTableRow record={record} key={'edit'} />

+ 15 - 15
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-06 15:41:55
+ * @LastEditTime: 2023-03-08 11:12:38
  * @FilePath: /BudgetManaSystem/src/pages/budgetMana/monthlySet/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -52,19 +52,19 @@ const depInfoTableColumn = [
         title: '科室代码',
         dataIndex: 'deptCode',
         key: 'deptCode',
-        align: 'center'
+   
     },
     {
         title: '科室名称',
         dataIndex: 'deptName',
         key: 'deptName',
-        align: 'center'
+    
     },
     {
         title: '类型',
         dataIndex: 'deptTypeName',
         key: 'deptTypeName',
-        align: 'center'
+  
     },
 ]
 
@@ -73,31 +73,31 @@ const chargeInfoTableColumn = [
         title: '项目代码',
         dataIndex: 'itemCode',
         key: 'itemCode',
-        align: 'center'
+    
     },
     {
         title: '项目名称',
         dataIndex: 'itemName',
         key: 'itemName',
-        align: 'center'
+     
     },
     {
         title: '类型',
         dataIndex: 'itemType',
         key: 'itemType',
-        align: 'center'
+      
     },
     {
         title: '点值',
         dataIndex: 'itemPoint',
         key: 'itemPoint',
-        align: 'center'
+    
     },
     {
         title: '核心',
         dataIndex: 'coreFlag',
         key: 'coreFlag',
-        align: 'center',
+   
         render: (_: any) => {
             return _ == 1 ? '是' : '否'
         }
@@ -151,37 +151,37 @@ const MonthlyInfoCheck: React.FC = () => {
             title: '工号',
             dataIndex: 'empNo',
             key: 'empNo',
-            align: 'center'
+          
         },
         {
             title: '姓名',
             dataIndex: 'empName',
             key: 'empName',
-            align: 'center'
+        
         },
         {
             title: '岗位层级',
             dataIndex: 'positionLevelName',
             key: 'positionLevelName',
-            align: 'center'
+            
         },
         {
             title: '职务',
             dataIndex: 'jobTitleName',
             key: 'jobTitleName',
-            align: 'center'
+         
         },
         {
             title: '岗位系数',
             dataIndex: 'positionRate',
             key: 'positionRate',
-            align: 'center'
+         
         },
         {
             title: '年资',
             dataIndex: 'seniority',
             key: 'seniority',
-            align: 'center'
+           
         },
     ];
 

+ 2 - 0
src/pages/budgetMana/monthlySet/style.less

@@ -121,6 +121,7 @@
         font-weight: 400;
         color: #FFF;
         margin-top: 16px;
+        margin-bottom: 16px;
         cursor: pointer;
     }
 
@@ -128,6 +129,7 @@
         text-align: center;
         height: 40px;
         margin-top: 16px;
+        margin-bottom: 16px;
         line-height: 40px;
         background: #FAFCFF;
         border-radius: 4px;

+ 4 - 4
src/pages/budgetMana/oneBatch/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-01-04 14:12:31
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-03-02 17:09:55
+ * @LastEditTime: 2023-03-08 11:08:33
  * @FilePath: /BudgetManaSystem/src/pages/budgetMana/oneBatch/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -77,7 +77,7 @@ const OneBatch = () => {
           dataIndex: `${item.code}`,
           key: `${item.code}`,
           width: 140,
-          align: 'center',
+   
         }
       });
       set_tableColumn([{
@@ -86,14 +86,14 @@ const OneBatch = () => {
         key: 'unitName',
         width: 140,
         fixed: 'left',
-        align: 'center',
+       
       }, ...columns, {
         title: '总奖金',
         dataIndex: 'totalScore',
         key: 'totalScore',
         width: 140,
         fixed: 'right',
-        align: 'center',
+       
       }]);
 
       const data = assignmentData.map((item: any) => {

+ 10 - 10
src/pages/budgetMana/personnelSalaryBudget/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-01-03 14:20:22
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-03-02 10:48:59
+ * @LastEditTime: 2023-03-08 11:09:01
  * @FilePath: /BudgetManaSystem/src/pages/budgetMana/personnelSalaryBudget/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -41,55 +41,55 @@ const PersonnelSalaryBudget = () => {
             title: '职类',
             dataIndex: 'unitTypeName',
             key: 'unitTypeName',
-            align: 'center'
+         
         },
         {
             title: '合理编制比例',
             dataIndex: 'staffRate',
             key: 'staffRate',
-            align: 'center'
+       
         },
         {
             title: '合理人均薪酬系数',
             dataIndex: 'averageSalary',
             key: 'averageSalary',
-            align: 'center'
+          
         },
         {
             title: '人事成本占比',
             dataIndex: 'percent',
             key: 'percent',
-            align: 'center'
+          
         },
         {
             title: '人事成本',
             dataIndex: 'cost',
             key: 'cost',
-            align: 'center'
+           
         },
         {
             title: '固定工资',
             dataIndex: 'salary',
             key: 'salary',
-            align: 'center'
+          
         },
         {
             title: '专项补助',
             dataIndex: 'subsidies',
             key: 'subsidies',
-            align: 'center'
+          
         },
         {
             title: '变动薪酬',
             dataIndex: 'variableCompensation',
             key: 'variableCompensation',
-            align: 'center'
+          
         },
         {
             title: '考核奖金',
             dataIndex: 'assessmentBonus',
             key: 'assessmentBonus',
-            align: 'center'
+            
         },
     ]