staff中加入staffBase
parent
0fc89f7c50
commit
e711d03dd6
|
@ -11,6 +11,7 @@ export interface Staff {
|
||||||
managingDepartment: Department|null;
|
managingDepartment: Department|null;
|
||||||
staffDepartments: Department[];
|
staffDepartments: Department[];
|
||||||
staffName: string;
|
staffName: string;
|
||||||
|
staffBase: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Department {
|
export interface Department {
|
||||||
|
|
|
@ -30,10 +30,12 @@ const staffSlice = createSlice({
|
||||||
staffName: "",
|
staffName: "",
|
||||||
managingDepartment: null as Department|null,
|
managingDepartment: null as Department|null,
|
||||||
staffDepartments: [{ departmentId: 0,
|
staffDepartments: [{ departmentId: 0,
|
||||||
departmentName: ''}]
|
departmentName: ''}],
|
||||||
|
staffBase: ''
|
||||||
},
|
},
|
||||||
reducers: {
|
reducers: {
|
||||||
setStaff: (state, action: PayloadAction<Staff>) => {
|
setStaff: (state, action: PayloadAction<Staff>) => {
|
||||||
|
state.staffBase = action.payload.staffBase
|
||||||
state.staffName = action.payload.staffName
|
state.staffName = action.payload.staffName
|
||||||
state.managingDepartment = action.payload.managingDepartment
|
state.managingDepartment = action.payload.managingDepartment
|
||||||
state.staffDepartments = action.payload.staffDepartments
|
state.staffDepartments = action.payload.staffDepartments
|
||||||
|
|
Loading…
Reference in New Issue