1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| // 检查项目名称
| const projectOptions = [
| { id: 1, value: "纤度偏差" },
| { id: 2, value: "二次变化" },
| { id: 3, value: "清洁分" },
| { id: 4, value: "洁净分" },
| { id: 5, value: "最大偏差" }
| ]
| const attendanceStatus = [
| { id: 1, value: "正常" },
| { id: 2, value: "加班" },
| { id: 3, value: "休假" },
| { id: 4, value: "异常" },
| ]
| const silkSet=[
| { id: 1, value: "野纤" },
| { id: 2, value: "大野" },
| { id: 3, value: "特野" },
| ]
| export const getDataByType = (type) => {
| if (type == "projectOptions") {
| return projectOptions
| }else if(type=='attendanceStatus'){
| return attendanceStatus
| }else if(type=='silkSet'){
| return silkSet;
| }
| }
|
|