|
@@ -5,7 +5,7 @@
|
|
|
<el-input v-model="queryParams.name" size="small" placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="tenant" v-if="userinfo.rList?(userinfo.rList.filter(item=>item.roleId==1))[0]:''">
|
|
|
- <el-select v-model="queryParams.tenant" clearable placeholder="根据租户查询">
|
|
|
+ <el-select v-model="queryParams.tenant" @change="getList2" clearable placeholder="根据租户查询">
|
|
|
<el-option
|
|
|
v-for="item in tenantList"
|
|
|
:key="item.id"
|
|
@@ -15,7 +15,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="" size="small" @click="getList" v-if="$permission('/admin/role/check')">查询</el-button>
|
|
|
+ <el-button type="" size="small" @click="getList2" v-if="$permission('/admin/role/check')">查询</el-button>
|
|
|
<el-button type="primary" size="small" @click="handleAdd()" v-if="$permission('/admin/role/add')">新增</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -406,6 +406,11 @@ export default {
|
|
|
this.tenantList = response.data
|
|
|
})
|
|
|
},
|
|
|
+ //根据条件查询
|
|
|
+ getList2(){
|
|
|
+ this.queryParams.current=1
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
getList() {
|
|
|
this.loading = true
|
|
|
this.$api.getRoleList(this.queryParams).then(response => {
|