เป้าหมาย แก้ไขบัค

This commit is contained in:
oat_dev 2024-04-10 14:29:48 +07:00
parent d35ab5c48b
commit 3a974e84cb
4 changed files with 41 additions and 12 deletions

View file

@ -53,15 +53,16 @@ function fetchDataProject(id: string) {
store.formAddProject.projectName = data.projectName;
store.formAddProject.reason = data.reason;
store.formAddProject.objective = data.objective;
/**เป้าหมาย*/
const plannedGoals = data.plannedGoals.map((e: ResPlannedGoals) => ({
groupTarget: e.groupTarget,
groupTargetSub: e.groupTargetSub,
position: e.position,
posTypePlannedId: e.posTypePlannedId,
posLevelPlannedId: e.posLevelPlannedId,
type: e.type,
positions: e.plannedGoalPositions.map((v: any) => ({
position: v.position,
posTypePlannedId: v.posTypePlannedId,
posLevelPlannedId: v.posLevelPlannedId,
})),
type: e.type ? e.type : null,
amount: e.amount,
}));
const plannedPeoples = data.plannedPeoples.map((e: ResPeople) => ({