伊利项目【架构筛选】重做

This commit is contained in:
qinoy 2022-07-22 09:58:40 +08:00
parent fe0d8a1858
commit 55ecd26214
2 changed files with 23 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template>
<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"/>
</el-aside>
<el-main>

View File

@ -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>
</div>
</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 v-if="havingWritePerm || havingCreatePerm" style="width: 100%;border-bottom: 1px solid #F2F2F2;"></div>
</el-header>
@ -448,6 +453,22 @@
});
},
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) {
if (!value) return true;
return data.name.indexOf(value) !== -1;
@ -645,7 +666,7 @@
//
this.$store.getters.getPageFunction['repositoryMainList_initData']();
//
this.refreshNode();
this.refreshNode('process');
},
handleCheckedMethodIdChange(value){
let checkedCount = value.length;