Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
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
周远喜
mes-ui
Commits
1e82085a
Commit
1e82085a
authored
Jul 21, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工艺规程产品选择
parent
eb30b182
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
5 deletions
+33
-5
productSelect.vue
components/page/productSelect.vue
+33
-5
No files found.
components/page/productSelect.vue
View file @
1e82085a
...
@@ -98,14 +98,24 @@ export default {
...
@@ -98,14 +98,24 @@ export default {
});
});
},
},
renderContent
(
h
,
{
root
,
node
,
data
})
{
renderContent
(
h
,
{
root
,
node
,
data
})
{
let
type
=
"md-folder"
;
let
title
=
data
.
title
;
if
(
data
.
isProduct
!=
0
)
{
let
version
=
this
.
$store
.
getters
.
dictionaryByCode
(
"material.main.version"
,
data
.
version
);
type
=
"ios-image"
;
if
(
version
)
{
title
=
data
.
title
+
"("
+
data
.
mmcode
+
"/"
+
version
.
name
+
")"
;
}
else
{
title
=
data
.
title
+
"("
+
data
.
mmcode
+
")"
;
}
}
//渲染树的样式
//渲染树的样式
return
h
(
return
h
(
"span"
,
"span"
,
{
{
style
:
{
color
:
data
.
isProduct
!=
"1"
?
"#249E91"
:
"#333"
,
//根据选中状态设置样式
cursor
:
"pointer"
},
on
:
{
on
:
{
click
:
()
=>
{
click
:
()
=>
{
let
arrTree
=
[];
let
arrTree
=
[];
...
@@ -114,7 +124,25 @@ export default {
...
@@ -114,7 +124,25 @@ export default {
}
}
}
}
},
},
data
.
title
[
h
(
"Icon"
,
{
props
:
{
type
:
type
},
style
:
{
marginRight
:
"8px"
}
}),
h
(
"span"
,
{
style
:
{
color
:
data
.
isProduct
==
0
?
"#000"
:
"rgba(38, 128, 235, 1)"
}
},
title
)
]
);
);
},
},
onClear
()
{
onClear
()
{
...
...
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