Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
e3c1e9f2
You need to sign in or sign up before continuing.
Commit
e3c1e9f2
authored
Jun 02, 2020
by
trumansdo
Browse files
- doing
parent
0cf6a9af
Changes
2
Hide whitespace changes
Inline
Side-by-side
ve-admin/admin-web/src/views/functions/index.vue
View file @
e3c1e9f2
<!--
* @Author: 一日看尽长安花
* @since: 2020-05-30 12:53:38
* @LastEditTime: 2020-06-0
1
2
2:02:17
* @LastEditTime: 2020-06-0
2
2
0:58:23
* @LastEditors: 一日看尽长安花
* @Description:
-->
...
...
@@ -17,7 +17,7 @@
:data=
"treeData"
node-key=
"id"
default-expand-all
:expand-on-click-node=
"
fals
e"
:expand-on-click-node=
"
tru
e"
:filter-node-method=
"filterNode"
>
<template
v-slot=
"
{ node: node, data: data }">
...
...
@@ -162,7 +162,6 @@ export default {
createNode
()
{},
updateNode
()
{},
openSelectParentNodeLayer
()
{
console
.
log
(
Math
.
random
());
this
.
dialogVisible
=
true
;
}
}
...
...
ve-admin/admin-web/src/views/functions/select_dialog.vue
View file @
e3c1e9f2
<!--
* @Author: 一日看尽长安花
* @since: 2020-05-30 12:53:38
* @LastEditTime: 2020-06-0
1
2
2:49:52
* @LastEditTime: 2020-06-0
2
2
1:01:15
* @LastEditors: 一日看尽长安花
* @Description:
-->
<
template
>
<el-dialog
id=
"sel-func-dialog"
:key=
"Math.random()"
title=
"功能点选择"
:visible=
"visible"
@
update:visible=
"$emit('update:visible', $event)"
...
...
@@ -78,11 +79,13 @@ export default {
},
watch
:
{
filterText
(
val
)
{
debugger
;
this
.
$refs
.
tree
.
filter
(
val
);
}
},
methods
:
{
filterNode
(
value
,
data
)
{
debugger
;
if
(
!
value
)
return
true
;
return
data
.
name
.
indexOf
(
value
)
!==
-
1
;
},
...
...
@@ -140,6 +143,12 @@ export default {
}
</
style
>
<
style
lang=
"scss"
>
.el-dialog
{
height
:
90%
;
overflow-y
:
scroll
;
top
:
-10vh
;
margin-bottom
:
-5vh
;
}
.el-tree-node
{
margin-top
:
5px
;
}
...
...
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