|
@@ -14,7 +14,6 @@ import PersonLabel from './components/PersonLabel'
|
|
|
import { TagTypeEnum, TagDataTypeEnum, LabelModeType } from './components/PersonLabel/const'
|
|
import { TagTypeEnum, TagDataTypeEnum, LabelModeType } from './components/PersonLabel/const'
|
|
|
import { Add, Down, Check } from '@icon-park/react'
|
|
import { Add, Down, Check } from '@icon-park/react'
|
|
|
import { apiBatchLink } from '@/services/customer'
|
|
import { apiBatchLink } from '@/services/customer'
|
|
|
-import { getPermDataList } from '@/utils/auth'
|
|
|
|
|
import styles from './index.less'
|
|
import styles from './index.less'
|
|
|
|
|
|
|
|
const Company = props => {
|
|
const Company = props => {
|
|
@@ -25,6 +24,7 @@ const Company = props => {
|
|
|
teamTags,
|
|
teamTags,
|
|
|
dispatch,
|
|
dispatch,
|
|
|
shouldUpdate,
|
|
shouldUpdate,
|
|
|
|
|
+ permData,
|
|
|
loading
|
|
loading
|
|
|
} = props
|
|
} = props
|
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
@@ -471,7 +471,7 @@ const Company = props => {
|
|
|
onChange={e => {
|
|
onChange={e => {
|
|
|
setState({ ...state, params: { ...state.params, dataPermission: e } })
|
|
setState({ ...state, params: { ...state.params, dataPermission: e } })
|
|
|
}}
|
|
}}
|
|
|
- options={getPermDataList()?.customer || []}
|
|
|
|
|
|
|
+ options={permData?.customer || []}
|
|
|
/>
|
|
/>
|
|
|
}
|
|
}
|
|
|
rowSelection={{
|
|
rowSelection={{
|
|
@@ -492,11 +492,12 @@ const Company = props => {
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export default connect(({ company, refresh, loading }) => ({
|
|
|
|
|
|
|
+export default connect(({ company, refresh, global, loading }) => ({
|
|
|
personTagColorMap: company.personTagColorMap,
|
|
personTagColorMap: company.personTagColorMap,
|
|
|
personTags: company.personTags,
|
|
personTags: company.personTags,
|
|
|
teamTagColorMap: company.teamTagColorMap,
|
|
teamTagColorMap: company.teamTagColorMap,
|
|
|
teamTags: company.teamTags,
|
|
teamTags: company.teamTags,
|
|
|
loading: loading.models.company,
|
|
loading: loading.models.company,
|
|
|
|
|
+ permData: global.premData,
|
|
|
shouldUpdate: refresh.company
|
|
shouldUpdate: refresh.company
|
|
|
}))(Company)
|
|
}))(Company)
|