flat: 权限
This commit is contained in:
@@ -26,16 +26,22 @@
|
||||
</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" size="mini"
|
||||
v-if="vaildData(permission.tenant_main_talents_certain_index_groupedit, false)"
|
||||
@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" type="text" size="mini"
|
||||
v-if="vaildData(permission.tenant_main_talents_certain_index_groupdelete, false)"
|
||||
@click="() => removeGroups(data)">
|
||||
</el-button>
|
||||
</span>
|
||||
</span>
|
||||
</el-tree>
|
||||
<!-- 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>
|
||||
<el-button type="text" icon="el-icon-plus"
|
||||
v-if="vaildData(permission.tenant_main_talents_certain_index_groupadd, false)"
|
||||
@click="updateGroups('add')">新建分组</el-button>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
@@ -94,9 +100,9 @@
|
||||
<el-button type="success" size="small" plain icon="el-icon-plus" @click="handleImport"
|
||||
v-show="vaildData(permission.tenant_talents_groupadd, false)">导入</el-button>
|
||||
<el-button type="warning" size="small" plain :disabled="!selectionList.length" icon="el-icon-sort"
|
||||
@click="handleTransfer">转移分组</el-button>
|
||||
@click="handleTransfer" v-show="vaildData(permission.tenant_main_talents_certain_index_transfergroup, false)">转移分组</el-button>
|
||||
<el-button type="danger" size="small" icon="el-icon-delete" @click="handleDelete"
|
||||
:disabled="!selectionList.length" plain v-show="vaildData(permission.tenant_talents_groupdelete, false)">
|
||||
:disabled="!selectionList.length" plain v-show="vaildData(permission.tenant_main_talents_certain_index_transfergroup, false)">
|
||||
删除</el-button>
|
||||
</template>
|
||||
<template slot="name" slot-scope="{row}">
|
||||
@@ -203,17 +209,10 @@ export default {
|
||||
...mapGetters(["permission"]),
|
||||
permissionList() {
|
||||
return {
|
||||
addBtn: this.vaildData(this.permission.tenant_talents_groupadd, false),
|
||||
addBtn: this.vaildData(this.permission.tenant_main_talents_certain_index_add, false),
|
||||
viewBtn: true,
|
||||
delBtn: this.vaildData(
|
||||
this.permission.tenant_talents_groupdelete,
|
||||
false
|
||||
),
|
||||
editBtn: this.vaildData(
|
||||
this.permission.tenant_talents_groupedit,
|
||||
false
|
||||
),
|
||||
};
|
||||
delBtn: this.vaildData( this.permission.tenant_main_talents_certain_index_delete, false),
|
||||
editBtn: this.vaildData( this.permission.tenant_main_talents_certain_index_edit,false)};
|
||||
},
|
||||
ids() {
|
||||
let ids = [];
|
||||
@@ -494,7 +493,7 @@ export default {
|
||||
},
|
||||
/*加载分组*/
|
||||
initDept(groupId) {
|
||||
getDept().then((res) => {
|
||||
getDept({groupType: 1}).then((res) => {
|
||||
const data = res.data.data.list;
|
||||
this.treeData = data;
|
||||
let treeDataOne = {
|
||||
@@ -894,11 +893,16 @@ export default {
|
||||
},
|
||||
/*加载人才列表 */
|
||||
onLoad(page, params = {}) {
|
||||
const paramsd = {
|
||||
...params,
|
||||
...this.query,
|
||||
groupType: 0
|
||||
}
|
||||
this.loading = true;
|
||||
getList(
|
||||
page.currentPage,
|
||||
page.pageSize,
|
||||
Object.assign(params, this.query),
|
||||
paramsd,
|
||||
this.tenantId
|
||||
).then((res) => {
|
||||
res.data.data.records.forEach(item => {
|
||||
|
||||
Reference in New Issue
Block a user