伊利项目【架构筛选】重做
This commit is contained in:
parent
fe0d8a1858
commit
55ecd26214
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-container id="repository" :style="{'width': '100%', 'height': mainHeight}">
|
<el-container id="repository" :style="{'width': '100%', 'height': mainHeight}">
|
||||||
<el-aside width="280px" style="overflow: hidden;border-right: 1px solid #F2F2F2">
|
<el-aside width="300px" style="overflow: hidden;border-right: 1px solid #F2F2F2">
|
||||||
<RepositoryMain v-if="reFresh && conditionReFresh" :condition-data="conditionData" ref="repositoryMain" key="repositoryMain"/>
|
<RepositoryMain v-if="reFresh && conditionReFresh" :condition-data="conditionData" ref="repositoryMain" key="repositoryMain"/>
|
||||||
</el-aside>
|
</el-aside>
|
||||||
<el-main>
|
<el-main>
|
||||||
|
|||||||
@ -190,6 +190,11 @@
|
|||||||
<span style="font-size: 12px;color: rgb(147,147,153);margin-right: 8px;">文件类型</span><span style="color: rgb(147,147,153);"><i class="el-icon-arrow-down"></i></span>
|
<span style="font-size: 12px;color: rgb(147,147,153);margin-right: 8px;">文件类型</span><span style="color: rgb(147,147,153);"><i class="el-icon-arrow-down"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
|
<el-divider direction="vertical"></el-divider>
|
||||||
|
<!-- 筛选条件置空 -->
|
||||||
|
<el-tooltip class="item" effect="dark" content="筛选条件清空" placement="bottom">
|
||||||
|
<span style="cursor: pointer;color: rgb(147, 147, 153);font-size: 15px;" @click="clearConditionData"><i class="el-icon-refresh-right"></i></span>
|
||||||
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="havingWritePerm || havingCreatePerm" style="width: 100%;border-bottom: 1px solid #F2F2F2;"></div>
|
<div v-if="havingWritePerm || havingCreatePerm" style="width: 100%;border-bottom: 1px solid #F2F2F2;"></div>
|
||||||
</el-header>
|
</el-header>
|
||||||
@ -448,6 +453,22 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
clearConditionData(){
|
||||||
|
this.checkCreateUserIds = [];
|
||||||
|
this.currentUserCheck = false;
|
||||||
|
this.$store.commit('setCreateUsers',this.checkCreateUserIds);
|
||||||
|
this.checkMethodIds = [];
|
||||||
|
this.isIndeterminate = false;
|
||||||
|
this.checkAll = false;
|
||||||
|
this.$store.commit('setMethodIds',this.checkMethodIds);
|
||||||
|
this.checkOrgIds = [];
|
||||||
|
this.$refs.orgTree.setCheckedKeys(this.checkOrgIds);
|
||||||
|
this.$store.commit('setOrgIds',this.checkOrgIds);
|
||||||
|
// 刷新左侧文件树以及右侧最近编辑与收藏
|
||||||
|
this.$store.getters.getPageFunction['repositoryMainList_initData']();
|
||||||
|
// 刷新左侧树
|
||||||
|
this.refreshNode('process');
|
||||||
|
},
|
||||||
filterNode(value, data) {
|
filterNode(value, data) {
|
||||||
if (!value) return true;
|
if (!value) return true;
|
||||||
return data.name.indexOf(value) !== -1;
|
return data.name.indexOf(value) !== -1;
|
||||||
@ -645,7 +666,7 @@
|
|||||||
// 刷新左侧文件树以及右侧最近编辑与收藏
|
// 刷新左侧文件树以及右侧最近编辑与收藏
|
||||||
this.$store.getters.getPageFunction['repositoryMainList_initData']();
|
this.$store.getters.getPageFunction['repositoryMainList_initData']();
|
||||||
// 刷新左侧树
|
// 刷新左侧树
|
||||||
this.refreshNode();
|
this.refreshNode('process');
|
||||||
},
|
},
|
||||||
handleCheckedMethodIdChange(value){
|
handleCheckedMethodIdChange(value){
|
||||||
let checkedCount = value.length;
|
let checkedCount = value.length;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user