Commit a58348b0 authored by 武广's avatar 武广

fix: 添加默认值

parent f37336eb
...@@ -75,6 +75,7 @@ const CustomerInfo = props => { ...@@ -75,6 +75,7 @@ const CustomerInfo = props => {
const params = Object.assign( const params = Object.assign(
{ {
hideImage: 0, hideImage: 0,
hidePrice: 0,
}, },
res, res,
); );
......
...@@ -5,6 +5,7 @@ import { PlusOutlined } from '@ant-design/icons'; ...@@ -5,6 +5,7 @@ import { PlusOutlined } from '@ant-design/icons';
import { customerColumn } from './staticData/index'; import { customerColumn } from './staticData/index';
import CustomerInfo from './components/CustomerInfo'; import CustomerInfo from './components/CustomerInfo';
import utilStyle from '@/utils/utils.less'; import utilStyle from '@/utils/utils.less';
import { stringOrObjectTrim } from '@/utils/utils';
import { apiEnterpriseList } from './service'; import { apiEnterpriseList } from './service';
const BusinessCustomer = () => { const BusinessCustomer = () => {
...@@ -15,7 +16,7 @@ const BusinessCustomer = () => { ...@@ -15,7 +16,7 @@ const BusinessCustomer = () => {
const data = { const data = {
page: params.current, page: params.current,
size: params.pageSize, size: params.pageSize,
data: params, data: stringOrObjectTrim(params),
}; };
const res = await apiEnterpriseList(data); const res = await apiEnterpriseList(data);
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment