|
@@ -4,11 +4,11 @@ import React, { useEffect, useMemo, useState } from 'react'
|
|
|
import { connect } from 'umi'
|
|
import { connect } from 'umi'
|
|
|
import Organization from './components/Organization'
|
|
import Organization from './components/Organization'
|
|
|
|
|
|
|
|
-export type AddressBookProps = {
|
|
|
|
|
|
|
+export type ContactsProps = {
|
|
|
allStaffList: any[]
|
|
allStaffList: any[]
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const AddressBook: React.FC<AddressBookProps> = props => {
|
|
|
|
|
|
|
+const Contacts: React.FC<ContactsProps> = props => {
|
|
|
const { dispatch, allStaffList = [] } = props
|
|
const { dispatch, allStaffList = [] } = props
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
|
departmentId: '0'
|
|
departmentId: '0'
|
|
@@ -108,4 +108,4 @@ const AddressBook: React.FC<AddressBookProps> = props => {
|
|
|
|
|
|
|
|
export default connect(({ staff }) => ({
|
|
export default connect(({ staff }) => ({
|
|
|
allStaffList: staff.allStaffList
|
|
allStaffList: staff.allStaffList
|
|
|
-}))(AddressBook)
|
|
|
|
|
|
|
+}))(Contacts)
|