From 128efd1baed054fec416c19742e93e565160e6bf Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 10 Oct 2023 13:55:35 +0800 Subject: [PATCH] =?UTF-8?q?KPI=20=E8=AE=BE=E7=BD=AE=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=95=B0;=20=E6=8C=87=E6=A0=87=E7=B1=BB=E5=9E=8B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BulletWithSort.jsx | 9 +++------ src/libs/ht.js | 8 ++++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/components/BulletWithSort.jsx b/src/components/BulletWithSort.jsx index a4176d4..3821709 100644 --- a/src/components/BulletWithSort.jsx +++ b/src/components/BulletWithSort.jsx @@ -4,10 +4,6 @@ import { Bullet } from '@ant-design/plots'; import { sortBy, merge } from '../utils/commons'; import { dataFieldAlias } from '../libs/ht'; -// const layoutLabel = { -// 'vertical': -// }; - export default observer((props) => { const { dataSource, itemLength, ...extProps } = props; // 处理进度图的数据格式, number -> array @@ -30,8 +26,9 @@ export default observer((props) => { const config = merge({ color: { - range: [ '#FFF3E1', '#FFF3E1', '#FFe0b0', '#bfeec8'], // '#FFbcb8', '#FFe0b0', - measure: '#5B8FF9', + range: [ '#FFF3E1', '#FFF3E1'], + // range: [ '#FFF3E1', '#FFF3E1', '#FFe0b0', '#bfeec8'], // '#FFbcb8', '#FFe0b0', + measure: ['#5B8FF9', '#61ddaa'], target: '#FF9845', }, label: { diff --git a/src/libs/ht.js b/src/libs/ht.js index c7274c1..b58f8e6 100644 --- a/src/libs/ht.js +++ b/src/libs/ht.js @@ -159,9 +159,9 @@ export const KPISubjects = [ { key: 'sum_profit', value: 'sum_profit', label: '毛利' }, { key: 'in_order_count', value: 'in_order_count', label: '订单数' }, { key: 'confirm_order_count', value: 'confirm_order_count', label: '成团' }, - { key: 'depart_order_count', value: 'depart_order_count', label: '走团' }, - { key: 'confirm_rates', value: 'confirm_rates', label: '成型率' }, - { key: 'praise_rates', value: 'praise_rates', label: '表扬率' }, + // { key: 'depart_order_count', value: 'depart_order_count', label: '走团' }, // 根据日期类型 + { key: 'confirm_rates', value: 'confirm_rates', label: '成行率' }, + // { key: 'praise_rates', value: 'praise_rates', label: '表扬率' }, // { key: 'first_reply_rates', value: 'first_reply_rates', label: '首报回复率'}, // { key: 'quote_rates', value: 'quote_rates', label: '报价率'}, // { key: 'first_post_time', value: 'first_post_time', label: '订单到首邮发送时间'}, @@ -169,5 +169,5 @@ export const KPISubjects = [ // { key: 'reply_rates_wa', value: 'reply_rates_wa', label: 'WA回复率'}, // { key: 'reply_eff_wechat', value: 'reply_eff_wechat', label: '微信回复效率'}, // { key: 'reply_eff_wa', value: 'reply_eff_wa', label: 'WA回复效率'}, - { key: 'sum_person_num', value: 'sum_person_num', label: '人数' }, + // { key: 'sum_person_num', value: 'sum_person_num', label: '人数' }, ];