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

修复bug

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