Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
cc4d0791
Commit
cc4d0791
authored
4 years ago
by
wenyann
Committed by
刘瑞斌
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: 模块树样式
parent
88979c56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/business/components/track/common/NodeTree.vue
+13
-8
frontend/src/business/components/track/common/NodeTree.vue
with
13 additions
and
8 deletions
+13
-8
frontend/src/business/components/track/common/NodeTree.vue
+
13
-
8
View file @
cc4d0791
...
...
@@ -30,17 +30,17 @@
<i
class=
"el-icon-folder"
/>
</span>
<span
v-if=
"!data.isEdit"
class=
"node-title"
v-text=
"data.name"
/>
<span
v-if=
"data.caseNum"
class=
"node-title"
>
<span>
(
{{
data
.
caseNum
}}
)
</span>
<span
class=
"node-title"
>
<span
style=
"color: #6C317C"
>
{{
data
.
caseNum
}}
</span>
</span>
<span
v-if=
"!disabled"
class=
"node-operate child"
>
<el-tooltip
v-if=
"data.id !== 'root' && data.name !=='默认模块'"
class=
"item"
effect=
"dark"
:open-delay=
"200"
:content=
"$t('test_track.module.rename')"
placement=
"top"
>
v-if=
"data.id !== 'root' && data.name !=='默认模块'"
class=
"item"
effect=
"dark"
:open-delay=
"200"
:content=
"$t('test_track.module.rename')"
placement=
"top"
>
<i
@
click.stop=
"edit(node, data)"
class=
"el-icon-edit"
></i>
</el-tooltip>
<el-tooltip
...
...
@@ -139,12 +139,17 @@ export default {
},
methods
:
{
init
()
{
let
num
=
0
;
this
.
treeNodes
.
forEach
(
t
=>
{
num
+=
t
.
caseNum
;
});
this
.
extendTreeNodes
=
[];
this
.
extendTreeNodes
.
unshift
({
"
id
"
:
"
root
"
,
"
name
"
:
this
.
allLabel
,
"
level
"
:
0
,
"
children
"
:
this
.
treeNodes
,
"
caseNum
"
:
num
});
if
(
this
.
expandedNode
.
length
===
0
)
{
this
.
expandedNode
.
push
(
"
root
"
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help