提交 f13eb855 authored 作者: 王绍森's avatar 王绍森

9038 评奖评优与创新创业,2,校团委审核是 做批量审核 (院团委校团委全部做)

上级 0ae33146
import React, { useState } from 'react'; import React, { useState } from 'react';
import PageTypeMatching from '@/highOrderComponent/PageTypeMatching'; import PageTypeMatching from '@/highOrderComponent/PageTypeMatching';
import getInfoGenerator from '@/webPublic/FormInsertDiy/getInfoGenerator'; import getInfoGenerator from '@/webPublic/FormInsertDiy/getInfoGenerator';
import AuditModal from './AuditModal' import AuditModal from './AuditModal';
import { findValueByKey } from '../../../../pages/zydtw/Cxcy/utils'; import { findValueByKey } from '../../../../pages/zydtw/Cxcy/utils';
import withGoBack from '@/highOrderComponent/withGoBack';
const defaultNameSpan = { big: 9, small: 9 }; const defaultNameSpan = { big: 9, small: 9 };
const defaultFieldSpan = { big: 4, small: 4 }; const defaultFieldSpan = { big: 4, small: 4 };
...@@ -14,8 +15,7 @@ const defaultPageSetting = { ...@@ -14,8 +15,7 @@ const defaultPageSetting = {
buttonArea: true, buttonArea: true,
}; };
export default withGoBack(function BatchAudit({
export default function BatchAudit({
appId, appId,
flowNode, flowNode,
getInfo, getInfo,
...@@ -51,23 +51,22 @@ export default function BatchAudit({ ...@@ -51,23 +51,22 @@ export default function BatchAudit({
setCode(findValueByKey(res.rows[0], 'code')); setCode(findValueByKey(res.rows[0], 'code'));
} }
return res; return res;
} },
}, },
tableRowKey: tableRowKey || 'buzinessId', tableRowKey: tableRowKey || 'buzinessId',
columns: columns || [], columns: columns || [],
}; };
const defaultPageButton = [
const defaultPageButton = [
{ {
type:'create', type: 'create',
name: '批量审核', name: '批量审核',
component: 'RenderComponent', component: 'RenderComponent',
render: ({ selectRows, getPage }) => { render: ({ selectRows, getPage }) => {
return <AuditModal selectRows={selectRows} getPage={getPage} code={code} />; return <AuditModal selectRows={selectRows} getPage={getPage} code={code} />;
}
}, },
]; },
];
return ( return (
<PageTypeMatching <PageTypeMatching
...@@ -77,4 +76,4 @@ const defaultPageButton = [ ...@@ -77,4 +76,4 @@ const defaultPageButton = [
pageSearch={pageSearch} pageSearch={pageSearch}
/> />
); );
} });
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论