Commit 7293426c878291e049d1f6a00c344bade0f2bbaa
1 parent
699fa04c
feat: update
Showing
2 changed files
with
68 additions
and
0 deletions
src/pages/Order/constant.ts
@@ -139,6 +139,7 @@ export const SALES_CODE_OPTIONS = [ | @@ -139,6 +139,7 @@ export const SALES_CODE_OPTIONS = [ | ||
139 | { label: 'MA_A_Mao', value: 'MA_A_Mao' }, | 139 | { label: 'MA_A_Mao', value: 'MA_A_Mao' }, |
140 | { label: 'CQ-2', value: 'CQ-2' }, | 140 | { label: 'CQ-2', value: 'CQ-2' }, |
141 | { label: 'JJ', value: 'JJ' }, | 141 | { label: 'JJ', value: 'JJ' }, |
142 | + { label: 'CQ-3', value: 'CQ-3' }, | ||
142 | ]; | 143 | ]; |
143 | 144 | ||
144 | export const HISTORY_OPT_TYPE = new Map<string, string>([ | 145 | export const HISTORY_OPT_TYPE = new Map<string, string>([ |
src/pages/OrderReport/index.tsx
0 → 100644
1 | +import { DualAxes } from '@ant-design/plots'; | ||
2 | + | ||
3 | +export default () => { | ||
4 | + const data = [ | ||
5 | + { | ||
6 | + year: '1991', | ||
7 | + value: 3, | ||
8 | + count: 10, | ||
9 | + }, | ||
10 | + { | ||
11 | + year: '1992', | ||
12 | + value: 4, | ||
13 | + count: 4, | ||
14 | + }, | ||
15 | + { | ||
16 | + year: '1993', | ||
17 | + value: 3.5, | ||
18 | + count: 5, | ||
19 | + }, | ||
20 | + { | ||
21 | + year: '1994', | ||
22 | + value: 5, | ||
23 | + count: 5, | ||
24 | + }, | ||
25 | + { | ||
26 | + year: '1995', | ||
27 | + value: 4.9, | ||
28 | + count: 4.9, | ||
29 | + }, | ||
30 | + { | ||
31 | + year: '1996', | ||
32 | + value: 6, | ||
33 | + count: 35, | ||
34 | + }, | ||
35 | + { | ||
36 | + year: '1997', | ||
37 | + value: 7, | ||
38 | + count: 7, | ||
39 | + }, | ||
40 | + { | ||
41 | + year: '1998', | ||
42 | + value: 9, | ||
43 | + count: 1, | ||
44 | + }, | ||
45 | + { | ||
46 | + year: '1999', | ||
47 | + value: 13, | ||
48 | + count: 20, | ||
49 | + }, | ||
50 | + ]; | ||
51 | + const config = { | ||
52 | + data: [data, data], | ||
53 | + xField: 'year', | ||
54 | + yField: ['value', 'count'], | ||
55 | + geometryOptions: [ | ||
56 | + { | ||
57 | + geometry: 'line', | ||
58 | + color: '#5B8FF9', | ||
59 | + }, | ||
60 | + { | ||
61 | + geometry: 'line', | ||
62 | + color: '#5AD8A6', | ||
63 | + }, | ||
64 | + ], | ||
65 | + }; | ||
66 | + return <DualAxes {...config} />; | ||
67 | +}; |