Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
81a13ff3
Commit
81a13ff3
authored
Jul 17, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改时间
parent
3bf08578
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
attendance-performance-manager-ui/admin/src/assets/mixins/tree.js
...ce-performance-manager-ui/admin/src/assets/mixins/tree.js
+7
-7
No files found.
attendance-performance-manager-ui/admin/src/assets/mixins/tree.js
View file @
81a13ff3
...
...
@@ -9,7 +9,7 @@ export default {
clearTimeout
(
this
.
loadingTimer
);
},
methods
:
{
beforeFecth
()
{
beforeFecth
()
{
return
Promise
.
resolve
();
},
// 表格接收数据前
...
...
@@ -18,12 +18,12 @@ export default {
afterRender
(
data
){},
// 默认拉取数据
async
getTreeData
()
{
},
handleNodeClick
(
node
)
{
},
renderContent
:
function
(
h
,
{
node
,
data
,
store
})
{
return
(
...
...
@@ -31,7 +31,7 @@ export default {
<
i
style
=
"
font-size:16px;color:#409EFF
"
class
=
{
data
.
icon
}
><
/i
>
<
span
style
=
"
padding-left: 2px;font-size:14px
"
>
{
node
.
label
}
<
/span
>
<
span
style
=
"
padding-left: 2px;font-size:14px;margin-left:20px
"
>
({
data
.
children
?
data
.
children
.
length
:
0
})
({
data
.
personList
?
data
.
personList
.
length
:
0
})
<
/span
>
<
/span
>
)
...
...
@@ -57,11 +57,11 @@ export default {
node
.
expand
();
// 主动调用展开节点方法,重新查询该节点下的所有子节点
this
.
toView
(
this
.
currentNode
);
},
},
data
()
{
return
{
return
{
treeProps
:
{
id
:
"
id
"
,
label
:
"
label
"
,
...
...
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