diff --git a/.umirc.ts b/.umirc.ts
index 9d584e3..347788d 100644
--- a/.umirc.ts
+++ b/.umirc.ts
@@ -17,10 +17,10 @@ export default defineConfig({
},
proxy: {
'/api/': {
- target: 'http://10.39.13.78:8002/',
+ target: 'http://10.39.13.78:8001/',
// target: 'https://gcadmin-test.linyikj.com.cn',
// target: 'http://guocaiservice.com',
- // changeOrigin: true,
+ changeOrigin: true,
pathRewrite: { '^': '' },
},
},
diff --git a/gencode.json b/gencode.json
index 6cf117f..750b552 100644
--- a/gencode.json
+++ b/gencode.json
@@ -1,6 +1,6 @@
{
- "url": "http://10.39.13.78:8002/api/docs/openapi",
- "module": "Admin",
+ "url": "http://10.39.13.78:8001/api/docs/openapi",
+ "module": "Company",
"outPath": "./src/gen/",
"apis": {
"firstLine": "import { MyResponseType } from '@/common';\nimport { request } from '@umijs/max';"
diff --git a/src/common/components/MyModalPagination.tsx b/src/common/components/MyModalPagination.tsx
new file mode 100644
index 0000000..2904de6
--- /dev/null
+++ b/src/common/components/MyModalPagination.tsx
@@ -0,0 +1,28 @@
+import { MyPaginationMetaType } from '@/common';
+import { Pagination } from 'antd';
+
+export function MyModalPagination({
+ meta,
+ setParams,
+}: {
+ meta?: MyPaginationMetaType | null;
+ setParams?: ({ page, perPage }: { page: number; perPage: number }) => void;
+}) {
+ console.log(meta, 'meta2222');
+ if (!meta) return null;
+ return (
+
+
setParams?.({ page, perPage })}
+ size="small"
+ showTotal={(total) => `总共${total}条`}
+ showSizeChanger
+ showQuickJumper
+ />
+
+ );
+}
diff --git a/src/common/libs/umi/layoutConfig.tsx b/src/common/libs/umi/layoutConfig.tsx
index 67449f1..8c1cb91 100644
--- a/src/common/libs/umi/layoutConfig.tsx
+++ b/src/common/libs/umi/layoutConfig.tsx
@@ -1,25 +1,10 @@
import { MyIcons, MyIconsType, PermissionsType, useMyState } from '@/common';
import AvatarProps from '@/common/components/layout/AvatarProps';
-import {
- BellOutlined,
- SettingOutlined,
- TabletOutlined,
-} from '@ant-design/icons';
+import { SettingOutlined } from '@ant-design/icons';
import { Link, RuntimeConfig, history, useNavigate } from '@umijs/max';
-import {
- AutoComplete,
- Button,
- Image,
- Input,
- Menu,
- MenuProps,
- Popover,
- Space,
-} from 'antd';
+import { AutoComplete, Button, Input, Menu, MenuProps, Space } from 'antd';
import { useState } from 'react';
import './allConfig.scss';
-import ImgCustomerWxApp from './customer_wx_app.jpg';
-import ImgEmployeeWxApp from './employee_wx_app.jpg';
// import Logo from './logo.png';
interface LevelKeysProps {
key?: string;
@@ -122,7 +107,7 @@ export const LayoutConfig: RuntimeConfig['layout'] = () => {
-
+ {/*
常用功能:
{quickLinks.map((q) => (
{
{q.label}
))}
-
+ */}
- {
>
} />
- } />
+ } /> */}