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

开发

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