From 27fd943997e72abc979fd4d1da8bda115cfd5787 Mon Sep 17 00:00:00 2001 From: zhongnanhuang <zhongnanhuang@canrd.com> Date: Thu, 14 Dec 2023 17:58:55 +0800 Subject: [PATCH] feat: update --- src/pages/OrderReport/components/OrderStatisticCard.tsx | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/src/pages/OrderReport/components/OrderStatisticCard.tsx b/src/pages/OrderReport/components/OrderStatisticCard.tsx index f7902e2..3ff0507 100644 --- a/src/pages/OrderReport/components/OrderStatisticCard.tsx +++ b/src/pages/OrderReport/components/OrderStatisticCard.tsx @@ -296,18 +296,23 @@ export default ({ data, statisticsMethod, reFreshData }) => { placeholder="请输入指标" rules={[{ required: true, message: '指标必填' }]} /> - <ProFormDigit - width="md" - name="daysOfMonth" - label={ - statisticsMethod === 'YEAR_STATISTICS' - ? '每月工作日天数' - : '本月工作日天数' - } - min={0} - placeholder="工作日天数" - rules={[{ required: true, message: '工作日天数必填' }]} - /> + + {statisticsMethod === 'MONTH_STATISTICS' ? ( + <ProFormDigit + width="md" + name="weekday" + label={ + statisticsMethod === 'YEAR_STATISTICS' + ? '每月工作日天数' + : '本月工作日天数' + } + min={0} + placeholder="工作日天数" + rules={[{ required: true, message: '工作日天数必填' }]} + /> + ) : ( + '' + )} </ModalForm> </> ); -- libgit2 0.23.3