Commit f1f3d6bc authored by 卢均锐's avatar 卢均锐

feat: 采购竞价报价台 scale调整测试,修改排名样式

parent 164db64d
...@@ -26,18 +26,16 @@ const QuotationDesk: React.FC<QuotationDeskProps> = (props: any) => { ...@@ -26,18 +26,16 @@ const QuotationDesk: React.FC<QuotationDeskProps> = (props: any) => {
chartsList.forEach(item => { chartsList.forEach(item => {
_obj[`${item.type}`] = item.title; _obj[`${item.type}`] = item.title;
}); });
return _obj; return {
}, [chartsList])
const scale = {
value: { min: 0, alias: '', type: 'linear-strict' }, value: { min: 0, alias: '', type: 'linear-strict' },
ear: { range: [0, 1] }, ear: { range: [0, 1] },
type: { type: {
formatter: v => { formatter: v => {
return scaleObj[v] return _obj[v]
}
} }
} }
console.log(data) };
}, [chartsList])
return ( return (
<div className={styles.wrap}> <div className={styles.wrap}>
<div className={styles.layout} style={{ margin: 0 }}> <div className={styles.layout} style={{ margin: 0 }}>
...@@ -70,7 +68,7 @@ const QuotationDesk: React.FC<QuotationDeskProps> = (props: any) => { ...@@ -70,7 +68,7 @@ const QuotationDesk: React.FC<QuotationDeskProps> = (props: any) => {
autoFit autoFit
height={404} height={404}
data={data} data={data}
scale={scale} scale={scaleObj}
> >
<Axis <Axis
title={{ text: '金额(元)' }} title={{ text: '金额(元)' }}
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
background-color: #EBECF0; background-color: #EBECF0;
font-size: 12px; font-size: 12px;
color: #909399; color: #909399;
border: 50%;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment