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

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

parent 164db64d
......@@ -26,18 +26,16 @@ const QuotationDesk: React.FC<QuotationDeskProps> = (props: any) => {
chartsList.forEach(item => {
_obj[`${item.type}`] = item.title;
});
return _obj;
}, [chartsList])
const scale = {
value: { min: 0, alias: '', type: 'linear-strict' },
ear: { range: [0, 1] },
type: {
formatter: v => {
return scaleObj[v]
return {
value: { min: 0, alias: '', type: 'linear-strict' },
ear: { range: [0, 1] },
type: {
formatter: v => {
return _obj[v]
}
}
}
}
console.log(data)
};
}, [chartsList])
return (
<div className={styles.wrap}>
<div className={styles.layout} style={{ margin: 0 }}>
......@@ -70,7 +68,7 @@ const QuotationDesk: React.FC<QuotationDeskProps> = (props: any) => {
autoFit
height={404}
data={data}
scale={scale}
scale={scaleObj}
>
<Axis
title={{ text: '金额(元)' }}
......
......@@ -31,6 +31,7 @@
background-color: #EBECF0;
font-size: 12px;
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