feat(web): 增加确权状态审查
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {checkerOnly} from "../../components/constants.js";
|
||||
import {apiGet, apiPost, checkerOnly, crudCommonOptions} from "../../components/constants.js";
|
||||
import {permissionDetailDialog} from "../../components/permission/dialog-permission.js";
|
||||
|
||||
export function tabCheck() {
|
||||
return {
|
||||
@@ -6,7 +7,53 @@ export function tabCheck() {
|
||||
title: '审核审查',
|
||||
icon: 'fa fa-shield-halved',
|
||||
body: [
|
||||
'hello world'
|
||||
{
|
||||
type: 'crud',
|
||||
api: apiGet('${base}/check/list'),
|
||||
...crudCommonOptions(),
|
||||
headerToolbar: [
|
||||
'reload',
|
||||
],
|
||||
columns: [
|
||||
{
|
||||
name: 'name',
|
||||
label: '描述',
|
||||
},
|
||||
{
|
||||
label: '操作',
|
||||
width: 100,
|
||||
type: 'operation',
|
||||
fixed: 'right',
|
||||
className: 'nowrap',
|
||||
buttons: [
|
||||
{
|
||||
type: 'action',
|
||||
label: '查看',
|
||||
level: 'link',
|
||||
...permissionDetailDialog(
|
||||
'parameters.confirmationId',
|
||||
[
|
||||
{
|
||||
type: 'each',
|
||||
name: 'operations',
|
||||
items: {
|
||||
type: 'action',
|
||||
label: '${item.name}',
|
||||
level: '${item.level}',
|
||||
actionType: 'ajax',
|
||||
api: {
|
||||
...apiPost('${base}/check/operation/${item.operation}'),
|
||||
data: '${parameters}'
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
),
|
||||
},
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user