|
|
|
@ -226,26 +226,26 @@ export default observer(() => {
|
|
|
|
|
</Spin>
|
|
|
|
|
</section>
|
|
|
|
|
<section>
|
|
|
|
|
<Space gutter={16} size={'small'}>
|
|
|
|
|
<h3>{showDiff === false ? '走势' : '对比'}</h3>
|
|
|
|
|
<DataFieldRadio value={timeDataField} onChange={handleChangetimeDataField} />
|
|
|
|
|
<Radio.Group options={datePartOptions} optionType="button" onChange={handleChangeDateType} value={dateField} />
|
|
|
|
|
{searchValues.yearDiff && (
|
|
|
|
|
<Button type="link" size={'small'} onClick={() => setShowDiff(!showDiff)}>
|
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
<Col flex={'4em'}><h3>{showDiff === false ? '走势' : '对比'}</h3></Col>
|
|
|
|
|
<Col ><DataFieldRadio value={timeDataField} onChange={handleChangetimeDataField} /></Col>
|
|
|
|
|
<Col ><Radio.Group options={datePartOptions} optionType="button" onChange={handleChangeDateType} value={dateField} /></Col>
|
|
|
|
|
<Col >{searchValues.yearDiff && (
|
|
|
|
|
<Button type="primary" ghost size={'small'} onClick={() => setShowDiff(!showDiff)}>
|
|
|
|
|
{showDiff === false ? '显示对比' : '返回本期走势'}
|
|
|
|
|
</Button>
|
|
|
|
|
)}
|
|
|
|
|
</Space>
|
|
|
|
|
)}</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
{showDiff === false ? (
|
|
|
|
|
<Spin spinning={timeData.loading}>
|
|
|
|
|
<MixTBWithKPI dataSource={timeData.dataSource} summaryData={timeData.origin?.summaryRows || []} {...lineConfig} />
|
|
|
|
|
</Spin>
|
|
|
|
|
) : (
|
|
|
|
|
<Spin spinning={timeDiffData.loading}>
|
|
|
|
|
<Space gutter={16} size={'small'}>
|
|
|
|
|
<h3>分类对比</h3>
|
|
|
|
|
<Radio.Group options={allGroupTypes} optionType="button" onChange={handleChangeDiffType} value={diffGroupKey} />
|
|
|
|
|
</Space>
|
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
<Col flex={'6em'}><h3>分类对比</h3></Col>
|
|
|
|
|
<Col ><Radio.Group options={allGroupTypes} optionType="button" onChange={handleChangeDiffType} value={diffGroupKey} /></Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<LineWithKPI
|
|
|
|
|
dataSource={timeDiffData.dataSource}
|
|
|
|
|
showKPI={false}
|
|
|
|
@ -293,12 +293,10 @@ export default observer(() => {
|
|
|
|
|
</h3>
|
|
|
|
|
</section>
|
|
|
|
|
<section>
|
|
|
|
|
<Space>
|
|
|
|
|
<h3>TOP</h3>
|
|
|
|
|
<div>
|
|
|
|
|
<DataFieldRadio value={valueKey} onChange={handleChangeValueKey} />
|
|
|
|
|
</div>
|
|
|
|
|
</Space>
|
|
|
|
|
<Row gutter={16}>
|
|
|
|
|
<Col flex={'4em'}><h3>TOP</h3></Col>
|
|
|
|
|
<Col ><DataFieldRadio value={valueKey} onChange={handleChangeValueKey} /></Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row gutter={layoutProps3.gutter}>
|
|
|
|
|
{topSeriesSet.map((item) =>
|
|
|
|
|
item.graphVisible ? (
|
|
|
|
|