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

修复bug

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