Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
4d479524
Commit
4d479524
authored
Mar 28, 2024
by
tyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
acede891
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
index.vue
...projectCostLedger/detail/components/CostSummary/index.vue
+9
-5
No files found.
dsk-operate-ui/src/views/projectCostLedger/detail/components/CostSummary/index.vue
View file @
4d479524
...
@@ -693,15 +693,19 @@ export default {
...
@@ -693,15 +693,19 @@ export default {
const
item
=
dataList
[
index
];
const
item
=
dataList
[
index
];
// 返回所在下标index
// 返回所在下标index
if
(
item
.
id
===
rowId
)
{
if
(
item
.
id
===
rowId
)
{
pathArray
.
push
(
index
)
;
// return `${pathStr}${index}`
;
break
;
return
[...
pathArray
,
index
].
join
(
""
)
;
}
}
if
(
item
?.
children
?.
length
)
{
if
(
item
?.
children
?.
length
)
{
this
.
getTableTreeProp
(
item
.
children
,
rowId
,
[
`
${
index
}
.children.`
]);
// const childPath = `${pathStr}${index}.children.`;
const
childPath
=
[...
pathArray
,
index
,
'.children.'
];
const
result
=
this
.
getTableTreeProp
(
item
.
children
,
rowId
,
childPath
);
if
(
result
)
{
return
result
;
}
}
}
}
}
console
.
log
(
pathArray
);
return
null
;
return
pathArray
.
join
(
""
);
},
},
},
},
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment