|
@@ -7,7 +7,7 @@
|
|
|
<el-form-item label="姓名:" prop="name">
|
|
|
<el-input v-model="queryParams.name" placeholder="请输入"/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="所属租户:" class="tenant" v-if="userinfo.roleType == 1">
|
|
|
+ <el-form-item label="所属租户:" class="tenant" v-if="$permission.hasPermission([1,3])">
|
|
|
<el-select v-model="queryParams.tenant" clearable placeholder="根据租户查询" >
|
|
|
<el-option
|
|
|
v-for="item in tenantList"
|
|
@@ -18,7 +18,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" icon="el-icon-search" size="mini" @click="getList">搜索</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -43,7 +43,7 @@
|
|
|
<div class="block">
|
|
|
{{ scope.row.expitrTime }}
|
|
|
<el-popover
|
|
|
- v-if="userinfo.roleType == 1 && scope.row.expitrTime"
|
|
|
+ v-if="($permission.hasPermission([1,3])) && scope.row.expitrTime"
|
|
|
placement="bottom"
|
|
|
title="修改到期时间"
|
|
|
width="220"
|
|
@@ -290,7 +290,7 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
getTenantList() {
|
|
|
- if(this.userinfo.roleType != 1){
|
|
|
+ if(!this.$permission.hasPermission([1,3])){
|
|
|
return
|
|
|
}
|
|
|
this.$api.getAllTenantList().then(response => {
|