提交 4572d7e0 authored 作者: 钟是志's avatar 钟是志

一站式里面的 申请,审核 里面的process_status 变成映射statusName 流程审核状态

上级 c0bfe3ef
......@@ -57,6 +57,14 @@ export default class AffairPage extends React.Component {
giveDetailColumns = () => {
const { columns, workId, dataBaseId, addFields } = this.state;
const process_status = columns.find((x) => {
return x.name === 'process_status';
});
if(process_status && process_status.dataIndex){
process_status.render = (text ,record)=> {
return record.statusName || record[process_status.dataIndex];
};
}
columns.push(
{
dataIndex: 'operation',
......@@ -133,6 +141,9 @@ export default class AffairPage extends React.Component {
getColumns = () => {
const { workId } = this.state;
service.getColumns(workId).then((response) => {
response = response.filter((x) => {
return x.title !== '流程进度';
});
if (response) {
this.setState({
columns: response,
......
......@@ -58,6 +58,14 @@ export default class Index extends React.Component {
giveDetailColumns = () =>{
const { columns, workId, dataBaseId, addFields, tableInfo } = this.state;
const process_status = columns.find((x) => {
return x.name === 'process_status';
});
if(process_status && process_status.dataIndex){
process_status.render = (text ,record)=> {
return record.statusName || record[process_status.dataIndex];
};
}
columns.push(
{
dataIndex: 'operation',
......@@ -88,6 +96,9 @@ export default class Index extends React.Component {
getColumn = () => {
const { workId } = this.state;
service.getColumns(workId).then((response) => {
response = response.filter((x) => {
return x.title !== '流程进度';
});
if (response && response.length) {
this.setState({
columns: response, // 表头
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论