提交 5a24c0f9 authored 作者: 钟是志's avatar 钟是志

29029 全系统所有审核页面,待处理-操作-为”审核“;已处理-操作-为”详情“(admin,cdzysoft@654321)

上级 10b0c5be
...@@ -39,19 +39,12 @@ class Index extends React.Component { ...@@ -39,19 +39,12 @@ class Index extends React.Component {
getFormDetail = (workId) => { getFormDetail = (workId) => {
const { dataBaseId } = this.state; const { dataBaseId } = this.state;
service.getFormDetail(workId) service.getFormDetail(workId).then((response) => {
.then((response) => {
if (typeof response.unifiedServicePatternModel === 'undefined') { if (typeof response.unifiedServicePatternModel === 'undefined') {
return false; return false;
} }
destructionFunc.destructionGetDetail(response) destructionFunc.destructionGetDetail(response).then((x) => {
.then((x) => { const { addFields, tableInfo, allConfigSetInfo, searchCondition } = x;
const {
addFields,
tableInfo,
allConfigSetInfo,
searchCondition
} = x;
this.setState( this.setState(
{ {
addFields, addFields,
...@@ -68,13 +61,7 @@ class Index extends React.Component { ...@@ -68,13 +61,7 @@ class Index extends React.Component {
}; };
giveDetailColumns = () => { giveDetailColumns = () => {
const { const { columns, workId, dataBaseId, addFields, tableInfo } = this.state;
columns,
workId,
dataBaseId,
addFields,
tableInfo
} = this.state;
const { showPrint, routerConfig } = this.props; const { showPrint, routerConfig } = this.props;
const process_status = columns.find((x) => { const process_status = columns.find((x) => {
return x.name === 'process_status'; return x.name === 'process_status';
...@@ -85,9 +72,8 @@ class Index extends React.Component { ...@@ -85,9 +72,8 @@ class Index extends React.Component {
}; };
} }
columns.push({ columns.push({
dataIndex: 'operation', dataIndex: 'operationDiy',
title: '操作', title: '操作',
// fixed: columns.length > 12 ? 'right' : false,
fixed: 'right', fixed: 'right',
render: (text, record) => { render: (text, record) => {
return ( return (
...@@ -103,7 +89,7 @@ class Index extends React.Component { ...@@ -103,7 +89,7 @@ class Index extends React.Component {
showPrint: showPrint || routerConfig.showPrint === '1', showPrint: showPrint || routerConfig.showPrint === '1',
}, },
}}> }}>
详情 {text || '详情'}
</Link> </Link>
); );
}, },
...@@ -115,8 +101,7 @@ class Index extends React.Component { ...@@ -115,8 +101,7 @@ class Index extends React.Component {
getColumn = () => { getColumn = () => {
const { workId } = this.state; const { workId } = this.state;
service.getColumns(workId) service.getColumns(workId).then((response) => {
.then((response) => {
if (!response || !Array.isArray(response)) { if (!response || !Array.isArray(response)) {
response = []; response = [];
} }
...@@ -151,8 +136,7 @@ class Index extends React.Component { ...@@ -151,8 +136,7 @@ class Index extends React.Component {
if (workId) { if (workId) {
this.getColumn(); this.getColumn();
} else { } else {
service.getId(pathname) service.getId(pathname).then((x) => {
.then((x) => {
this.setState( this.setState(
{ {
workId: x.workId, workId: x.workId,
...@@ -181,7 +165,7 @@ class Index extends React.Component { ...@@ -181,7 +165,7 @@ class Index extends React.Component {
batchAuditButtonName, batchAuditButtonName,
showPrint, showPrint,
noNeedForm, noNeedForm,
tab2Buttons = [] tab2Buttons = [],
} = this.props; } = this.props;
if (!workId) { if (!workId) {
return null; return null;
...@@ -207,7 +191,5 @@ class Index extends React.Component { ...@@ -207,7 +191,5 @@ class Index extends React.Component {
export default function Pr(props) { export default function Pr(props) {
const { routerConfig } = useContext(CreateC); const { routerConfig } = useContext(CreateC);
return ( return <Index {...props} routerConfig={routerConfig} />;
<Index {...props} routerConfig={routerConfig}/>
);
} }
...@@ -189,6 +189,11 @@ const getDetailInfo = (id) => { ...@@ -189,6 +189,11 @@ const getDetailInfo = (id) => {
* */ * */
const getWaitPage = (info) => { const getWaitPage = (info) => {
return apiRequest('/UnifiedAppFormApi/getWaitPage', info).then((x) => { return apiRequest('/UnifiedAppFormApi/getWaitPage', info).then((x) => {
if(x && x.rows){
for(let item of x.rows){
item.operationDiy = '审核';
}
}
return giveValue(x); return giveValue(x);
}); });
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论