✨ 列表导出补齐创建人创建时间,并修复组织类型提交
多模块列表与导出展示创建人、创建时间;组织类型强制提交数字编码,避免中文 dictKey 反序列化失败。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
plain
|
||||
v-if="userInfo.authority.includes('admin')"
|
||||
v-if="isAdministrator"
|
||||
@click="handleDelete"
|
||||
>删除
|
||||
</el-button>
|
||||
@@ -43,19 +43,19 @@
|
||||
<template #menu="{ row }">
|
||||
<el-link
|
||||
type="primary"
|
||||
v-if="row.status === -1 && userInfo.authority.includes('admin')"
|
||||
v-if="row.status === -1 && isAdministrator"
|
||||
@click.stop="handleEnable(row)"
|
||||
>启用
|
||||
</el-link>
|
||||
<el-link
|
||||
type="primary"
|
||||
v-if="row.status === 1 && userInfo.authority.includes('admin')"
|
||||
v-if="row.status === 1 && isAdministrator"
|
||||
@click.stop="handleDisable(row)"
|
||||
>禁用
|
||||
</el-link>
|
||||
<el-link
|
||||
type="primary"
|
||||
v-if="userInfo.authority.includes('admin')"
|
||||
v-if="isAdministrator"
|
||||
@click.stop="handleRowLog(row)"
|
||||
>日志
|
||||
</el-link>
|
||||
@@ -522,7 +522,7 @@ sortable: true, span: 24, width: 180 },
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo']),
|
||||
...mapGetters(['userInfo', 'isAdministrator']),
|
||||
ids() {
|
||||
let ids = [];
|
||||
this.selectionList.forEach(ele => {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
plain
|
||||
v-if="userInfo.authority.includes('administrator')"
|
||||
v-if="isAdministrator"
|
||||
@click="handleDelete"
|
||||
>删除
|
||||
</el-button>
|
||||
@@ -54,19 +54,19 @@
|
||||
<template #menu="{ row }">
|
||||
<el-link
|
||||
type="primary"
|
||||
v-if="row.status !== 1 && userInfo.authority.includes('administrator')"
|
||||
v-if="row.status !== 1 && isAdministrator"
|
||||
@click.stop="handleEnable(row)"
|
||||
>启用
|
||||
</el-link>
|
||||
<el-link
|
||||
type="primary"
|
||||
v-if="row.status === 1 && userInfo.authority.includes('administrator')"
|
||||
v-if="row.status === 1 && isAdministrator"
|
||||
@click.stop="handleDisable(row)"
|
||||
>禁用
|
||||
</el-link>
|
||||
<el-link
|
||||
type="primary"
|
||||
v-if="userInfo.authority.includes('administrator')"
|
||||
v-if="isAdministrator"
|
||||
@click.stop="handleRowLog(row)"
|
||||
>日志
|
||||
</el-link>
|
||||
@@ -401,7 +401,7 @@ sortable: true, span: 24, width: 170 },
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo']),
|
||||
...mapGetters(['userInfo', 'isAdministrator']),
|
||||
ids() {
|
||||
let ids = [];
|
||||
this.selectionList.forEach(ele => {
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<el-button
|
||||
icon="el-icon-setting"
|
||||
@click="handleRole"
|
||||
v-if="userInfo.authority.includes('admin')"
|
||||
v-if="isAdministrator"
|
||||
plain
|
||||
>权限设置
|
||||
</el-button>
|
||||
@@ -39,7 +39,7 @@
|
||||
<template #menu="{ row }">
|
||||
<el-link
|
||||
type="primary"
|
||||
v-if="userInfo.authority.includes('admin')"
|
||||
v-if="isAdministrator"
|
||||
style="border: 0; background-color: transparent !important"
|
||||
@click.stop="handleRowRole(row)"
|
||||
>权限设置
|
||||
@@ -354,7 +354,7 @@ export default {
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['userInfo', 'permission']),
|
||||
...mapGetters(['userInfo', 'permission', 'isAdministrator']),
|
||||
permissionList() {
|
||||
return {
|
||||
addBtn: this.validData(this.permission.role_add, false),
|
||||
|
||||
Reference in New Issue
Block a user