Commit db69b5ac authored by chenfenglei's avatar chenfenglei

根据角色筛选帐户

parent ee08f55c
......@@ -364,7 +364,6 @@
}
});
this.userList = res.list;
console.log(this.userList)
this.total = res.total
})
},
......
......@@ -15,14 +15,23 @@
<el-option label="冻结" :value="1"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="角色">
<el-select v-model="searchFrom.role_id" placeholder="请选择用户等级" @change="getList">
<el-option label="全部" value=""></el-option>
<el-option label="超级管理员" value="超级管理员"></el-option>
<el-option label="管理员" value="管理员"></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item>
<el-button type="primary" plain @click="getList">搜索</el-button>
</el-form-item>
</el-col>
<el-col :span="4" :offset="8">
<el-button @click="add" plain type="success" style="float: right" v-if="!$store.state.readonly">新增角色</el-button>
<el-col :span="16" :offset="8">
<el-button @click="add" plain type="success" style="float: right;margin-bottom:10px;" v-if="!$store.state.readonly">新增角色</el-button>
</el-col>
</el-row>
</el-form>
......@@ -197,7 +206,8 @@
adminList:[],
searchFrom:{
user_name: '',
status: ''
status: '',
role_id:""
},
dialog:{
dialogType:0,
......@@ -267,8 +277,12 @@
if (this.searchFrom.status !== ''){
json.status = this.searchFrom.status
}
if (this.searchFrom.role_id !== ''){
json.role_id = this.searchFrom.role_id
}
// console.log(json) //管理员筛选查看
getAdminListApi(json).then(res=>{
this.adminList = res.list
this.adminList = res.list;
this.total=Number(res.total)
this.$store.commit('mainCanShow')
})
......
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