npmapps 1.0.7 → 1.0.8

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,768 +0,0 @@
1
- const tableData = [
2
- {
3
- name: "John",
4
- employeeId: "111111",
5
- organization: "ABC Corp",
6
- department: "Sales",
7
- position: "Manager",
8
- city: "New York",
9
- shiftPlanDetails: {
10
- 1: {
11
- shiftId: "1",
12
- shiftName: "考勤1",
13
- },
14
- 2: {
15
- shiftId: "2",
16
- shiftName: "考勤2",
17
- },
18
- 3: {
19
- shiftId: "3",
20
- shiftName: "考勤3",
21
- },
22
- 4: {
23
- shiftId: "1",
24
- shiftName: "考勤1",
25
- },
26
- 5: {
27
- shiftId: "2",
28
- shiftName: "考勤2",
29
- },
30
- 6: {
31
- shiftId: "3",
32
- shiftName: "考勤3",
33
- },
34
- 7: {
35
- shiftId: "1",
36
- shiftName: "考勤1",
37
- },
38
- 8: {
39
- shiftId: "2",
40
- shiftName: "考勤2",
41
- },
42
- 9: {
43
- shiftId: "3",
44
- shiftName: "考勤3",
45
- },
46
- 10: {
47
- shiftId: "1",
48
- shiftName: "考勤1",
49
- },
50
- 11: {
51
- shiftId: "2",
52
- shiftName: "考勤2",
53
- },
54
- 12: {
55
- shiftId: "3",
56
- shiftName: "考勤3",
57
- },
58
- 13: {
59
- shiftId: "1",
60
- shiftName: "考勤1",
61
- },
62
- 14: {
63
- shiftId: "2",
64
- shiftName: "考勤2",
65
- },
66
- 15: {
67
- shiftId: "3",
68
- shiftName: "考勤3",
69
- },
70
- 16: {
71
- shiftId: "1",
72
- shiftName: "考勤1",
73
- },
74
- 17: {
75
- shiftId: "2",
76
- shiftName: "考勤2",
77
- },
78
- 18: {
79
- shiftId: "3",
80
- shiftName: "考勤3",
81
- },
82
- 19: {
83
- shiftId: "1",
84
- shiftName: "考勤1",
85
- },
86
- 20: {
87
- shiftId: "2",
88
- shiftName: "考勤2",
89
- },
90
- 21: {
91
- shiftId: "3",
92
- shiftName: "考勤3",
93
- },
94
- 22: {
95
- shiftId: "1",
96
- shiftName: "考勤1",
97
- },
98
- 23: {
99
- shiftId: "2",
100
- shiftName: "考勤2",
101
- },
102
- 24: {
103
- shiftId: "3",
104
- shiftName: "考勤3",
105
- },
106
- 25: {
107
- shiftId: "1",
108
- shiftName: "考勤1",
109
- },
110
- 26: {
111
- shiftId: "2",
112
- shiftName: "考勤2",
113
- },
114
- 27: {
115
- shiftId: "3",
116
- shiftName: "考勤3",
117
- },
118
- 28: {
119
- shiftId: "1",
120
- shiftName: "考勤1",
121
- },
122
- 29: {
123
- shiftId: "2",
124
- shiftName: "考勤2",
125
- },
126
- 30: {
127
- shiftId: "3",
128
- shiftName: "考勤3",
129
- },
130
- },
131
- },
132
- {
133
- name: "Jane",
134
- employeeId: "222222",
135
- organization: "XYZ Inc",
136
- department: "Marketing",
137
- position: "Associate",
138
- city: "San Francisco",
139
- shiftPlanDetails: {
140
- 1: {
141
- shiftId: "1",
142
- shiftName: "考勤1",
143
- },
144
- 2: {
145
- shiftId: "2",
146
- shiftName: "考勤2",
147
- },
148
- 3: {
149
- shiftId: "3",
150
- shiftName: "考勤3",
151
- },
152
- 4: {
153
- shiftId: "1",
154
- shiftName: "考勤1",
155
- },
156
- 5: {
157
- shiftId: "2",
158
- shiftName: "考勤2",
159
- },
160
- 6: {
161
- shiftId: "3",
162
- shiftName: "考勤3",
163
- },
164
- 7: {
165
- shiftId: "1",
166
- shiftName: "考勤1",
167
- },
168
- 8: {
169
- shiftId: "2",
170
- shiftName: "考勤2",
171
- },
172
- 9: {
173
- shiftId: "3",
174
- shiftName: "考勤3",
175
- },
176
- 10: {
177
- shiftId: "1",
178
- shiftName: "考勤1",
179
- },
180
- 11: {
181
- shiftId: "2",
182
- shiftName: "考勤2",
183
- },
184
- 12: {
185
- shiftId: "3",
186
- shiftName: "考勤3",
187
- },
188
- 13: {
189
- shiftId: "1",
190
- shiftName: "考勤1",
191
- },
192
- 14: {
193
- shiftId: "2",
194
- shiftName: "考勤2",
195
- },
196
- 15: {
197
- shiftId: "3",
198
- shiftName: "考勤3",
199
- },
200
- 16: {
201
- shiftId: "1",
202
- shiftName: "考勤1",
203
- },
204
- 17: {
205
- shiftId: "2",
206
- shiftName: "考勤2",
207
- },
208
- 18: {
209
- shiftId: "3",
210
- shiftName: "考勤3",
211
- },
212
- 19: {
213
- shiftId: "1",
214
- shiftName: "考勤1",
215
- },
216
- 20: {
217
- shiftId: "2",
218
- shiftName: "考勤2",
219
- },
220
- 21: {
221
- shiftId: "3",
222
- shiftName: "考勤3",
223
- },
224
- 22: {
225
- shiftId: "1",
226
- shiftName: "考勤1",
227
- },
228
- 23: {
229
- shiftId: "2",
230
- shiftName: "考勤2",
231
- },
232
- 24: {
233
- shiftId: "3",
234
- shiftName: "考勤3",
235
- },
236
- 25: {
237
- shiftId: "1",
238
- shiftName: "考勤1",
239
- },
240
- 26: {
241
- shiftId: "2",
242
- shiftName: "考勤2",
243
- },
244
- 27: {
245
- shiftId: "3",
246
- shiftName: "考勤3",
247
- },
248
- 28: {
249
- shiftId: "1",
250
- shiftName: "考勤1",
251
- },
252
- 29: {
253
- shiftId: "2",
254
- shiftName: "考勤2",
255
- },
256
- 30: {
257
- shiftId: "3",
258
- shiftName: "考勤3",
259
- },
260
- },
261
- },
262
- {
263
- name: "Bob",
264
- employeeId: "333333",
265
- organization: "Acme Corp",
266
- department: "Human Resources",
267
- position: "Supervisor",
268
- city: "Chicago",
269
- shiftPlanDetails: {
270
- 1: {
271
- shiftId: "1",
272
- shiftName: "考勤1",
273
- },
274
- 2: {
275
- shiftId: "2",
276
- shiftName: "考勤2",
277
- },
278
- 3: {
279
- shiftId: "3",
280
- shiftName: "考勤3",
281
- },
282
- 4: {
283
- shiftId: "1",
284
- shiftName: "考勤1",
285
- },
286
- 5: {
287
- shiftId: "2",
288
- shiftName: "考勤2",
289
- },
290
- 6: {
291
- shiftId: "3",
292
- shiftName: "考勤3",
293
- },
294
- 7: {
295
- shiftId: "1",
296
- shiftName: "考勤1",
297
- },
298
- 8: {
299
- shiftId: "2",
300
- shiftName: "考勤2",
301
- },
302
- 9: {
303
- shiftId: "3",
304
- shiftName: "考勤3",
305
- },
306
- 10: {
307
- shiftId: "1",
308
- shiftName: "考勤1",
309
- },
310
- },
311
- },
312
- {
313
- name: "Alice",
314
- employeeId: "444444",
315
- organization: "Acme Corp",
316
- department: "Marketing",
317
- position: "Manager",
318
- city: "New York",
319
- shiftPlanDetails: {},
320
- },
321
- ];
322
-
323
- const shiftPlan = [
324
- {
325
- tdDate: "2025-06-01",
326
- editFlag: "0",
327
- day: "1",
328
- week: "日",
329
- },
330
- {
331
- tdDate: "2025-06-02",
332
- editFlag: "1",
333
- day: "2",
334
- week: "一",
335
- },
336
- {
337
- tdDate: "2025-06-03",
338
- editFlag: "1",
339
- day: "3",
340
- week: "二",
341
- },
342
- {
343
- tdDate: "2025-06-04",
344
- editFlag: "1",
345
- day: "4",
346
- week: "三",
347
- },
348
- {
349
- tdDate: "2025-06-05",
350
- editFlag: "1",
351
- day: "5",
352
- week: "四",
353
- },
354
- {
355
- tdDate: "2025-06-06",
356
- editFlag: "1",
357
- day: "6",
358
- week: "五",
359
- },
360
- {
361
- tdDate: "2025-06-07",
362
- editFlag: "1",
363
- day: "7",
364
- week: "六",
365
- },
366
- {
367
- tdDate: "2025-06-08",
368
- editFlag: "1",
369
- day: "8",
370
- week: "日",
371
- },
372
- {
373
- tdDate: "2025-06-09",
374
- editFlag: "1",
375
- day: "9",
376
- week: "一",
377
- },
378
- {
379
- tdDate: "2025-06-10",
380
- editFlag: "1",
381
- day: "10",
382
- week: "二",
383
- },
384
- {
385
- tdDate: "2025-06-11",
386
- editFlag: "1",
387
- day: "11",
388
- week: "三",
389
- },
390
- {
391
- tdDate: "2025-06-12",
392
- editFlag: "1",
393
- day: "12",
394
- week: "四",
395
- },
396
- {
397
- tdDate: "2025-06-13",
398
- editFlag: "1",
399
- day: "13",
400
- week: "五",
401
- },
402
- {
403
- tdDate: "2025-06-14",
404
- editFlag: "1",
405
- day: "14",
406
- week: "六",
407
- },
408
- {
409
- tdDate: "2025-06-15",
410
- editFlag: "1",
411
- day: "15",
412
- week: "日",
413
- },
414
- {
415
- tdDate: "2025-06-16",
416
- editFlag: "1",
417
- day: "16",
418
- week: "一",
419
- },
420
- {
421
- tdDate: "2025-06-17",
422
- editFlag: "1",
423
- day: "17",
424
- week: "二",
425
- },
426
- {
427
- tdDate: "2025-06-18",
428
- editFlag: "1",
429
- day: "18",
430
- week: "三",
431
- },
432
- {
433
- tdDate: "2025-06-19",
434
- editFlag: "1",
435
- day: "19",
436
- week: "四",
437
- },
438
- {
439
- tdDate: "2025-06-20",
440
- editFlag: "1",
441
- day: "20",
442
- week: "五",
443
- },
444
- {
445
- tdDate: "2025-06-21",
446
- editFlag: "1",
447
- day: "21",
448
- week: "六",
449
- },
450
- {
451
- tdDate: "2025-06-22",
452
- editFlag: "1",
453
- day: "22",
454
- week: "日",
455
- },
456
- {
457
- tdDate: "2025-06-23",
458
- editFlag: "1",
459
- day: "23",
460
- week: "一",
461
- },
462
- {
463
- tdDate: "2025-06-24",
464
- editFlag: "1",
465
- day: "24",
466
- week: "二",
467
- },
468
- {
469
- tdDate: "2025-06-25",
470
- editFlag: "1",
471
- day: "25",
472
- week: "三",
473
- },
474
- {
475
- tdDate: "2025-06-26",
476
- editFlag: "1",
477
- day: "26",
478
- week: "四",
479
- },
480
- {
481
- tdDate: "2025-06-27",
482
- editFlag: "1",
483
- day: "27",
484
- week: "五",
485
- },
486
- {
487
- tdDate: "2025-06-28",
488
- editFlag: "1",
489
- day: "28",
490
- week: "六",
491
- },
492
- {
493
- tdDate: "2025-06-29",
494
- editFlag: "1",
495
- day: "29",
496
- week: "日",
497
- },
498
- {
499
- tdDate: "2025-06-30",
500
- editFlag: "1",
501
- day: "30",
502
- week: "一",
503
- },
504
- ];
505
-
506
- const shiftColor = [
507
- {
508
- shiftId: "1",
509
- color: "#f56a00",
510
- shiftName: "考勤1",
511
- font: "01",
512
- },
513
- {
514
- shiftId: "2",
515
- color: "#2db7f5",
516
- shiftName: "考勤2",
517
- font: "02",
518
- },
519
- {
520
- shiftId: "3",
521
- color: "#87d068",
522
- shiftName: "考勤3",
523
- font: "03",
524
- },
525
- {
526
- shiftId: "4",
527
- color: "#f50",
528
- shiftName: "考勤4",
529
- font: "04",
530
- },
531
- {
532
- shiftId: "5",
533
- color: "#2db7f5",
534
- shiftName: "考勤5",
535
- font: "05",
536
- },
537
- {
538
- shiftId: "6",
539
- color: "#87d068",
540
- shiftName: "考勤6",
541
- font: "06",
542
- },
543
- {
544
- shiftId: "7",
545
- color: "#f50",
546
- shiftName: "考勤7",
547
- font: "07",
548
- },
549
- {
550
- shiftId: "8",
551
- color: "#f56a00",
552
- shiftName: "考勤8",
553
- font: "08",
554
- },
555
- {
556
- shiftId: "9",
557
- color: "#2db7f5",
558
- shiftName: "考勤9",
559
- font: "09",
560
- },
561
- {
562
- shiftId: "10",
563
- color: "#87d068",
564
- shiftName: "考勤10",
565
- font: "10",
566
- },
567
- {
568
- shiftId: "11",
569
- color: "#f50",
570
- shiftName: "考勤11",
571
- font: "11",
572
- },
573
- {
574
- shiftId: "12",
575
- color: "#f56a00",
576
- shiftName: "考勤12",
577
- font: "12",
578
- },
579
- {
580
- shiftId: "13",
581
- color: "#2db7f5",
582
- shiftName: "考勤13",
583
- font: "13",
584
- },
585
- {
586
- shiftId: "14",
587
- color: "#87d068",
588
- shiftName: "考勤14",
589
- font: "14",
590
- },
591
- {
592
- shiftId: "15",
593
- color: "#f50",
594
- shiftName: "考勤15",
595
- font: "15",
596
- },
597
- {
598
- shiftId: "16",
599
- color: "#f56a00",
600
- shiftName: "考勤16",
601
- font: "16",
602
- },
603
- {
604
- shiftId: "17",
605
- color: "#2db7f5",
606
- shiftName: "考勤17",
607
- font: "17",
608
- },
609
- {
610
- shiftId: "18",
611
- color: "#87d068",
612
- shiftName: "考勤18",
613
- font: "18",
614
- },
615
- {
616
- shiftId: "19",
617
- color: "#f50",
618
- shiftName: "考勤19",
619
- font: "19",
620
- },
621
- {
622
- shiftId: "20",
623
- color: "#f56a00",
624
- shiftName: "考勤20",
625
- font: "20",
626
- },
627
- {
628
- shiftId: "21",
629
- color: "#2db7f5",
630
- shiftName: "考勤21",
631
- font: "21",
632
- },
633
- {
634
- shiftId: "22",
635
- color: "#87d068",
636
- shiftName: "考勤22",
637
- font: "22",
638
- },
639
- {
640
- shiftId: "23",
641
- color: "#f50",
642
- shiftName: "考勤23",
643
- font: "23",
644
- },
645
- {
646
- shiftId: "24",
647
- color: "#f56a00",
648
- shiftName: "考勤24",
649
- font: "24",
650
- },
651
- {
652
- shiftId: "25",
653
- color: "#2db7f5",
654
- shiftName: "考勤25",
655
- font: "25",
656
- },
657
- {
658
- shiftId: "26",
659
- color: "#87d068",
660
- shiftName: "考勤26",
661
- font: "26",
662
- },
663
- {
664
- shiftId: "27",
665
- color: "#f50",
666
- shiftName: "考勤27",
667
- font: "27",
668
- },
669
- {
670
- shiftId: "28",
671
- color: "#f56a00",
672
- shiftName: "考勤28",
673
- font: "28",
674
- },
675
- {
676
- shiftId: "29",
677
- color: "#2db7f5",
678
- shiftName: "考勤29",
679
- font: "29",
680
- },
681
- ];
682
-
683
- export const getOpenAttendanceCycleYearListApi = () => {
684
- const list = [];
685
-
686
- for (let i = 2010; i <= 2027; i++) {
687
- list.push({
688
- year: i,
689
- yearName: i + "年考勤周期",
690
- yearId: i,
691
- });
692
- }
693
- return new Promise((resolve, reject) => {
694
- setTimeout(() => {
695
- resolve(list);
696
- }, 1000);
697
- });
698
- }
699
-
700
-
701
- export const getOpenAttendanceCycleMonthListApi = (year) => {
702
- const list = [];
703
- for (let i = 1; i <= 12; i++) {
704
- const month = year + "-" + (i < 10 ? "0" + i : i);
705
- list.push({
706
- month: month,
707
- monthName: year + "年度" + (i < 10 ? "0" + i : i) + "月",
708
- monthId: month,
709
- });
710
- }
711
- return new Promise((resolve, reject) => {
712
- setTimeout(() => {
713
- resolve(list);
714
- }, 1000);
715
- });
716
- };
717
-
718
- export const getShiftColorApi = () => {
719
- return new Promise((resolve, reject) => {
720
- setTimeout(() => {
721
- resolve(shiftColor);
722
- }, 1000);
723
- });
724
- };
725
-
726
- export const getTableDataApi = () => {
727
- return new Promise((resolve, reject) => {
728
- setTimeout(() => {
729
- resolve(tableData);
730
- }, 1000);
731
- });
732
- };
733
-
734
- export const getShiftPlanApi = () => {
735
- return new Promise((resolve, reject) => {
736
- setTimeout(() => {
737
- resolve(shiftPlan);
738
- }, 1000);
739
- });
740
- };
741
-
742
- const shiftChangeRecordTableData = [
743
- {
744
- workDate: "2021-01-01",
745
- previousShift: "xxxx班",
746
- newShift: "zzzz班",
747
- dataSource: "系统录入",
748
- },
749
- {
750
- workDate: "2021-01-02",
751
- previousShift: "xxxx班",
752
- newShift: "zzzz班",
753
- dataSource: "系统录入",
754
- },
755
- {
756
- workDate: "2021-01-03",
757
- previousShift: "xxxx班",
758
- newShift: "zzzz班",
759
- dataSource: "系统录入",
760
- },
761
- ]
762
-
763
- export const getShiftChangeRecordTableDataApi = () =>
764
- new Promise((resolve) => {
765
- setTimeout(() => {
766
- resolve(shiftChangeRecordTableData)
767
- }, 500)
768
- })