|
|
|
@ -183,37 +183,39 @@ const Sale_KPI = () => {
|
|
|
|
|
<Spin spinning={loading}>
|
|
|
|
|
<h2 style={{ marginTop: '.5em' }}>年度业绩组成和走势</h2>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col className="gutter-row" md={8}>
|
|
|
|
|
<Col className="gutter-row" md={8} sm={24} xs={24}>
|
|
|
|
|
<Donut
|
|
|
|
|
{...{ angleField: 'SumML', colorField: 'groupsLabel', label1: { style: { color: '#000000' }, type: 'spider', content: '{name}\n{percentage}' }, legend: false, label2: false }}
|
|
|
|
|
title={formValues.DepartmentList?.label}
|
|
|
|
|
dataSource={operator.map((row) => ({ ...row, SumML: row.yearML }))}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className="gutter-row" md={16}>
|
|
|
|
|
<Col className="gutter-row" md={16} sm={24} xs={24}>
|
|
|
|
|
<LineWithKPI dataSource={yearData} showKPI={true} {...lineConfig} {...{ legend: false }} />
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className="gutter-row" md={24}>
|
|
|
|
|
<Space gutter={16} size={'large'}>
|
|
|
|
|
<h2>顾问业绩走势</h2>
|
|
|
|
|
<Select
|
|
|
|
|
labelInValue
|
|
|
|
|
mode={'multiple'}
|
|
|
|
|
style={{ width: '400px' }}
|
|
|
|
|
placeholder={'选择顾问'}
|
|
|
|
|
onChange={sale_store.setPickSales}
|
|
|
|
|
value={sale_store.salesTrade.pickSales}
|
|
|
|
|
maxTagCount={1}
|
|
|
|
|
maxTagPlaceholder={(omittedValues) => ` + ${omittedValues.length} 更多...`}
|
|
|
|
|
allowClear={true}
|
|
|
|
|
>
|
|
|
|
|
{operatorObjects.map((ele) => (
|
|
|
|
|
<Select.Option key={ele.key} value={ele.value}>
|
|
|
|
|
{ele.label}
|
|
|
|
|
</Select.Option>
|
|
|
|
|
))}
|
|
|
|
|
</Select>
|
|
|
|
|
</Space>
|
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
<Col flex={'12em'}><h2>顾问业绩走势</h2></Col>
|
|
|
|
|
<Col flex={'auto'}>
|
|
|
|
|
<Select
|
|
|
|
|
labelInValue
|
|
|
|
|
mode={'multiple'}
|
|
|
|
|
style={{ width: '100%' }}
|
|
|
|
|
placeholder={'选择顾问'}
|
|
|
|
|
onChange={sale_store.setPickSales}
|
|
|
|
|
value={sale_store.salesTrade.pickSales}
|
|
|
|
|
maxTagCount={1}
|
|
|
|
|
maxTagPlaceholder={(omittedValues) => ` + ${omittedValues.length} 更多...`}
|
|
|
|
|
allowClear={true}
|
|
|
|
|
>
|
|
|
|
|
{operatorObjects.map((ele) => (
|
|
|
|
|
<Select.Option key={ele.key} value={ele.value}>
|
|
|
|
|
{ele.label}
|
|
|
|
|
</Select.Option>
|
|
|
|
|
))}
|
|
|
|
|
</Select>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
</Col>
|
|
|
|
|
<Col className="gutter-row" md={24}>
|
|
|
|
|
<LineWithKPI dataSource={sale_store.salesTrade.pickSalesData} showKPI={true} {...lineConfig} />
|
|
|
|
|