dev-v2
Joe 8 months ago
parent 8642997c3e
commit 3ae53739a0

@ -92,7 +92,7 @@ export default defineConfig({
}, },
define: { define: {
// 'process.env.BASE_URL': 'http://xft-cms.51jingcheng.com/api', // 接口服务器地址 // 'process.env.BASE_URL': 'http://xft-cms.51jingcheng.com/api', // 接口服务器地址
'process.env.BASE_URL': process.env.NODE_ENV === 'development' ? '' : 'http://cms.gjxfc.com/api', // 接口服务器地址 'process.env.BASE_URL': process.env.NODE_ENV === 'development' ? '' : 'http://xfcadminv2.51jingcheng.com/api', // 接口服务器地址
}, },
/** /**
* @name * @name

@ -3,7 +3,6 @@ import { PageContainer } from '@ant-design/pro-layout';
import Constants from '@/constants'; import Constants from '@/constants';
import { Image } from 'antd'; import { Image } from 'antd';
import { ActionType, ProColumns, ProTable } from '@ant-design/pro-components'; import { ActionType, ProColumns, ProTable } from '@ant-design/pro-components';
import { handlePageQuery } from '@/utils/utils';
import { getPurchaseAgentPageForAdminUsingPost } from '@/services/pop-b2b2c/pbcPurchaseAgentInfoController'; import { getPurchaseAgentPageForAdminUsingPost } from '@/services/pop-b2b2c/pbcPurchaseAgentInfoController';
import { Link } from '@umijs/max'; import { Link } from '@umijs/max';
@ -112,8 +111,7 @@ const TableList: React.FC<{}> = () => {
columns={columns} columns={columns}
actionRef={actionRef} actionRef={actionRef}
request={(param: any) => { request={(param: any) => {
const queryParam = handlePageQuery(param); return fetchData(param);
return fetchData(queryParam);
}} }}
rowKey="pbcId" rowKey="pbcId"
size="small" size="small"
@ -122,7 +120,7 @@ const TableList: React.FC<{}> = () => {
labelWidth: 'auto', labelWidth: 'auto',
span: 6 span: 6
}} }}
params={{ pbcPurchaseAgentStatus: tabActiveKey }} params={{ pbcReviewStatus: tabActiveKey }}
pagination={{ pagination={{
defaultPageSize: 20, defaultPageSize: 20,
showSizeChanger: true, showSizeChanger: true,

Loading…
Cancel
Save