修复后台-权限管理-用户管理:搜索bug
This commit is contained in:
parent
b226e777f7
commit
49b41ce8e6
|
@ -4,7 +4,8 @@
|
||||||
<el-button slot="append" icon="el-icon-search" @click="deptDialog"></el-button>
|
<el-button slot="append" icon="el-icon-search" @click="deptDialog"></el-button>
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-input :value="value" style="display: none"></el-input>
|
<el-input :value="value" style="display: none"></el-input>
|
||||||
<el-dialog :visible.sync="visibleDept" width="30%" :modal="false" :title="placeholder" :close-on-click-modal="false" :close-on-press-escape="false">
|
<el-dialog :visible.sync="visibleDept" width="30%" :modal="false" :title="placeholder" :close-on-click-modal="false"
|
||||||
|
:close-on-press-escape="false">
|
||||||
<el-form size="mini" :inline="true">
|
<el-form size="mini" :inline="true">
|
||||||
<el-form-item :label="$t('keyword')">
|
<el-form-item :label="$t('keyword')">
|
||||||
<el-input v-model="filterText"></el-input>
|
<el-input v-model="filterText"></el-input>
|
||||||
|
@ -14,16 +15,9 @@
|
||||||
<el-button type="default">{{ $t('query') }}</el-button>
|
<el-button type="default">{{ $t('query') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-tree
|
<el-tree class="filter-tree" :data="deptList" :default-expanded-keys="expandedKeys"
|
||||||
class="filter-tree"
|
:props="{ label: 'name', children: 'children' }" :expand-on-click-node="false" :filter-node-method="filterNode"
|
||||||
:data="deptList"
|
:highlight-current="true" node-key="id" ref="tree">
|
||||||
:default-expanded-keys="expandedKeys"
|
|
||||||
:props="{ label: 'name', children: 'children' }"
|
|
||||||
:expand-on-click-node="false"
|
|
||||||
:filter-node-method="filterNode"
|
|
||||||
:highlight-current="true"
|
|
||||||
node-key="id"
|
|
||||||
ref="tree">
|
|
||||||
</el-tree>
|
</el-tree>
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<el-button type="default" @click="cancelHandle()" size="mini">{{ $t('cancel') }}</el-button>
|
<el-button type="default" @click="cancelHandle()" size="mini">{{ $t('cancel') }}</el-button>
|
||||||
|
@ -61,6 +55,11 @@ export default {
|
||||||
},
|
},
|
||||||
deptName(val) {
|
deptName(val) {
|
||||||
this.showDeptName = val
|
this.showDeptName = val
|
||||||
|
},
|
||||||
|
visibleDept(val) {
|
||||||
|
if (!val) {
|
||||||
|
this.filterText = ''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue