import React, {useEffect} from 'react'
import { Layout } from 'antd'
import { useActions } from '@ttk/app-loader'
import CardTree from './components/CardTree'
import CardForm from './components/CardForm'
import "./style.less"

export default function (props) {
  const actions = useActions(props)
  useEffect(() => {
    actions.getTreeData()
    actions.getGusType()
  }, [])
  return (
    <Layout className="ttk-table-app-simplelist dictionary-manage edfx-deptPers">
      <CardTree {...props} />
      <CardForm {...props} />
    </Layout>
  )
}