แก้โหลดไฟล์/วินัยเเก้ เพิ่มฟิล dna
This commit is contained in:
parent
e79fc99618
commit
bb42009f3b
7 changed files with 71 additions and 36 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue