st-comp 0.0.48 → 0.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,730 +0,0 @@
1
- // 初始化数据
2
- export const orderByInfoFormatFn = (data: any[]) => {
3
- const list = [
4
- ...data.map((item: { dictCode: any; }) => {
5
- const row : { key: String;children: any[]; } = {
6
- key:'',
7
- children: [],
8
- ...item
9
- }
10
- switch (item.dictCode) {
11
- // 总市值
12
- case 1:
13
- row.key = "marketCapital";
14
- row.children = [
15
- {
16
- id: 1,
17
- active: false,
18
- start: null,
19
- starUnit: "亿",
20
- end: null,
21
- endUnit: "亿",
22
- btnText: "从小到大",
23
- ase: true,
24
- },
25
- {
26
- id: 2,
27
- active: false,
28
- start: null,
29
- startUnit: "亿",
30
- end: 10,
31
- endUnit: "亿",
32
- btnText: "≤10亿",
33
- ase: null,
34
- },
35
- {
36
- id: 3,
37
- active: false,
38
- start: null,
39
- startUnit: "亿",
40
- end: 25,
41
- endUnit: "亿",
42
- btnText: "≤25亿",
43
- ase: null,
44
- },
45
- {
46
- id: 4,
47
- active: false,
48
- start: null,
49
- startUnit: "亿",
50
- end: 50,
51
- endUnit: "亿",
52
- btnText: "≤50亿",
53
- ase: null,
54
- },
55
- {
56
- id: 5,
57
- active: false,
58
- start: 20,
59
- startUnit: "亿",
60
- end: 50,
61
- endUnit: "亿",
62
- btnText: "20~50亿",
63
- ase: null,
64
- },
65
- {
66
- id: 6,
67
- active: false,
68
- start: 100,
69
- startUnit: "亿",
70
- end: null,
71
- endUnit: "亿",
72
- btnText: "≥100亿",
73
- ase: null,
74
- },
75
- ];
76
- break;
77
- // 流通市值
78
- case 2:
79
- row.key = "floatMarketCapital";
80
- row.children = [
81
- {
82
- id: 1,
83
- active: false,
84
- start: null,
85
- starUnit: "亿",
86
- end: null,
87
- endUnit: "亿",
88
- btnText: "从小到大",
89
- ase: true,
90
- },
91
- {
92
- id: 2,
93
- active: false,
94
- start: null,
95
- startUnit: "亿",
96
- end: 5,
97
- endUnit: "亿",
98
- btnText: "≤5亿",
99
- ase: null,
100
- },
101
- {
102
- id: 3,
103
- active: false,
104
- start: null,
105
- startUnit: "亿",
106
- end: 20,
107
- endUnit: "亿",
108
- btnText: "≤20亿",
109
- ase: null,
110
- },
111
- {
112
- id: 4,
113
- active: false,
114
- start: null,
115
- startUnit: "亿",
116
- end: 50,
117
- endUnit: "亿",
118
- btnText: "≤50亿",
119
- ase: null,
120
- },
121
- {
122
- id: 5,
123
- active: false,
124
- start: null,
125
- startUnit: "亿",
126
- end: 100,
127
- endUnit: "亿",
128
- btnText: "≤100亿",
129
- ase: null,
130
- },
131
- {
132
- id: 6,
133
- active: false,
134
- start: 100,
135
- startUnit: "亿",
136
- end: null,
137
- endUnit: "亿",
138
- btnText: "≥100亿",
139
- ase: null,
140
- },
141
- ];
142
- break;
143
- // 总股本
144
- case 3:
145
- row.key = "totalShares";
146
- row.children = [
147
- {
148
- id: 1,
149
- active: false,
150
- start: null,
151
- starUnit: "亿",
152
- end: null,
153
- endUnit: "亿",
154
- btnText: "从小到大",
155
- ase: true,
156
- },
157
- {
158
- id: 2,
159
- active: false,
160
- start: null,
161
- startUnit: "亿",
162
- end: 5,
163
- endUnit: "亿",
164
- btnText: "≤5亿",
165
- ase: null,
166
- },
167
- {
168
- id: 3,
169
- active: false,
170
- start: null,
171
- startUnit: "亿",
172
- end: 10,
173
- endUnit: "亿",
174
- btnText: "≤10亿",
175
- ase: null,
176
- },
177
- {
178
- id: 4,
179
- active: false,
180
- start: null,
181
- startUnit: "亿",
182
- end: 75,
183
- endUnit: "亿",
184
- btnText: "≤75亿",
185
- ase: null,
186
- },
187
- {
188
- id: 5,
189
- active: false,
190
- start: 10,
191
- startUnit: "亿",
192
- end: 75,
193
- endUnit: "亿",
194
- btnText: "100~75亿",
195
- ase: null,
196
- },
197
- {
198
- id: 6,
199
- active: false,
200
- start: 100,
201
- startUnit: "亿",
202
- end: null,
203
- endUnit: "亿",
204
- btnText: "≥100亿",
205
- ase: null,
206
- },
207
- ];
208
- break;
209
- // 流通股本
210
- case 4:
211
- row.key = "freeFloatShares";
212
- row.children = [
213
- {
214
- id: 1,
215
- active: false,
216
- start: null,
217
- startUnit: "亿",
218
- end: 5,
219
- endUnit: "千万",
220
- btnText: "≤5千万",
221
- ase: null,
222
- },
223
- {
224
- id: 2,
225
- active: false,
226
- start: 5,
227
- startUnit: "千万",
228
- end: 3,
229
- endUnit: "亿",
230
- btnText: "5千万~3亿",
231
- ase: null,
232
- },
233
- {
234
- id: 3,
235
- active: false,
236
- start: null,
237
- startUnit: "亿",
238
- end: 5,
239
- endUnit: "亿",
240
- btnText: "≤5亿",
241
- ase: null,
242
- },
243
- {
244
- id: 4,
245
- active: false,
246
- start: null,
247
- startUnit: "亿",
248
- end: 10,
249
- endUnit: "亿",
250
- btnText: "≤10亿",
251
- ase: null,
252
- },
253
- {
254
- id: 5,
255
- active: false,
256
- start: 8,
257
- startUnit: "亿",
258
- end: 30,
259
- endUnit: "亿",
260
- btnText: "8亿~30亿",
261
- ase: null,
262
- },
263
- {
264
- id: 6,
265
- active: false,
266
- start: 30,
267
- startUnit: "亿",
268
- end: null,
269
- endUnit: "亿",
270
- btnText: "≥30亿",
271
- ase: null,
272
- },
273
- ];
274
- break;
275
- // 实际换手率
276
- case 5:
277
- row.key = "turnoverRate";
278
- row.children = [
279
- {
280
- id: 1,
281
- active: false,
282
- start: null,
283
- startUnit: "%",
284
- end: 1,
285
- endUnit: "%",
286
- btnText: "≤1%",
287
- ase: null,
288
- width: 180,
289
- },
290
- {
291
- id: 2,
292
- active: false,
293
- start: 1,
294
- startUnit: "%",
295
- end: 5,
296
- endUnit: "%",
297
- btnText: "1%~5%",
298
- ase: null,
299
- width: 180,
300
- },
301
- {
302
- id: 3,
303
- active: false,
304
- start: 5,
305
- startUnit: "%",
306
- end: 10,
307
- endUnit: "%",
308
- btnText: "5%~10%",
309
- ase: null,
310
- width: 180,
311
- },
312
- {
313
- id: 4,
314
- active: false,
315
- start: 10,
316
- startUnit: "%",
317
- end: null,
318
- endUnit: "%",
319
- btnText: "≥10%",
320
- ase: null,
321
- width: 180,
322
- },
323
- ];
324
- break;
325
- // 市盈率
326
- case 6:
327
- row.key = "peTtm";
328
- row.children = [
329
- {
330
- id: 1,
331
- active: false,
332
- start: 0,
333
- startUnit: "",
334
- end: 0,
335
- endUnit: "",
336
- btnText: "亏损",
337
- ase: null,
338
- },
339
- {
340
- id: 2,
341
- active: false,
342
- start: 0,
343
- startUnit: "",
344
- end: null,
345
- endUnit: "",
346
- btnText: "≥0",
347
- ase: null,
348
- },
349
- {
350
- id: 3,
351
- active: false,
352
- start: 0,
353
- startUnit: "",
354
- end: 20,
355
- endUnit: "",
356
- btnText: "0~20",
357
- ase: null,
358
- },
359
- {
360
- id: 4,
361
- active: false,
362
- start: 20,
363
- startUnit: "",
364
- end: 40,
365
- endUnit: "",
366
- btnText: "20~40",
367
- ase: null,
368
- },
369
- {
370
- id: 5,
371
- active: false,
372
- start: 40,
373
- startUnit: "",
374
- end: 100,
375
- endUnit: "",
376
- btnText: "40~100",
377
- ase: null,
378
- },
379
- {
380
- id: 6,
381
- active: false,
382
- start: 100,
383
- startUnit: "",
384
- end: null,
385
- endUnit: "",
386
- btnText: "≥100",
387
- ase: null,
388
- },
389
- ];
390
- break;
391
- // 每股净收益
392
- case 7:
393
- row.key = "eps";
394
- row.children = [
395
- {
396
- id: 1,
397
- active: false,
398
- start: null,
399
- startUnit: "元",
400
- end: 0,
401
- endUnit: "元",
402
- btnText: "≤0",
403
- ase: null,
404
- },
405
- {
406
- id: 2,
407
- active: false,
408
- start: 0,
409
- startUnit: "元",
410
- end: null,
411
- endUnit: "元",
412
- btnText: "≥0",
413
- ase: null,
414
- },
415
- {
416
- id: 3,
417
- active: false,
418
- start: 0.2,
419
- startUnit: "元",
420
- end: null,
421
- endUnit: "元",
422
- btnText: "≥0.2元",
423
- ase: null,
424
- },
425
- {
426
- id: 4,
427
- active: false,
428
- start: 0.5,
429
- startUnit: "元",
430
- end: null,
431
- endUnit: "元",
432
- btnText: "≥0.5元",
433
- ase: null,
434
- },
435
- {
436
- id: 5,
437
- active: false,
438
- start: 1,
439
- startUnit: "元",
440
- end: null,
441
- endUnit: "元",
442
- btnText: "≥1元",
443
- ase: null,
444
- },
445
- {
446
- id: 6,
447
- active: false,
448
- start: 2,
449
- startUnit: "元",
450
- end: null,
451
- endUnit: "元",
452
- btnText: "≥2元",
453
- ase: null,
454
- },
455
- ];
456
- break;
457
- // 是否ST
458
- case 8:
459
- row.key = "st";
460
- row.children = [];
461
- break;
462
- // 市净率
463
- case 9:
464
- row.key = "pb";
465
- row.children = [
466
- {
467
- id: 1,
468
- active: false,
469
- start: null,
470
- startUnit: "",
471
- end: 0,
472
- endUnit: "",
473
- btnText: "破净",
474
- ase: null,
475
- },
476
- {
477
- id: 2,
478
- active: false,
479
- start: 0,
480
- startUnit: "",
481
- end: null,
482
- endUnit: "",
483
- btnText: "≥0",
484
- ase: null,
485
- },
486
- {
487
- id: 3,
488
- active: false,
489
- start: 0,
490
- startUnit: "",
491
- end: 1,
492
- endUnit: "",
493
- btnText: "0~1",
494
- ase: null,
495
- },
496
- {
497
- id: 4,
498
- active: false,
499
- start: 1,
500
- startUnit: "",
501
- end: 2,
502
- endUnit: "",
503
- btnText: "1~2",
504
- ase: null,
505
- },
506
- {
507
- id: 5,
508
- active: false,
509
- start: 0,
510
- startUnit: "",
511
- end: 3,
512
- endUnit: "",
513
- btnText: "0~3",
514
- ase: null,
515
- },
516
- {
517
- id: 6,
518
- active: false,
519
- start: 3,
520
- startUnit: "",
521
- end: null,
522
- endUnit: "",
523
- btnText: "≥3",
524
- ase: null,
525
- },
526
- ];
527
- break;
528
- // 日均成交额
529
- case 10:
530
- row.key = "mnShr";
531
- row.children = [
532
- {
533
- id: 1,
534
- active: false,
535
- start: 0,
536
- startUnit: "亿",
537
- end: 1,
538
- endUnit: "亿",
539
- btnText: "0~1亿",
540
- ase: null,
541
- },
542
- {
543
- id: 2,
544
- active: false,
545
- start: 0,
546
- startUnit: "亿",
547
- end: 5,
548
- endUnit: "亿",
549
- btnText: "0~5亿",
550
- ase: null,
551
- },
552
- {
553
- id: 3,
554
- active: false,
555
- start: 0,
556
- startUnit: "亿",
557
- end: 10,
558
- endUnit: "亿",
559
- btnText: "0~10亿",
560
- ase: null,
561
- },
562
- {
563
- id: 4,
564
- active: false,
565
- start: 10,
566
- startUnit: "亿",
567
- end: null,
568
- endUnit: "亿",
569
- btnText: "≥10亿",
570
- ase: null,
571
- },
572
- {
573
- id: 5,
574
- active: false,
575
- start: 50,
576
- startUnit: "亿",
577
- end: null,
578
- endUnit: "亿",
579
- btnText: "≥50亿",
580
- ase: null,
581
- },
582
- {
583
- id: 6,
584
- active: false,
585
- start: 100,
586
- startUnit: "亿",
587
- end: null,
588
- endUnit: "亿",
589
- btnText: "≥100亿",
590
- ase: null,
591
- },
592
- ];
593
- break;
594
- // 净资产收益率ROE
595
- case 11:
596
- row.key = "roe";
597
- row.children = [
598
- {
599
- id: 1,
600
- active: false,
601
- start: null,
602
- startUnit: "%",
603
- end: 0,
604
- endUnit: "%",
605
- btnText: "<0",
606
- ase: null,
607
- },
608
- {
609
- id: 2,
610
- active: false,
611
- start: 0,
612
- startUnit: "%",
613
- end: null,
614
- endUnit: "%",
615
- btnText: ">0",
616
- ase: null,
617
- },
618
- {
619
- id: 3,
620
- active: false,
621
- start: 10,
622
- startUnit: "%",
623
- end: null,
624
- endUnit: "%",
625
- btnText: ">10%",
626
- ase: null,
627
- },
628
- {
629
- id: 4,
630
- active: false,
631
- start: 15,
632
- startUnit: "%",
633
- end: null,
634
- endUnit: "%",
635
- btnText: ">15%",
636
- ase: null,
637
- },
638
- {
639
- id: 5,
640
- active: false,
641
- start: 20,
642
- startUnit: "%",
643
- end: null,
644
- endUnit: "%",
645
- btnText: ">20%",
646
- ase: null,
647
- },
648
- {
649
- id: 6,
650
- active: false,
651
- start: 30,
652
- startUnit: "%",
653
- end: null,
654
- endUnit: "%",
655
- btnText: ">30%",
656
- ase: null,
657
- },
658
- ];
659
- break;
660
- default:
661
- row.key = "";
662
- row.children = [];
663
- break;
664
- }
665
- return row;
666
- }),
667
- // 净利润
668
- {
669
- id: 77,
670
- dictId: 1017,
671
- dictCode: 12,
672
- dictName: "净利润",
673
- memo: null,
674
- key: "tFeaturelncomes",
675
- children: [
676
- {
677
- id: 1,
678
- active: false,
679
- yearsCount: 1,
680
- rule: 2,
681
- netProfit: 0,
682
- withFewYears: 1,
683
- btnText: "≤0",
684
- width: 50,
685
- },
686
- {
687
- id: 2,
688
- active: false,
689
- yearsCount: 1,
690
- rule: 1,
691
- netProfit: 0,
692
- withFewYears: 1,
693
- btnText: "≥0",
694
- width: 50,
695
- },
696
- {
697
- id: 3,
698
- active: false,
699
- yearsCount: 4,
700
- rule: 1,
701
- netProfit: 0.5,
702
- withFewYears: 5,
703
- btnText: "五年内有四年以上盈利超过5千万",
704
- width: 230,
705
- },
706
- {
707
- id: 4,
708
- active: false,
709
- yearsCount: 1,
710
- rule: 1,
711
- netProfit: 10,
712
- withFewYears: 1,
713
- btnText: "≥10亿",
714
- width: 80,
715
- },
716
- {
717
- id: 5,
718
- active: false,
719
- yearsCount: 1,
720
- rule: 1,
721
- netProfit: 20,
722
- withFewYears: 1,
723
- btnText: "≥20亿",
724
- width: 80,
725
- },
726
- ],
727
- },
728
- ];
729
- return list;
730
- };