fix: 锁定按钮改为随时可用,不联动审核状态
- 前端:锁定按钮仅受 IsLocked 控制,移除 status!=pending 的条件 - 后端:Lock 方法移除 pending 状态的阻止,锁定状态独立
This commit is contained in:
@ -57,7 +57,7 @@
|
||||
<button class="btn btn-sm btn-success post-approve" data-id="{{.ID}}">通过修订</button>
|
||||
<button class="btn btn-sm btn-warning post-reject" data-id="{{.ID}}">退回修订</button>
|
||||
{{end}}
|
||||
{{if and (not .IsLocked) (ne .Status "pending")}}
|
||||
{{if not .IsLocked}}
|
||||
<button class="btn btn-sm btn-danger post-lock" data-id="{{.ID}}">锁定</button>
|
||||
{{end}}
|
||||
{{if .IsLocked}}
|
||||
|
||||
Reference in New Issue
Block a user