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

修改表单查询

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