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

修改表单查询

上级 607c7825
......@@ -377,6 +377,7 @@ class FormList extends React.Component {
let i = 0;
for (let t in datas) {
if (datas[t].isPrimaryKey) this.state.primaryKey = datas[t].name;
if(datas[t].isHidden){
continue
}
......@@ -408,7 +409,6 @@ class FormList extends React.Component {
this.setState({tableWidth:((datas.length-1)*200)})
this.columns.push(column);
if (datas[t].isPrimaryKey) this.state.primaryKey = datas[t].name;
if (datas[t].isShowQuery) {
querys.push(datas[t])
......@@ -862,7 +862,22 @@ class FormList extends React.Component {
if(!isSelect&&!rights.includes('edit')&&!rights.includes('delete')){
const column = {
title: '操作',
fixed: 'right',
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{
this.columns.push(column);
}
}else{
const column = {
title: '操作',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论