Ver código fonte

调整报表表单标题

code4eat 2 anos atrás
pai
commit
6ae4027817

+ 11 - 13
src/pages/reportCheck/report/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-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]);

+ 3 - 3
src/pages/setting/reportSet/reportSetting/index.tsx

@@ -2,7 +2,7 @@
  * @Author: code4eat awesomedema@gmail.com
  * @Date: 2023-03-03 11:30:33
  * @LastEditors: code4eat awesomedema@gmail.com
- * @LastEditTime: 2023-04-20 15:39:17
+ * @LastEditTime: 2023-04-20 17:37:14
  * @FilePath: /KC-MiddlePlatform/src/pages/platform/setting/pubDicTypeMana/index.tsx
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -211,7 +211,7 @@ const ReportSetting = () => {
 
         return (
             <ModalForm
-                title={type == 'ADD_LEFTDATA' ? `新增医疗组` : `编辑医疗组`}
+                title={type == 'ADD_LEFTDATA' ? `新增报表` : `编辑报表`}
                 width={352}
                 initialValues={type == 'EDIT_LEFTDATA' ? { ...record } : {}}
                 trigger={
@@ -234,7 +234,7 @@ const ReportSetting = () => {
                 />
                 <ProFormSelect
                     name="reportType"
-                    label="类型:"
+                    label="报表类型:"
                     placeholder="请选择"
                     request={async () => {
                         const resp = await getReportListType();