diff --git a/cds-fontend-2025.V1/src/views/report/performance-m/index.vue b/cds-fontend-2025.V1/src/views/report/performance-m/index.vue index 65f9cfc..bdf5d10 100644 --- a/cds-fontend-2025.V1/src/views/report/performance-m/index.vue +++ b/cds-fontend-2025.V1/src/views/report/performance-m/index.vue @@ -1261,8 +1261,6 @@ const { return (
{editBtn()} - {divider()} - {deleteBtn()}
); } @@ -1338,22 +1336,22 @@ function handleExport() { v-model:columns="columnChecks" :disabled-delete="checkedRowKeys.length === 0" :loading="loading" - :show-add="hasAuth('report:performanceM:add')" - :show-delete="hasAuth('report:performanceM:remove')" + :show-add="false" + :show-delete="false" :show-export="hasAuth('report:performanceM:export')" @add="handleAdd" @delete="handleBatchDelete" @export="handleExport" @refresh="getData" > - + + + + + + + + diff --git a/cds-fontend-2025.V1/src/views/report/performance-q/index.vue b/cds-fontend-2025.V1/src/views/report/performance-q/index.vue index 198a0d9..70b19f3 100644 --- a/cds-fontend-2025.V1/src/views/report/performance-q/index.vue +++ b/cds-fontend-2025.V1/src/views/report/performance-q/index.vue @@ -1261,8 +1261,6 @@ const { return (
{editBtn()} - {divider()} - {deleteBtn()}
); } @@ -1338,22 +1336,22 @@ function handleExport() { v-model:columns="columnChecks" :disabled-delete="checkedRowKeys.length === 0" :loading="loading" - :show-add="hasAuth('report:performanceQ:add')" - :show-delete="hasAuth('report:performanceQ:remove')" + :show-add="false" + :show-delete="false" :show-export="hasAuth('report:performanceQ:export')" @add="handleAdd" @delete="handleBatchDelete" @export="handleExport" @refresh="getData" > - + + + + + + + + diff --git a/cds-fontend-2025.V1/src/views/report/performance-y/index.vue b/cds-fontend-2025.V1/src/views/report/performance-y/index.vue index d17b8d7..a7488da 100644 --- a/cds-fontend-2025.V1/src/views/report/performance-y/index.vue +++ b/cds-fontend-2025.V1/src/views/report/performance-y/index.vue @@ -1261,8 +1261,6 @@ const { return (
{editBtn()} - {divider()} - {deleteBtn()}
); } @@ -1338,22 +1336,22 @@ function handleExport() { v-model:columns="columnChecks" :disabled-delete="checkedRowKeys.length === 0" :loading="loading" - :show-add="hasAuth('report:performanceY:add')" - :show-delete="hasAuth('report:performanceY:remove')" + :show-add="false" + :show-delete="false" :show-export="hasAuth('report:performanceY:export')" @add="handleAdd" @delete="handleBatchDelete" @export="handleExport" @refresh="getData" > - + + + + + + + + diff --git a/cds-fontend-2025.V1/src/views/report/pricing-summary-m/index.vue b/cds-fontend-2025.V1/src/views/report/pricing-summary-m/index.vue index ff23f73..8174419 100644 --- a/cds-fontend-2025.V1/src/views/report/pricing-summary-m/index.vue +++ b/cds-fontend-2025.V1/src/views/report/pricing-summary-m/index.vue @@ -216,8 +216,6 @@ const { return (
{editBtn()} - {divider()} - {deleteBtn()}
); } @@ -293,22 +291,22 @@ function handleExport() { v-model:columns="columnChecks" :disabled-delete="checkedRowKeys.length === 0" :loading="loading" - :show-add="hasAuth('report:pricingSummaryM:add')" - :show-delete="hasAuth('report:pricingSummaryM:remove')" + :show-add="false" + :show-delete="false" :show-export="hasAuth('report:pricingSummaryM:export')" @add="handleAdd" @delete="handleBatchDelete" @export="handleExport" @refresh="getData" > - + + + + + + + + diff --git a/cds-fontend-2025.V1/src/views/report/pricing-summary-q/index.vue b/cds-fontend-2025.V1/src/views/report/pricing-summary-q/index.vue index 2d4b0fa..b585aff 100644 --- a/cds-fontend-2025.V1/src/views/report/pricing-summary-q/index.vue +++ b/cds-fontend-2025.V1/src/views/report/pricing-summary-q/index.vue @@ -216,8 +216,6 @@ const { return (
{editBtn()} - {divider()} - {deleteBtn()}
); } @@ -293,22 +291,22 @@ function handleExport() { v-model:columns="columnChecks" :disabled-delete="checkedRowKeys.length === 0" :loading="loading" - :show-add="hasAuth('report:pricingSummaryQ:add')" - :show-delete="hasAuth('report:pricingSummaryQ:remove')" + :show-add="false" + :show-delete="false" :show-export="hasAuth('report:pricingSummaryQ:export')" @add="handleAdd" @delete="handleBatchDelete" @export="handleExport" @refresh="getData" > - + + + + + + + + diff --git a/cds-fontend-2025.V1/src/views/report/pricing-summary-y/index.vue b/cds-fontend-2025.V1/src/views/report/pricing-summary-y/index.vue index dd8f7ec..6a83050 100644 --- a/cds-fontend-2025.V1/src/views/report/pricing-summary-y/index.vue +++ b/cds-fontend-2025.V1/src/views/report/pricing-summary-y/index.vue @@ -216,8 +216,6 @@ const { return (
{editBtn()} - {divider()} - {deleteBtn()}
); } @@ -293,22 +291,22 @@ function handleExport() { v-model:columns="columnChecks" :disabled-delete="checkedRowKeys.length === 0" :loading="loading" - :show-add="hasAuth('report:pricingSummaryY:add')" - :show-delete="hasAuth('report:pricingSummaryY:remove')" + :show-add="false" + :show-delete="false" :show-export="hasAuth('report:pricingSummaryY:export')" @add="handleAdd" @delete="handleBatchDelete" @export="handleExport" @refresh="getData" > - + + + + + + + + diff --git a/cds-fontend-2025.V1/src/views/report/valid-invalid/index.vue b/cds-fontend-2025.V1/src/views/report/valid-invalid/index.vue index 32e8d0e..39150be 100644 --- a/cds-fontend-2025.V1/src/views/report/valid-invalid/index.vue +++ b/cds-fontend-2025.V1/src/views/report/valid-invalid/index.vue @@ -225,8 +225,6 @@ const { return (
{editBtn()} - {divider()} - {deleteBtn()}
); } @@ -302,22 +300,22 @@ function handleExport() { v-model:columns="columnChecks" :disabled-delete="checkedRowKeys.length === 0" :loading="loading" - :show-add="hasAuth('report:validInvalid:add')" - :show-delete="hasAuth('report:validInvalid:remove')" + :show-add="false" + :show-delete="false" :show-export="hasAuth('report:validInvalid:export')" @add="handleAdd" @delete="handleBatchDelete" @export="handleExport" @refresh="getData" > - + + + + + + + + diff --git a/cds-platform-2025.V1/cds-modules/cds-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java b/cds-platform-2025.V1/cds-modules/cds-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java index 4e76f2c..24a8b51 100644 --- a/cds-platform-2025.V1/cds-modules/cds-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java +++ b/cds-platform-2025.V1/cds-modules/cds-system/src/main/java/org/dromara/system/service/impl/SysUserServiceImpl.java @@ -518,10 +518,10 @@ public class SysUserServiceImpl implements ISysUserService, UserService { */ private void insertUserPost(SysUserBo user, boolean clear) { Long[] posts = user.getPostIds(); - if (posts.length >1) { - throw new ServiceException("用户" + user.getUserName() + "不能添加多个岗位"); - } if (ArrayUtil.isNotEmpty(posts)) { + if (posts.length >1) { + throw new ServiceException("用户" + user.getUserName() + "不能添加多个岗位"); + } if (clear) { // 删除用户与岗位关联 userPostMapper.delete(new LambdaQueryWrapper().eq(SysUserPost::getUserId, user.getUserId()));