提交 360599f3 authored 作者: ch's avatar ch

开发

上级 fe82bb22
......@@ -230,12 +230,24 @@ class TreeList extends React.Component {
modify = (record) => {
// if (this.state.formItem.length < 10) {
this.getOptions();
this.props.dispatch({
type: 'formList/getDetail',
payload: {
dataObjId: this.state.objId,
key: this.state.primaryKey,
value: record[this.state.primaryKey],
isBase: false
},
callback: record2=> {
this.setState({
formData: record,
formData: record2,
modalVisible: true,
isAdd: false,
isView: false,
});
},
});
// } else {
// router.push({
// pathname: '/admin/ddl/dataObj/formEdit',
......
......@@ -225,9 +225,9 @@ class FormList extends React.Component {
value: record[this.state.primaryKey],
isBase: false
},
callback: record => {
callback: record2 => {
this.setState({
formData: record,
formData: record2,
modalVisible: true,
isAdd: false,
isView: false,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论