Pārlūkot izejas kodu

修改页面介绍

HW 4 gadi atpakaļ
vecāks
revīzija
1709ea9e97

+ 2 - 1
config/config.ts

@@ -13,8 +13,9 @@ export default defineConfig({
     hmr: true,
   },
   layout: {
-    name: 'Ant Design Pro',
+    name: '科德管理系统',
     locale: false,
+    disableMobile: false,
     siderWidth: 208,
     ...defaultSettings,
   },

+ 2 - 2
config/defaultSettings.ts

@@ -12,9 +12,9 @@ const Settings: LayoutSettings & {
   fixedHeader: false,
   fixSiderbar: true,
   colorWeak: false,
-  title: 'Ant Design Pro',
+  title: '科德管理系统',
   pwa: false,
-  logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
+  logo: 'http://ss.jishutao.com/portal/1.2.10/img/ico_logo.png',
   iconfontUrl: '',
 };
 

+ 2 - 2
config/proxy.ts

@@ -15,14 +15,14 @@ export default {
   },
   test: {
     '/api/': {
-      target: 'https://preview.pro.ant.design',
+      target: 'http://uat.jishutao.com',
       changeOrigin: true,
       pathRewrite: { '/api/login': '' },
     },
   },
   pre: {
     '/api/': {
-      target: 'your pre url',
+      target: 'http://uat.jishutao.com',
       changeOrigin: true,
       pathRewrite: { '/api/login': '' },
     },

+ 16 - 16
src/components/Footer/index.tsx

@@ -4,26 +4,26 @@ import { DefaultFooter } from '@ant-design/pro-layout';
 
 export default () => (
   <DefaultFooter
-    copyright="2020 蚂蚁集团体验技术部出品"
+    copyright="2021 科德集团平台发展部出品"
     links={[
       {
-        key: 'Ant Design Pro',
-        title: 'Ant Design Pro',
-        href: 'https://pro.ant.design',
-        blankTarget: true,
-      },
-      {
-        key: 'github',
-        title: <GithubOutlined />,
-        href: 'https://github.com/ant-design/ant-design-pro',
-        blankTarget: true,
-      },
-      {
-        key: 'Ant Design',
-        title: 'Ant Design',
-        href: 'https://ant.design',
+        key: '湖南科德信息咨询有限公司',
+        title: '湖南科德信息咨询有限公司',
+        href: 'http://www.kedexinxi.com/',
         blankTarget: true,
       },
+      // {
+      //   key: 'github',
+      //   title: <GithubOutlined />,
+      //   href: 'https://github.com/ant-design/ant-design-pro',
+      //   blankTarget: true,
+      // },
+      // {
+      //   key: 'Ant Design',
+      //   title: 'Ant Design',
+      //   href: 'https://ant.design',
+      //   blankTarget: true,
+      // },
     ]}
   />
 );

+ 53 - 48
src/components/RightContent/index.tsx

@@ -30,57 +30,62 @@ const GlobalHeaderRight: React.FC<{}> = () => {
   }
   return (
     <Space className={className}>
-      <HeaderSearch
-        className={`${styles.action} ${styles.search}`}
-        placeholder="站内搜索"
-        defaultValue="umi ui"
-        options={[
-          { label: <a href="https://umijs.org/zh/guide/umi-ui.html">umi ui</a>, value: 'umi ui' },
-          {
-            label: <a href="next.ant.design">Ant Design</a>,
-            value: 'Ant Design',
-          },
-          {
-            label: <a href="https://protable.ant.design/">Pro Table</a>,
-            value: 'Pro Table',
-          },
-          {
-            label: <a href="https://prolayout.ant.design/">Pro Layout</a>,
-            value: 'Pro Layout',
-          },
-        ]}
-        // onSearch={value => {
-        //   console.log('input', value);
-        // }}
-      />
-      <HeaderDropdown
-        overlay={
-          <Menu>
-            <Menu.Item
-              onClick={() => {
-                window.open('/~docs');
-              }}
-            >
-              组件文档
-            </Menu.Item>
-            <Menu.Item
-              onClick={() => {
-                window.open('https://pro.ant.design/docs/getting-started');
-              }}
-            >
-              Ant Design Pro 文档
-            </Menu.Item>
-          </Menu>
-        }
-      >
-        <span className={styles.action}>
-          <QuestionCircleOutlined />
-        </span>
-      </HeaderDropdown>
+      {/*<HeaderSearch*/}
+      {/*  className={`${styles.action} ${styles.search}`}*/}
+      {/*  placeholder="站内搜索"*/}
+      {/*  defaultValue="umi ui"*/}
+      {/*  options={[*/}
+      {/*    { label: <a href="https://umijs.org/zh/guide/umi-ui.html">umi ui</a>, value: 'umi ui' },*/}
+      {/*    {*/}
+      {/*      label: <a href="next.ant.design">Ant Design</a>,*/}
+      {/*      value: 'Ant Design',*/}
+      {/*    },*/}
+      {/*    {*/}
+      {/*      label: <a href="https://protable.ant.design/">Pro Table</a>,*/}
+      {/*      value: 'Pro Table',*/}
+      {/*    },*/}
+      {/*    {*/}
+      {/*      label: <a href="https://prolayout.ant.design/">Pro Layout</a>,*/}
+      {/*      value: 'Pro Layout',*/}
+      {/*    },*/}
+      {/*  ]}*/}
+      {/*  // onSearch={value => {*/}
+      {/*  //   console.log('input', value);*/}
+      {/*  // }}*/}
+      {/*/>*/}
+      {/*<HeaderDropdown*/}
+      {/*  overlay={*/}
+      {/*    <Menu>*/}
+      {/*      <Menu.Item*/}
+      {/*        onClick={() => {*/}
+      {/*          window.open('/~docs');*/}
+      {/*        }}*/}
+      {/*      >*/}
+      {/*        组件文档*/}
+      {/*      </Menu.Item>*/}
+      {/*      <Menu.Item*/}
+      {/*        onClick={() => {*/}
+      {/*          window.open('https://pro.ant.design/docs/getting-started');*/}
+      {/*        }}*/}
+      {/*      >*/}
+      {/*        Ant Design Pro 文档*/}
+      {/*      </Menu.Item>*/}
+      {/*    </Menu>*/}
+      {/*  }*/}
+      {/*>*/}
+      {/*  <span className={styles.action}>*/}
+      {/*    <QuestionCircleOutlined />*/}
+      {/*  </span>*/}
+      {/*</HeaderDropdown>*/}
       <Avatar />
       {REACT_APP_ENV && (
         <span>
-          <Tag color={ENVTagColor[REACT_APP_ENV]}>{REACT_APP_ENV}</Tag>
+          <Tag color={ENVTagColor[REACT_APP_ENV]}>
+            {
+              REACT_APP_ENV === 'dev' ? '本地环境':
+                REACT_APP_ENV === 'test' ? '测试环境': '生产环境'
+            }
+          </Tag>
         </span>
       )}
       <SelectLang className={styles.action} />

+ 2 - 2
src/pages/document.ejs

@@ -21,8 +21,8 @@
       name="viewport"
       content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
     />
-    <title>Ant Design Pro</title>
-    <link rel="icon" href="<%= context.config.publicPath +'favicon.ico'%>" type="image/x-icon" />
+    <title>湖南科德信息咨询有限公司</title>
+    <link rel="icon" href="http://ss.jishutao.com/portal/1.2.10/img/ico_logo.png" type="image/x-icon" />
   </head>
   <body>
     <noscript>Out-of-the-box mid-stage front/design solution!</noscript>

+ 16 - 16
src/pages/user/login/index.tsx

@@ -106,11 +106,11 @@ const Login: React.FC<{}> = () => {
         <div className={styles.top}>
           <div className={styles.header}>
             <Link to="/">
-              <img alt="logo" className={styles.logo} src="/logo.svg" />
-              <span className={styles.title}>Ant Design</span>
+              <img alt="logo" className={styles.logo} src="http://ss.jishutao.com/portal/1.2.10/img/ico_logo.png" />
+              <span className={styles.title}>科德管理系统</span>
             </Link>
           </div>
-          <div className={styles.desc}>Ant Design 是西湖区最具影响力的 Web 设计规范</div>
+          <div className={styles.desc}>科德管理系统 是岳麓区最具影响力的管理系统</div>
         </div>
 
         <div className={styles.main}>
@@ -276,21 +276,21 @@ const Login: React.FC<{}> = () => {
               <ProFormCheckbox noStyle name="remeber">
                 自动登录
               </ProFormCheckbox>
-              <a
-                style={{
-                  float: 'right',
-                }}
-              >
-                忘记密码 ?
-              </a>
+              {/*<a*/}
+              {/*  style={{*/}
+              {/*    float: 'right',*/}
+              {/*  }}*/}
+              {/*>*/}
+              {/*  忘记密码 ?*/}
+              {/*</a>*/}
             </div>
           </ProForm>
-          <Space className={styles.other}>
-            其他登录方式 :
-            <AlipayCircleOutlined className={styles.icon} />
-            <TaobaoCircleOutlined className={styles.icon} />
-            <WeiboCircleOutlined className={styles.icon} />
-          </Space>
+          {/*<Space className={styles.other}>*/}
+          {/*  其他登录方式 :*/}
+          {/*  <AlipayCircleOutlined className={styles.icon} />*/}
+          {/*  <TaobaoCircleOutlined className={styles.icon} />*/}
+          {/*  <WeiboCircleOutlined className={styles.icon} />*/}
+          {/*</Space>*/}
         </div>
       </div>
       <Footer />