flat: 权限
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
size="small"
|
||||
@click.stop="distributionCodeDialog = true"
|
||||
type="primary"
|
||||
v-show="vaildData(permission.manage_station_inviteCode_edituser, false)"
|
||||
>新增用户</el-button>
|
||||
</template>
|
||||
<template slot="isEnabled" slot-scope="{ row }">
|
||||
@@ -156,6 +157,9 @@ export default {
|
||||
created() {
|
||||
this.getList() // 企业
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(["permission"]),
|
||||
},
|
||||
methods:{
|
||||
async onLoad() {
|
||||
this.getInvitationCode()
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
@click.stop="handleAdd(scope.row,scope.index)"
|
||||
v-if="userInfo.role_name.includes('admin')"
|
||||
>新增子项</el-button>
|
||||
|
||||
|
||||
</template>
|
||||
<template slot-scope="{row}" slot="source">
|
||||
<div style="text-align:center">
|
||||
@@ -243,7 +243,7 @@ export default {
|
||||
},
|
||||
ids () {
|
||||
let ids = [];
|
||||
|
||||
|
||||
this.selectionList.forEach(ele => {
|
||||
ids.push(ele.id);
|
||||
|
||||
|
||||
@@ -26,9 +26,13 @@
|
||||
</span>
|
||||
<!-- </el-tooltip> -->
|
||||
<span v-show="data.id && data.id !== '0'" style="flex-basis: 20%">
|
||||
<el-button type="text" icon="el-icon-edit" size="mini" @click="() => updateGroups('edit', data)">
|
||||
<el-button type="text" icon="el-icon-edit"
|
||||
v-if="vaildData(permission.tenant_main_label_index_groupediting, false)"
|
||||
size="mini" @click="() => updateGroups('edit', data)">
|
||||
</el-button>
|
||||
<el-button icon="el-icon-delete" type="text" size="mini" @click="() => removeGroups(data)">
|
||||
<el-button icon="el-icon-delete"
|
||||
v-if="vaildData(permission.tenant_main_label_index_delete, false)"
|
||||
type="text" size="mini" @click="() => removeGroups(data)">
|
||||
</el-button>
|
||||
</span>
|
||||
</span>
|
||||
@@ -36,7 +40,10 @@
|
||||
<!-- v-show="vaildData(permission.tenant_wage_payroll_view, false)" -->
|
||||
|
||||
<div class="footer" style="padding-left: 6px">
|
||||
<el-button type="text" icon="el-icon-plus" @click="updateGroups('add')">
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-plus"
|
||||
@click="updateGroups('add')">
|
||||
新建分组</el-button>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
@@ -242,14 +249,14 @@ export default {
|
||||
...mapGetters(["permission"]),
|
||||
permissionList() {
|
||||
return {
|
||||
addBtn: this.vaildData(this.permission.tenant_talents_groupadd, false),
|
||||
addBtn: this.vaildData(this.permission.tenant_main_label_index_add, false),
|
||||
viewBtn: true,
|
||||
delBtn: this.vaildData(
|
||||
this.permission.tenant_talents_groupdelete,
|
||||
this.permission.tenant_main_label_index_edit,
|
||||
false
|
||||
),
|
||||
editBtn: this.vaildData(
|
||||
this.permission.tenant_talents_groupedit,
|
||||
this.permission.tenant_main_label_index_edit,
|
||||
false
|
||||
),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user