feat(web): 增加审查状态类型的展示
This commit is contained in:
@@ -182,6 +182,11 @@ export const confirmationStateMapping = [
|
||||
mappingItem('驳回', 'REJECT', 'bg-danger'),
|
||||
]
|
||||
|
||||
export const checkTypeMapping = [
|
||||
mappingItem('确权审查', 'CONFIRMATION', 'bg-blue-500'),
|
||||
mappingItem('授权审查', 'AUTHENTICATION', 'bg-purple-500'),
|
||||
]
|
||||
|
||||
function api(method, url) {
|
||||
return {
|
||||
method: method,
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
import {apiGet, apiPost, checkerOnly, crudCommonOptions} from "../../components/constants.js";
|
||||
import {
|
||||
apiGet,
|
||||
apiPost,
|
||||
checkerOnly,
|
||||
checkTypeMapping,
|
||||
crudCommonOptions,
|
||||
mappingField
|
||||
} from "../../components/constants.js";
|
||||
import {permissionDetailDialog} from "../../components/permission/dialog-permission.js";
|
||||
|
||||
export function tabCheck() {
|
||||
@@ -20,6 +27,12 @@ export function tabCheck() {
|
||||
name: 'name',
|
||||
label: '描述',
|
||||
},
|
||||
{
|
||||
label: '类型',
|
||||
width: 80,
|
||||
align: 'center',
|
||||
...mappingField('type', checkTypeMapping)
|
||||
},
|
||||
{
|
||||
label: '操作',
|
||||
width: 100,
|
||||
@@ -29,7 +42,7 @@ export function tabCheck() {
|
||||
buttons: [
|
||||
{
|
||||
type: 'action',
|
||||
label: '查看',
|
||||
label: '处理',
|
||||
level: 'link',
|
||||
...permissionDetailDialog(
|
||||
'parameters.confirmationId',
|
||||
|
||||
@@ -19,8 +19,14 @@ public interface CheckingService {
|
||||
@Value
|
||||
class CheckOrder {
|
||||
String name;
|
||||
Type type;
|
||||
ImmutableList<CheckOperation> operations;
|
||||
ImmutableMap<String, Object> parameters;
|
||||
|
||||
public enum Type {
|
||||
CONFIRMATION,
|
||||
AUTHENTICATION,
|
||||
}
|
||||
}
|
||||
|
||||
@Data
|
||||
|
||||
@@ -55,6 +55,7 @@ public class ConfirmationService extends SimpleServiceSupport<Confirmation> impl
|
||||
)
|
||||
.collect(confirmation -> new CheckOrder(
|
||||
StrUtil.format("资源名为「{}」的确权申请", confirmation.getTarget().getName()),
|
||||
CheckOrder.Type.CONFIRMATION,
|
||||
Lists.immutable.of(
|
||||
new CheckOperation("confirmation_check_apply", "通过"),
|
||||
new CheckOperation("confirmation_check_reject", "拒绝", "danger")
|
||||
|
||||
Reference in New Issue
Block a user