|
@@ -3,6 +3,7 @@ import { connect } from 'umi'
|
|
|
import { getBusinessList } from '@/services/customer'
|
|
import { getBusinessList } from '@/services/customer'
|
|
|
import ProTable from '@ant-design/pro-table'
|
|
import ProTable from '@ant-design/pro-table'
|
|
|
import consts from '@/consts'
|
|
import consts from '@/consts'
|
|
|
|
|
+import { Select } from 'antd'
|
|
|
import AddBusiness from './components/AddBusiness'
|
|
import AddBusiness from './components/AddBusiness'
|
|
|
import Detail from './components/BusinessDetail'
|
|
import Detail from './components/BusinessDetail'
|
|
|
import { useModal } from '@/components/Modal'
|
|
import { useModal } from '@/components/Modal'
|
|
@@ -79,7 +80,7 @@ const Business = ({ dispatch, groupList, shouldUpdate }) => {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
dataIndex: 'businessGroupName',
|
|
dataIndex: 'businessGroupName',
|
|
|
- title: '装机状态组',
|
|
|
|
|
|
|
+ title: '商机状态组',
|
|
|
width: '20%'
|
|
width: '20%'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -110,7 +111,8 @@ const Business = ({ dispatch, groupList, shouldUpdate }) => {
|
|
|
const conifg = {
|
|
const conifg = {
|
|
|
xField: 'name',
|
|
xField: 'name',
|
|
|
yField: 'percentage',
|
|
yField: 'percentage',
|
|
|
- legend: false
|
|
|
|
|
|
|
+ legend: false,
|
|
|
|
|
+ shape: 'pyramid'
|
|
|
}
|
|
}
|
|
|
const { getScrollRef, redoHeight } = useTableScroll(columns)
|
|
const { getScrollRef, redoHeight } = useTableScroll(columns)
|
|
|
return (
|
|
return (
|
|
@@ -119,7 +121,7 @@ const Business = ({ dispatch, groupList, shouldUpdate }) => {
|
|
|
<div className="p-4 border-b-1 border-solid border-black border-opacity-10 bg-[#f7f9fa] flex justify-around items-center">
|
|
<div className="p-4 border-b-1 border-solid border-black border-opacity-10 bg-[#f7f9fa] flex justify-around items-center">
|
|
|
<div className="w-1/2 text-md">商机漏斗</div>
|
|
<div className="w-1/2 text-md">商机漏斗</div>
|
|
|
<div className="w-1/2">
|
|
<div className="w-1/2">
|
|
|
- {/* {groupList[0]?.value && (
|
|
|
|
|
|
|
+ {groupList[0]?.value && (
|
|
|
<Select
|
|
<Select
|
|
|
size="small"
|
|
size="small"
|
|
|
className="w-full"
|
|
className="w-full"
|
|
@@ -131,11 +133,11 @@ const Business = ({ dispatch, groupList, shouldUpdate }) => {
|
|
|
...state,
|
|
...state,
|
|
|
funnelData: option.items
|
|
funnelData: option.items
|
|
|
.filter(item => !item.endProcess)
|
|
.filter(item => !item.endProcess)
|
|
|
- .map(item => ({ ...item, percentage: parseInt(item.percentage) }))
|
|
|
|
|
|
|
+ .map(item => ({ ...item, percentage: parseInt(item.percentage, 10) }))
|
|
|
})
|
|
})
|
|
|
}}
|
|
}}
|
|
|
/>
|
|
/>
|
|
|
- )} */}
|
|
|
|
|
|
|
+ )}
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div className="p-4 bg-white " style={{ height: 'calc(100% - 1rem*2 - 20px)' }}>
|
|
<div className="p-4 bg-white " style={{ height: 'calc(100% - 1rem*2 - 20px)' }}>
|