Commit 2df872b7 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix:处理待审核商品传参问题

parent 8a2ca2a8
/*
* @Author: XieZhiXiong
* @Date: 2020-09-15 17:48:36
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-09-15 17:49:54
* @LastEditors: zwp
* @LastEditTime: 2020-12-01 18:12:54
* @Description: 内外部流转记录组件
*/
import React from 'react';
......@@ -32,6 +32,8 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
}) => (
<MellowCard>
<Tabs onChange={() => {}}>
{
outerVerifySteps?.length > 0 &&
<Tabs.TabPane tab="外部审核流程" key="1">
<Steps style={{ marginTop: 30 }} progressDot current={outerVerifyCurrent}>
{outerVerifySteps.map(item => (
......@@ -43,6 +45,9 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
))}
</Steps>
</Tabs.TabPane>
}
{
innerVerifySteps?.length > 0 &&
<Tabs.TabPane tab="内部审核流程" key="2">
<Steps style={{ marginTop: 30 }} progressDot current={innerVerifyCurrent}>
{innerVerifySteps.map(item => (
......@@ -54,6 +59,7 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
))}
</Steps>
</Tabs.TabPane>
}
</Tabs>
</MellowCard>
);
......
......@@ -135,7 +135,7 @@ const Products: React.FC<{}> = () => {
const fetchData = (params: any) => {
return new Promise((resolve, reject) => {
PublicApi.getProductCommodityGetPlatformCommodityList(params).then(res => {
PublicApi.getProductCommodityGetPlatformCommodityList({...params, status: 2}).then(res => {
const { data } = res
resolve(data)
})
......
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