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
29
30
31
32
33
34
35
36
37
| import * as Colors from '@mui/material/colors';
|
| export const getTaskStsColor = (taskStatus) => {
| if (!taskStatus) {
| return Colors.grey[500];
| }
| switch (taskStatus) {
| case '等待中':
| return Colors.deepPurple[500];
| case '已分配':
| return Colors.lightBlue[600];
| case '进行中':
| return Colors.teal[700];
| case '已完成':
| return Colors.blueGrey[500];
| default:
| return Colors.amber[500];
| }
| }
|
| export const getBusStsColor = (busStatus) => {
| if (!busStatus) {
| return 'default';
| }
| switch (busStatus) {
| case '已接收':
| return 'secondary';
| case '进行中':
| return 'success';
| case '已完成':
| return 'default';
| case '已取消':
| return 'error';
| default:
| return 'default';
| }
| }
|
|