Commit cbdc28fc by 姜雷

Merge branch 'develop' into 'test'

添加筛选功能 See merge request !15
parents 3f79ff83 bbe429e1
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</el-pagination> </el-pagination>
</div> </div>
<drag-dialog class="wxAuthDialog" title="修改" :visible.sync="dialogEditVisible" :before-close="resetEditDialog" width="70%"> <drag-dialog class="wxAuthDialog" title="修改" :visible.sync="dialogEditVisible" :before-close="resetEditDialog" width="70%">
<el-transfer v-loading="loading" v-model="selected.userId" :props="{ key: 'userId', label: 'name'}" :titles="['未被选中列', '已被选中列']" :data="authUserList"> <el-transfer v-loading="loading" v-model="selected.userId" filterable :filter-method="filterMethod" filter-placeholder="请输入姓名" :props="{ key: 'userId', label: 'name'}" :titles="['未被选中列', '已被选中列']" :data="authUserList">
<div slot-scope="{ option }"> <div slot-scope="{ option }">
<span class="auth-name">{{ option.name }}</span> <span class="auth-name">{{ option.name }}</span>
<span class="auth-department">{{ option.department }}</span> <span class="auth-department">{{ option.department }}</span>
...@@ -102,7 +102,9 @@ export default { ...@@ -102,7 +102,9 @@ export default {
this.$message.error(err.msg || '查询失败!'); this.$message.error(err.msg || '查询失败!');
}); });
}, },
filterMethod() {}, filterMethod(query, list) {
return list.name.indexOf(query) > -1;
},
updateAuth() { updateAuth() {
const entity = { const entity = {
menuId: this.selected.id, menuId: this.selected.id,
......
Markdown is supported
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