code4eat преди 3 години
родител
ревизия
14646c2122

+ 2 - 1
config/config.ts

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-09-03 14:28:27
- * @LastEditTime: 2022-01-14 09:52:16
+ * @LastEditTime: 2022-03-04 10:43:11
  * @LastEditors: Please set LastEditors
  * @Description: In User Settings Edit
  * @FilePath: /MedicalWisdomCheckSys/config/config.ts
@@ -60,6 +60,7 @@ export default defineConfig({
   autoprefixer:{
 
   },
+  publicPath:'/',
   // Fast Refresh 热更新
   fastRefresh: {},
   openAPI: [

+ 6 - 12
src/app.tsx

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-09-03 14:28:27
- * @LastEditTime: 2022-01-10 14:58:23
+ * @LastEditTime: 2022-02-14 17:32:17
  * @LastEditors: Please set LastEditors
  * @Description: In User Settings Edit
  * @FilePath: /MedicalWisdomCheckSys/src/app.tsx
@@ -203,7 +203,6 @@ const responseInterceptors = async (response: Response, options: responseInterce
               title: '抱歉,登录已过期请重新登录!',
               onOk: () => {
                 ifStopNextRequet = false;
-                
                 loginOut();
               }
             });
@@ -293,8 +292,6 @@ const mappingIcon = (menuData:menuDataItemType[]) => {
 
 
 
-
-
 // ProLayout 支持的api https://procomponents.ant.design/components/layout
 export const layout: RunTimeLayoutConfig = ({ initialState,setInitialState }) => {
  
@@ -302,16 +299,13 @@ export const layout: RunTimeLayoutConfig = ({ initialState,setInitialState }) =>
     logo:initialState?.logo,
     rightContentRender: () => <RightContent />,
     disableContentMargin: false,
-    waterMarkProps: {
-      // content: initialState?.currentUser?.name,
-    },
     // footerRender: () => <Footer />,
     onPageChange:() => {
-      const { location } = history;
-      // 如果没有登录,重定向到 login
-      // if (!initialState?.currentUser && location.pathname !== loginPath) {
-      //   history.push(`${loginPath}?hospSign=${hospSign}`);
-      // }
+      // const { location } = history;
+      // // 如果没有登录,重定向到 login
+      // // if (!initialState?.currentUser && location.pathname !== loginPath) {
+      // //   history.push(`${loginPath}?hospSign=${hospSign}`);
+      // // }
     },
     menu: {
 

+ 4 - 10
src/components/MccsTable/index.tsx

@@ -1,13 +1,12 @@
 /*
  * @Author: your name
- * @Date: 2021-09-14 11:14:06
- * @LastEditTime: 2022-03-04 17:19:26
- * @LastEditors: Please set LastEditors
- * @Description: In User Settings Edit
+ * @Date: 2022-03-09 10:08:00
+ * @LastEditTime: 2022-03-09 14:13:03
+ * @LastEditors: your name
+ * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  * @FilePath: /MedicalWisdomCheckSys/src/components/MccsTable/index.tsx
  */
 
-
 import React,{useImperativeHandle,useRef} from 'react'
 import ProTable, {  } from '@ant-design/pro-table';
 import type { ActionType } from '@ant-design/pro-table';
@@ -47,11 +46,6 @@ const MccsTable=React.forwardRef<MccsTable.MccsTableRef,MccsTable.MccsTable>((pr
     return (
         <React.Fragment >
             <div className='container'>
-                 {/* <div className='formGroup'>
-                {
-                    searchNode
-                }
-            </div> */}
             <ProTable
                   columns={processColumns(columns)}
                   toolBarRender={false}

+ 1 - 1
src/global.less

@@ -3,7 +3,7 @@
 html,
 body,
 #root {
-  height: 100%;
+  height: 100vh;
   min-width:1100px;
 }
 

+ 1 - 11
src/global.tsx

@@ -6,7 +6,7 @@
  * @Description: In User Settings Edit
  * @FilePath: /MedicalWisdomCheckSys/src/global.tsx
  */
-import { Button, message, notification } from 'antd';
+import { Button, notification } from 'antd';
 
 import defaultSettings from '../config/defaultSettings';
 
@@ -19,8 +19,6 @@ const isHttps = document.location.protocol === 'https:';
     
   // if pwa is true
 if (pwa) {
-
-
   // Pop up a prompt on the page asking the user if they want to use the latest version
   window.addEventListener('sw.updated',(event: Event) => {
     const e = event as CustomEvent;
@@ -81,14 +79,6 @@ if (pwa) {
     if (sw) sw.unregister();
   });
 
-  //remove all caches
-  // if (window.caches && await window.caches.keys()) {
-  //   caches.keys().then((keys) => {
-  //     keys.forEach((key) => {
-  //       caches.delete(key);
-  //     });
-  //   });
-  // }
 }
 
 

+ 1 - 1
src/pages/DataManagement/publicData/model.ts

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-09-23 09:02:09
- * @LastEditTime: 2022-01-05 15:08:21
+ * @LastEditTime: 2022-02-14 16:56:39
  * @LastEditors: Please set LastEditors
  * @Description: In User Settings Edit
  * @FilePath: /MedicalWisdomCheckSys/src/pages/DataManagement/publicData/model.ts

+ 1 - 0
src/pages/GradeHospitalAccreditation/accreditationDetail/index.tsx

@@ -1,3 +1,4 @@
+/* eslint-disable react/no-array-index-key */
 /*
  * @Author: your name
  * @Date: 2021-09-06 09:07:56

+ 11 - 9
src/utils.js

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2021-09-26 17:59:56
- * @LastEditTime: 2021-11-12 10:55:08
+ * @LastEditTime: 2022-02-14 14:32:46
  * @LastEditors: Please set LastEditors
  * @Description: In User Settings Edit
  * @FilePath: /MedicalWisdomCheckSys/src/pages/utils.js
@@ -54,14 +54,16 @@ const getQueryString = (name)=>{
     
 
     if (window.location.pathname !== '/user/login' && !redirect) {
-      history.replace({
-        pathname: '/user/login',
-        search: stringify({
-          redirect:pathname,
-          hospSign:hospSign
-        }),
-      });
-      localStorage.removeItem('hospSign');
+
+      localStorage.removeItem('userData');
+    //   history.replace({
+    //     pathname: '/user/login',
+    //     search: stringify({
+    //       redirect:pathname,
+    //       hospSign:hospSign
+    //     }),
+    //   });
+      
     }
   };