Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
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
smart-operation
so-manage-ui
Commits
ff29ae2e
Commit
ff29ae2e
authored
Nov 02, 2022
by
赵伟庚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:组织树形交互样式优化
parent
f77bdbb5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/page/main/system/organization/tree.vue
src/page/main/system/organization/tree.vue
+3
-1
No files found.
src/page/main/system/organization/tree.vue
View file @
ff29ae2e
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
:title=
"data.name"
:title=
"data.name"
>
{{
data
.
name
}}
>
{{
data
.
name
}}
</span>
</span>
<span
v-if=
"data.data_type === 2"
class=
"tree-action-box first_node"
:class=
"
{'first_node_focus': selectData
&&
selectData.id === data.id}" @click.stop="showAction($event, data,node)">
<span
v-if=
"data.data_type === 2"
class=
"tree-action-box first_node"
:class=
"
{'first_node_focus': selectData
&&
selectData.id === data.id
|| !selectData
}" @click.stop="showAction($event, data,node)">
<bg-icon
<bg-icon
class=
"tree-more"
class=
"tree-more"
icon=
"#bg-ic-s-more"
icon=
"#bg-ic-s-more"
...
@@ -115,10 +115,12 @@ import { useRouter } from 'vue-router';
...
@@ -115,10 +115,12 @@ import { useRouter } from 'vue-router';
if
(
data
)
{
if
(
data
)
{
treeRef
.
value
.
setCurrentKey
(
data
,
true
);
treeRef
.
value
.
setCurrentKey
(
data
,
true
);
const
curNode
=
treeRef
.
value
.
getCurrentNode
();
const
curNode
=
treeRef
.
value
.
getCurrentNode
();
selectData
.
value
=
curNode
emit
(
'
select
'
,{
data
:
ref
(
curNode
),
type
:
'
click
'
});
emit
(
'
select
'
,{
data
:
ref
(
curNode
),
type
:
'
click
'
});
}
else
{
}
else
{
treeRef
.
value
.
setCurrentKey
(
orgData
.
value
[
0
].
id
,
true
);
treeRef
.
value
.
setCurrentKey
(
orgData
.
value
[
0
].
id
,
true
);
const
curNode
=
treeRef
.
value
.
getCurrentNode
();
const
curNode
=
treeRef
.
value
.
getCurrentNode
();
selectData
.
value
=
curNode
emit
(
'
select
'
,{
data
:
ref
(
curNode
),
type
:
'
click
'
});
emit
(
'
select
'
,{
data
:
ref
(
curNode
),
type
:
'
click
'
});
}
}
...
...
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