提交 149769f9 authored 作者: chscls@163.com's avatar chscls@163.com

修复bug

上级 bb95e6c2
...@@ -271,6 +271,8 @@ class FormList extends React.Component { ...@@ -271,6 +271,8 @@ class FormList extends React.Component {
}; };
delete = record => { delete = record => {
console.log(this.state.primaryKey)
return
//找出主键 //找出主键
let Keys = {}; let Keys = {};
Keys[this.state.primaryKey] = record[this.state.primaryKey]; Keys[this.state.primaryKey] = record[this.state.primaryKey];
...@@ -455,6 +457,7 @@ class FormList extends React.Component { ...@@ -455,6 +457,7 @@ class FormList extends React.Component {
const groups = {}; const groups = {};
const refIds = []; const refIds = [];
for (let t in datas) { for (let t in datas) {
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]);
if (datas[t].referenceObjId != null) { if (datas[t].referenceObjId != null) {
......
...@@ -1175,6 +1175,7 @@ export default class tableCom extends Component { ...@@ -1175,6 +1175,7 @@ export default class tableCom extends Component {
closeModal: this.closeModal, closeModal: this.closeModal,
render: this.getRender, render: this.getRender,
base64: getBase64, base64: getBase64,
form:this.props.form
}, },
functionObj, functionObj,
this.props.routerState, this.props.routerState,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论