Explorar el Código

新增部分报表path

code4eat hace 2 años
padre
commit
8f5cf9137a
Se han modificado 2 ficheros con 15 adiciones y 3 borrados
  1. 6 1
      .umirc.ts
  2. 9 2
      src/app.tsx

+ 6 - 1
.umirc.ts

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2022-12-14 14:14:32
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-05-29 14:00:20
+ * @LastEditTime: 2023-05-29 14:30:52
  * @FilePath: /BudgetManaSystem/.umirc.ts
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -339,6 +339,11 @@ export default defineConfig({
               path: '/crosstabReport/businessAnalysis/opdAnalysis',
               routes:[{}]
             },
+            {
+              name: '收入分析',
+              path: '/crosstabReport/businessAnalysis/incomeAnalysis',
+              routes:[{}]
+            },
           ]
         },
         {

+ 9 - 2
src/app.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2022-12-14 14:14:32
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-05-29 13:46:13
+ * @LastEditTime: 2023-05-29 14:31:46
  * @FilePath: /BudgetManaSystem/src/app.ts
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -352,6 +352,10 @@ const reportCheck = (params: any) => {
   return <IconFont type='icon-baobiaochaxun' />
 };
 
+const crosstabReport = (params: any) => {
+  return <IconFont type='icon-baobiaochaxun' />
+};
+
 //布局配置
 
 export const layout = ({ initialState, setInitialState }: { initialState: any, setInitialState: any }) => {
@@ -458,6 +462,9 @@ export const layout = ({ initialState, setInitialState }: { initialState: any, s
                 if (node.path == '/reportCheck') {
                   node.icon = <Icon component={reportCheck} />;
                 }
+                if (node.path == '/crosstabReport') {
+                  node.icon = <Icon component={reportCheck} />;
+                }
               }
               if (node.children) {
                 node.children.forEach((child: any) => addIconToPath(child, paths));
@@ -465,7 +472,7 @@ export const layout = ({ initialState, setInitialState }: { initialState: any, s
             }
 
             data.forEach((item: any) => {
-              addIconToPath(item, ['/home', '/budgetMana', '/setting', '/reportCheck', '/secondaryDistribute']);
+              addIconToPath(item, ['/home', '/budgetMana', '/setting', '/reportCheck', '/secondaryDistribute','/crosstabReport']);
             });
 
             return data