แก้โหลดไฟล์/วินัยเเก้ เพิ่มฟิล dna

This commit is contained in:
setthawutttty 2025-02-06 14:09:38 +07:00
parent e79fc99618
commit bb42009f3b
7 changed files with 71 additions and 36 deletions

View file

@ -430,6 +430,7 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
* @param data
*/
async function fetchData(data: ArrayPersonAdd[], type?: string) {
console.log("🚀 ~ fetchData ~ data:", data)
const dataList: any = data.map((item: any) => ({
profileType: item.profileType
? item.profileType
@ -468,6 +469,12 @@ export const useDisciplineMainStore = defineStore("disciplineMainStore", () => {
posTypeName: item.posTypeName,
posLevelId: item.posLevelId,
posLevelName: item.posLevelName,
rootDnaId:item.rootDnaId,
child1DnaId:item.child1DnaId,
child2DnaId:item.child2DnaId,
child3DnaId:item.child3DnaId,
child4DnaId:item.child4DnaId,
}));
const newItems = dataList.filter(