perf: 年度总额的进度条样式; KPI设置的搜索组件初始化

feature/pivot
Lei OT 2 years ago
parent 5f68801a3b
commit 9d1a08f92a

@ -17,11 +17,11 @@ export default observer((props) => {
// console.log(props, ';;;;');
const [responsive, setResponsive] = useState(false);
const showMulti = traditional.value && biz.value;
const rangeMax = Math.max(originVal, kpiVal);
const bulletData = [
{
title: '',
// ranges: [0, kpiVal || (traditional.value + biz.value + 100 )],
ranges: [0, Math.ceil(originVal * 1.1)],
ranges: [0, Math.ceil(rangeMax / 0.95)], // ,
measures: [traditional.value, biz.value],
target: kpiVal || 0,
},

@ -3,12 +3,11 @@ import { observer } from 'mobx-react';
import { stores_Context } from './../../config';
import { Typography, Row, Col, Tabs, } from 'antd';
import SearchForm from './../search/SearchForm';
import { bu, KPIObjects, KPISubjects } from './../../libs/ht';
import { isEmpty, fixTo2Decimals, fixTo4Decimals, cloneDeep, numberFormatter, fixToInt, merge } from './../../utils/commons';
import { KPIObjects } from './../../libs/ht';
import { merge, pick } from './../../utils/commons';
import ProfitTable from './SubjectTable/Profit';
import Count from './SubjectTable/Count';
import Rates from './SubjectTable/Rates';
import { toJS } from 'mobx';
const Todo = (props) => {
return <h2>TODO</h2>;
@ -32,7 +31,7 @@ export default observer((props) => {
const { sort, initialValue, hides, shows, fieldProps: _fieldProps } = {
sort: '',
// initialValue: '',
initialValue: searchFormStore.formValues,
initialValue: pick(searchFormStore.formValues, ['DateType', 'year']),
fieldProps: {},
hides: [],
shows: ['DateType', 'years'],

Loading…
Cancel
Save