flat: 权限
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
@click.stop="distributionCodeDialog = true"
|
@click.stop="distributionCodeDialog = true"
|
||||||
type="primary"
|
type="primary"
|
||||||
|
v-show="vaildData(permission.manage_station_inviteCode_edituser, false)"
|
||||||
>新增用户</el-button>
|
>新增用户</el-button>
|
||||||
</template>
|
</template>
|
||||||
<template slot="isEnabled" slot-scope="{ row }">
|
<template slot="isEnabled" slot-scope="{ row }">
|
||||||
@@ -156,6 +157,9 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getList() // 企业
|
this.getList() // 企业
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapGetters(["permission"]),
|
||||||
|
},
|
||||||
methods:{
|
methods:{
|
||||||
async onLoad() {
|
async onLoad() {
|
||||||
this.getInvitationCode()
|
this.getInvitationCode()
|
||||||
|
|||||||
@@ -26,9 +26,13 @@
|
|||||||
</span>
|
</span>
|
||||||
<!-- </el-tooltip> -->
|
<!-- </el-tooltip> -->
|
||||||
<span v-show="data.id && data.id !== '0'" style="flex-basis: 20%">
|
<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>
|
||||||
<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>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -36,7 +40,10 @@
|
|||||||
<!-- v-show="vaildData(permission.tenant_wage_payroll_view, false)" -->
|
<!-- v-show="vaildData(permission.tenant_wage_payroll_view, false)" -->
|
||||||
|
|
||||||
<div class="footer" style="padding-left: 6px">
|
<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>
|
新建分组</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
@@ -242,14 +249,14 @@ export default {
|
|||||||
...mapGetters(["permission"]),
|
...mapGetters(["permission"]),
|
||||||
permissionList() {
|
permissionList() {
|
||||||
return {
|
return {
|
||||||
addBtn: this.vaildData(this.permission.tenant_talents_groupadd, false),
|
addBtn: this.vaildData(this.permission.tenant_main_label_index_add, false),
|
||||||
viewBtn: true,
|
viewBtn: true,
|
||||||
delBtn: this.vaildData(
|
delBtn: this.vaildData(
|
||||||
this.permission.tenant_talents_groupdelete,
|
this.permission.tenant_main_label_index_edit,
|
||||||
false
|
false
|
||||||
),
|
),
|
||||||
editBtn: this.vaildData(
|
editBtn: this.vaildData(
|
||||||
this.permission.tenant_talents_groupedit,
|
this.permission.tenant_main_label_index_edit,
|
||||||
false
|
false
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ module.exports = {
|
|||||||
port: 1888,
|
port: 1888,
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": {
|
"/api": {
|
||||||
target: 'http://localhost:8000',
|
target: 'http://10.165.0.173:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|||||||
Reference in New Issue
Block a user