Commit e3c1e9f2 authored by trumansdo's avatar trumansdo
Browse files

- doing

parent 0cf6a9af
<!-- <!--
* @Author: 一日看尽长安花 * @Author: 一日看尽长安花
* @since: 2020-05-30 12:53:38 * @since: 2020-05-30 12:53:38
* @LastEditTime: 2020-06-01 22:02:17 * @LastEditTime: 2020-06-02 20:58:23
* @LastEditors: 一日看尽长安花 * @LastEditors: 一日看尽长安花
* @Description: * @Description:
--> -->
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
:data="treeData" :data="treeData"
node-key="id" node-key="id"
default-expand-all default-expand-all
:expand-on-click-node="false" :expand-on-click-node="true"
:filter-node-method="filterNode" :filter-node-method="filterNode"
> >
<template v-slot="{ node: node, data: data }"> <template v-slot="{ node: node, data: data }">
...@@ -162,7 +162,6 @@ export default { ...@@ -162,7 +162,6 @@ export default {
createNode() {}, createNode() {},
updateNode() {}, updateNode() {},
openSelectParentNodeLayer() { openSelectParentNodeLayer() {
console.log(Math.random());
this.dialogVisible = true; this.dialogVisible = true;
} }
} }
......
<!-- <!--
* @Author: 一日看尽长安花 * @Author: 一日看尽长安花
* @since: 2020-05-30 12:53:38 * @since: 2020-05-30 12:53:38
* @LastEditTime: 2020-06-01 22:49:52 * @LastEditTime: 2020-06-02 21:01:15
* @LastEditors: 一日看尽长安花 * @LastEditors: 一日看尽长安花
* @Description: * @Description:
--> -->
<template> <template>
<el-dialog <el-dialog
id="sel-func-dialog" id="sel-func-dialog"
:key="Math.random()"
title="功能点选择" title="功能点选择"
:visible="visible" :visible="visible"
@update:visible="$emit('update:visible', $event)" @update:visible="$emit('update:visible', $event)"
...@@ -78,11 +79,13 @@ export default { ...@@ -78,11 +79,13 @@ export default {
}, },
watch: { watch: {
filterText(val) { filterText(val) {
debugger;
this.$refs.tree.filter(val); this.$refs.tree.filter(val);
} }
}, },
methods: { methods: {
filterNode(value, data) { filterNode(value, data) {
debugger;
if (!value) return true; if (!value) return true;
return data.name.indexOf(value) !== -1; return data.name.indexOf(value) !== -1;
}, },
...@@ -140,6 +143,12 @@ export default { ...@@ -140,6 +143,12 @@ export default {
} }
</style> </style>
<style lang="scss"> <style lang="scss">
.el-dialog {
height: 90%;
overflow-y: scroll;
top: -10vh;
margin-bottom: -5vh;
}
.el-tree-node { .el-tree-node {
margin-top: 5px; margin-top: 5px;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment