60 lines
2.3 KiB
JavaScript
60 lines
2.3 KiB
JavaScript
import {apiGet, apiPost, checkerOnly, crudCommonOptions} from "../../components/constants.js";
|
|
import {permissionDetailDialog} from "../../components/permission/dialog-permission.js";
|
|
|
|
export function tabCheck() {
|
|
return {
|
|
visibleOn: checkerOnly,
|
|
title: '审核审查',
|
|
icon: 'fa fa-shield-halved',
|
|
reload: true,
|
|
body: [
|
|
{
|
|
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}'
|
|
}
|
|
}
|
|
},
|
|
]
|
|
),
|
|
},
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |