move report & conclusion from admin to leader

This commit is contained in:
Dawn1Ocean
2024-05-07 11:26:14 +08:00
parent 56452da055
commit dd8c7e0b92
7 changed files with 3 additions and 17 deletions
@@ -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;