|
@@ -2,7 +2,7 @@
|
|
|
* @Author: code4eat awesomedema@gmail.com
|
|
|
* @Date: 2023-01-04 14:12:31
|
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
|
- * @LastEditTime: 2023-04-20 17:16:08
|
|
|
+ * @LastEditTime: 2023-04-20 17:46:33
|
|
|
* @FilePath: /BudgetManaSystem/src/pages/budgetMana/oneBatch/index.tsx
|
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
|
*/
|
|
@@ -19,21 +19,14 @@ import { getData, getRedirReportData } from './service';
|
|
|
|
|
|
import './style.less';
|
|
|
|
|
|
-
|
|
|
-import { create, all, string } from 'mathjs'
|
|
|
import { useParams } from '@umijs/max';
|
|
|
import { DownOutlined } from '@ant-design/icons';
|
|
|
+import { useLocation } from '@umijs/max';
|
|
|
+
|
|
|
|
|
|
-const config = {
|
|
|
- number: 'number',
|
|
|
- precision: 14
|
|
|
-}
|
|
|
-const math = create(all, config as any);
|
|
|
|
|
|
-// const {search} = location;
|
|
|
-// const urlparams = new URLSearchParams(search);
|
|
|
|
|
|
-// const urlReportCode = urlparams.get('reportCode') as string
|
|
|
+// const {search} = locatio
|
|
|
|
|
|
|
|
|
const ReportTemplate = () => {
|
|
@@ -41,6 +34,10 @@ const ReportTemplate = () => {
|
|
|
|
|
|
const { reportCode: urlReportCode } = useParams();
|
|
|
|
|
|
+ // const location = useLocation();
|
|
|
+ // console.log({location});
|
|
|
+ // const menuName = location.pathname.replace('/', '');
|
|
|
+
|
|
|
const [tableColumn, set_tableColumn] = useState<ProColumns[] | any[]>([]);
|
|
|
|
|
|
const [currentComputeDate, set_currentComputeDate] = useState<string | undefined>();
|
|
@@ -57,7 +54,7 @@ const ReportTemplate = () => {
|
|
|
|
|
|
|
|
|
const reportJumphandle = (reportData: any) => {
|
|
|
- console.log({ reportData });
|
|
|
+
|
|
|
let parameter: { [key: string]: any } = {};
|
|
|
const { redirectParameter = undefined } = reportData;
|
|
|
const _step = step + 1;
|
|
@@ -118,6 +115,7 @@ const ReportTemplate = () => {
|
|
|
dataIndex: `${item.columnName}`,
|
|
|
key: `${item.columnName}`,
|
|
|
width: 100,
|
|
|
+ hideInTable:item.hide,
|
|
|
render: (_: any, record: any) => {
|
|
|
|
|
|
|
|
@@ -211,7 +209,7 @@ const ReportTemplate = () => {
|
|
|
// 在这里处理路由参数变化的逻辑
|
|
|
set_tableDataFilterParams({ reportCode: urlReportCode, parameter: { compute_date: currentComputeDate } });
|
|
|
set_breadCrumbList([{
|
|
|
- name: '首页',
|
|
|
+ name:'首页',
|
|
|
params: { reportCode: urlReportCode, parameter: { compute_date: currentComputeDate } }
|
|
|
}])
|
|
|
}, [urlReportCode]);
|