提交 fcda583b authored 作者: wtj's avatar wtj

新增查看流程功能

上级 8cc8187f
...@@ -856,7 +856,7 @@ class FormList extends React.Component { ...@@ -856,7 +856,7 @@ class FormList extends React.Component {
return ( return (
<Form layout="inline"> <Form layout="inline">
<Row > <Row style={{padding:"15px"}}>
{querys.map((item) => {querys.map((item) =>
<Col style={{height:58}} span={get==='mobile'?24:8} key={item.id}> <Col style={{height:58}} span={get==='mobile'?24:8} key={item.id}>
{this.getItem(true,form, { {this.getItem(true,form, {
...@@ -866,7 +866,7 @@ class FormList extends React.Component { ...@@ -866,7 +866,7 @@ class FormList extends React.Component {
</Col> </Col>
)} )}
<Col span={get==='mobile'?24:8} <Col span={get==='mobile'?24:8}
style={{ style={{
textAlign:get==='mobile'?'right':'', textAlign:get==='mobile'?'right':'',
paddingRight: get==='mobile'?12:'' paddingRight: get==='mobile'?12:''
...@@ -889,7 +889,7 @@ class FormList extends React.Component { ...@@ -889,7 +889,7 @@ class FormList extends React.Component {
); );
} }
render() { render() {
const { const {
modalVisible, modalVisible,
selectedRows, selectedRows,
querys, querys,
...@@ -933,25 +933,14 @@ class FormList extends React.Component { ...@@ -933,25 +933,14 @@ class FormList extends React.Component {
}; };
if(!isSelect&&!rights.includes('edit')&&!rights.includes('delete')&&!rights.includes("view")){ if(!isSelect&&!rights.includes('edit')&&!rights.includes('delete')&&!rights.includes("view")&&!rights.includes("viewProcess")){
const column = {
title: '操作',
fixed: 'right',
width: 150,
render: (text, record) => {
return <Fragment>
<div >
{record.process_biz_key?<><a onClick={this.view.bind(this, record)}>查看详情</a></>:''}
</div>
</Fragment>
}
}
if(this.columns.length>0&&this.columns[this.columns.length-1].title=="操作"){
this.columns[this.columns.length-1]=column;
}
}else{ }else{
let width=0; let width=0;
if(rights && rights.includes('viewProcess')){
width=width+75;
}
if(rights && rights.includes('view')){ if(rights && rights.includes('view')){
width=width+75; width=width+75;
} }
...@@ -976,7 +965,7 @@ class FormList extends React.Component { ...@@ -976,7 +965,7 @@ class FormList extends React.Component {
onClick={this.view.bind(this, record)}>查看详情</a><Divider type="vertical"/></>} onClick={this.view.bind(this, record)}>查看详情</a><Divider type="vertical"/></>}
{rights && !rights.includes('edit') ? '' : <><a {rights && !rights.includes('edit') ? '' : <><a
onClick={this.modify.bind(this, record)}>编辑</a><Divider type="vertical"/></>} onClick={this.modify.bind(this, record)}>编辑</a><Divider type="vertical"/></>}
{record.process_biz_key?<><a onClick={this.viewProcess.bind(this, record)}>查看流程详情</a><Divider type="vertical"/></>:''} {rignt&&rights.includes("viewProcess")&&record.process_biz_key?<><a onClick={this.viewProcess.bind(this, record)}>查看流程详情</a><Divider type="vertical"/></>:''}
{rights && !rights.includes('delete') ? '' : <> <Popconfirm {rights && !rights.includes('delete') ? '' : <> <Popconfirm
title="确定删除该数据?" title="确定删除该数据?"
onConfirm={this.delete.bind(this, record)} onConfirm={this.delete.bind(this, record)}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论