Commit 2f3ccddc authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复滑块数值不准确的问题

parent 2bc9044a
...@@ -270,9 +270,10 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({ ...@@ -270,9 +270,10 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
}); });
setFieldState('quotaSlide', fileState => { setFieldState('quotaSlide', fileState => {
fileState.value = maxQuota; fileState.value = maxQuota;
fileState.props['x-component-props'].min = quotaInfo.originalQuota;
fileState.props['x-component-props'].max = maxQuota; fileState.props['x-component-props'].max = maxQuota;
fileState.props['x-component-props'].marks = { fileState.props['x-component-props'].marks = {
0: { [quotaInfo.originalQuota || 0]: {
label: MinMarks, label: MinMarks,
}, },
[maxQuota]: { [maxQuota]: {
......
...@@ -158,7 +158,7 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({ ...@@ -158,7 +158,7 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
<Row gutter={40}> <Row gutter={40}>
<Col span={8}> <Col span={8}>
<div className={styles.statistic}> <div className={styles.statistic}>
<div className={styles['statistic-title']}>本期账单(元):</div> <div className={styles['statistic-title']}>现有额度(元):</div>
<div className={styles['statistic-amount']}> <div className={styles['statistic-amount']}>
<Row align="middle" justify="space-between"> <Row align="middle" justify="space-between">
<Col span={14}>{quotaInfo.originalQuota}</Col> <Col span={14}>{quotaInfo.originalQuota}</Col>
...@@ -285,9 +285,10 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({ ...@@ -285,9 +285,10 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
}); });
setFieldState('quotaSlide', fileState => { setFieldState('quotaSlide', fileState => {
fileState.value = verify?.maxApplyQuota; fileState.value = verify?.maxApplyQuota;
fileState.props['x-component-props'].min = quotaInfo.originalQuota;
fileState.props['x-component-props'].max = verify?.maxApplyQuota; fileState.props['x-component-props'].max = verify?.maxApplyQuota;
fileState.props['x-component-props'].marks = { fileState.props['x-component-props'].marks = {
0: { [quotaInfo.originalQuota || 0]: {
label: MinMarks, label: MinMarks,
}, },
[verify?.maxApplyQuota]: { [verify?.maxApplyQuota]: {
......
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