File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change 3
3
<div class =" header" >
4
4
<div class =" title" >用户列表</div >
5
5
<!-- 分组选择下拉框 -->
6
- <el-dropdown @command =" handleCommand" >
7
- <el-button >
8
- {{groupType}}
9
- <i class =" el-icon-arrow-down el-icon--right" ></i >
10
- </el-button >
11
- <el-dropdown-menu slot =" dropdown" >
12
- <el-dropdown-item :command =" [undefined,'全部分组']" >全部分组</el-dropdown-item >
13
- <el-dropdown-item v-for =" (group, index) in groups" :key =" index" :command =" [group.id,group.name]" >
14
- {{group.name}}
15
- </el-dropdown-item >
16
- </el-dropdown-menu >
17
- </el-dropdown >
6
+ <el-select size =" medium" filterable v-model =" group_id" placeholder =" 请选择分组" @change =" handleChange" clearable >
7
+ <el-option
8
+ v-for =" (group, index) in groups"
9
+ :key =" index"
10
+ :label =" group.name"
11
+ :value =" group.id" >
12
+ </el-option >
13
+ </el-select >
18
14
</div >
19
15
<!-- 表格 -->
20
16
<lin-table
@@ -94,9 +90,9 @@ export default {
94
90
tableColumn: [], // 表头数据
95
91
operate: [], // 表格按键操作区
96
92
dialogFormVisible: false , // 控制弹窗显示
93
+ selectGroup: ' ' , // 选中的分组Id
97
94
groups: [], // 所有分组
98
95
group_id: undefined ,
99
- groupType: ' 全部分组' , // select下拉框分组种类
100
96
activeTab: ' 修改信息' ,
101
97
form: { // 表单信息
102
98
nickname: ' ' ,
@@ -153,8 +149,7 @@ export default {
153
149
this .dialogFormVisible = true
154
150
},
155
151
// 下拉框选择分组
156
- async handleCommand (group ) {
157
- [this .group_id , this .groupType ] = group
152
+ async handleChange () {
158
153
this .currentPage = 1
159
154
this .loading = true
160
155
await this .getAdminUsers ()
You can’t perform that action at this time.
0 commit comments