move report & conclusion from admin to leader
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
export type ConclusionItem = {
|
||||
op: string;
|
||||
time: string;
|
||||
week: string;
|
||||
shift: string;
|
||||
detail: string;
|
||||
};
|
||||
|
||||
const weekMap: { [key: string]: string } = {
|
||||
'1': '周一',
|
||||
'2': '周二',
|
||||
'3': '周三',
|
||||
'4': '周四',
|
||||
'5': '周五',
|
||||
'6': '周六',
|
||||
'7': '周日',
|
||||
};
|
||||
|
||||
const shiftMap: { [key: string]: string } = {
|
||||
'1': '第一班',
|
||||
'2': '第二班',
|
||||
'3': '第三班',
|
||||
};
|
||||
|
||||
const transConclusion = (week: string, shift: string) => {
|
||||
if (week === '7' && shift === '3') {
|
||||
return '其他值班时间';
|
||||
} else {
|
||||
return weekMap[week] + shiftMap[shift];
|
||||
}
|
||||
};
|
||||
export default transConclusion;
|
||||
Reference in New Issue
Block a user