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

修复bug

上级 d55855f6
...@@ -139,36 +139,44 @@ const CreateForm = Form.create()(props => { ...@@ -139,36 +139,44 @@ const CreateForm = Form.create()(props => {
})) }))
@Form.create() @Form.create()
class TreeList extends React.Component { class TreeList extends React.Component {
state = { constructor(props){
data: { super(props)
list: [], const{json:{treeTitleName,treeKeyName}}=this.props
pagination: {}, const root={}
}, root[treeTitleName]= '根目录'
treeData: [{title: '根目录', key: '0-0'}], root[treeKeyName]='0-0'
isReady: false, this.state = {
parentName: "根节点", data: {
parentId: null, list: [],
selects:[], pagination: {},
modalVisible: false, },
formData: null, treeData: [root],
formValues: {}, isReady: false,
formItem: [], parentName: "根节点",
objId: this.props.objId || (this.props.location?this.props.location.state.id:null), parentId: null,
isAdd: false, selects:[],
querys: [], modalVisible: false,
selectedRows: [], formData: null,
primaryKey: null, formValues: {},
options: {}, formItem: [],
isTable: true, objId: this.props.objId || (this.props.location?this.props.location.state.id:null),
tableWidth:500, isAdd: false,
rights:this.props.rights||[], querys: [],
columnRights:[], selectedRows: [],
isReady:false, primaryKey: null,
groups:{}, options: {},
showDiv:'', isTable: true,
showMobileDiv:'', tableWidth:500,
isView:false rights:this.props.rights||[],
}; columnRights:[],
isReady:false,
groups:{},
showDiv:'',
showMobileDiv:'',
isView:false
};
}
columns = []; columns = [];
getOptions = () => { getOptions = () => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论