提交 8da4bb2a 编写于 作者: laizhilong's avatar laizhilong

三棵树添加搜索,去掉重复的视图

上级 07e7d43c
...@@ -62,11 +62,11 @@ ...@@ -62,11 +62,11 @@
</div> </div>
</context-menu-container> </context-menu-container>
</div> </div>
<!--统一资源--> <!--自定义资源-->
<div class="center" :style="{width : '33%',border:'1px solid #dcdee2' }"> <div class="center" :style="{width : '33%',border:'1px solid #dcdee2' }">
<context-menu-container class='design-tree-container'> <context-menu-container class='design-tree-container'>
<div> <div>
<!--<div class="text">统一资源</div>--> <!--<div class="text">自定义资源</div>-->
<div style="margin: 20px 20px 0 20px;"> <div style="margin: 20px 20px 0 20px;">
<el-input size="medium" placeholder="搜索自定义资源..." v-model="ZYtreefilterText" @input="filterChangeZYtree"> <el-input size="medium" placeholder="搜索自定义资源..." v-model="ZYtreefilterText" @input="filterChangeZYtree">
<i slot="prefix" class="el-input__icon el-icon-search"></i> <i slot="prefix" class="el-input__icon el-icon-search"></i>
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
public CDtreefilterText:any = ''; public CDtreefilterText:any = '';
// 数据能力树搜索文本 // 数据能力树搜索文本
public QXtreefilterText:any = ''; public QXtreefilterText:any = '';
// 统一资源树搜索文本 // 自定义资源树搜索文本
public ZYtreefilterText:any = ''; public ZYtreefilterText:any = '';
/** /**
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
QXtree.filter(this.QXtreefilterText); QXtree.filter(this.QXtreefilterText);
} }
/** /**
* 统一资源树搜索触发 * 自定义资源树搜索触发
*/ */
public filterChangeZYtree(){ public filterChangeZYtree(){
const ZYtree:any = this.$refs.ZYtree; const ZYtree:any = this.$refs.ZYtree;
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
protected CDdata: any = []; protected CDdata: any = [];
/*数据能力数据*/ /*数据能力数据*/
protected QXdata: any = []; protected QXdata: any = [];
/*统一资源数据*/ /*自定义资源数据*/
protected ZYdata: any = []; protected ZYdata: any = [];
/*默认选中节点*/ /*默认选中节点*/
protected defaultCheckedNodes: any = []; protected defaultCheckedNodes: any = [];
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
protected CDdataexpandedKeys: any = []; protected CDdataexpandedKeys: any = [];
/*数据能力数据默认展开节点*/ /*数据能力数据默认展开节点*/
protected QXdataexpandedKeys: any = []; protected QXdataexpandedKeys: any = [];
/*统一资源数据默认展开节点*/ /*自定义资源数据默认展开节点*/
protected ZYdataexpandedKeys: any = []; protected ZYdataexpandedKeys: any = [];
/** /**
...@@ -452,7 +452,7 @@ ...@@ -452,7 +452,7 @@
*/ */
private initTree() { private initTree() {
const _this = this; const _this = this;
// get全部菜单和数据能力和统一资源的请求路径 // get全部菜单和数据能力和自定义资源的请求路径
const url = `sysroles/`+_this.srfparentkey+`/sysrolepermissions/tree`; const url = `sysroles/`+_this.srfparentkey+`/sysrolepermissions/tree`;
this.$http.get(url).then((response: any) => { this.$http.get(url).then((response: any) => {
if (!response || response.status !== 200) { if (!response || response.status !== 200) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册