fix: 独立出积分变更权限

This commit is contained in:
yys 2026-04-27 10:49:11 +08:00
parent 413a3b118a
commit 97a91a39e2
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@
type="text" type="text"
icon="el-icon-s-operation" icon="el-icon-s-operation"
@click="handleEditScore(scope.row)" @click="handleEditScore(scope.row)"
v-hasPermi="['system:dept:chargeRefund']" v-hasPermi="['system:dept:editScore']"
>积分更正</el-button> >积分更正</el-button>
<el-button <el-button
size="mini" size="mini"

View File

@ -198,9 +198,9 @@ public class SysDeptController extends BaseController
/** /**
* 部门积分更正更新部门积分余额并记流水无订单 * 部门积分更正更新部门积分余额并记流水无订单
* 需具备 {@code system:dept:chargeRefund}且目标部门须通过数据权限校验 * 需具备 {@code system:dept:editScore}且目标部门须通过数据权限校验
*/ */
@PreAuthorize("@ss.hasPermi('system:dept:chargeRefund')") @PreAuthorize("@ss.hasPermi('system:dept:editScore')")
@Log(title = "部门管理", businessType = BusinessType.UPDATE) @Log(title = "部门管理", businessType = BusinessType.UPDATE)
@PostMapping("/edit-score") @PostMapping("/edit-score")
public AjaxResult editScore(@Validated @RequestBody DeptPointsCorrectionRequest request) public AjaxResult editScore(@Validated @RequestBody DeptPointsCorrectionRequest request)