1
0

feat(web): 优化统一的Controller和Service接口

This commit is contained in:
2024-11-26 19:44:35 +08:00
parent 851fc02ce5
commit 7584ca3736
15 changed files with 612 additions and 250 deletions

View File

@@ -1,4 +1,4 @@
import {providerOnly, userOnly} from "../../components/constants.js";
import {apiGet, crudCommonOptions, providerOnly, userOnly} from "../../components/constants.js";
import {permissionAddDialog} from "../../components/permission/dialog-permission.js";
export function tabPermissions() {
@@ -12,14 +12,59 @@ export function tabPermissions() {
{
visibleOn: providerOnly,
title: '确权管理',
body: [
{
type: 'action',
label: '',
icon: 'fa fa-plus',
...permissionAddDialog()
body: {
type: 'crud',
api: {
...apiGet('${base}/confirmation/list')
},
]
...crudCommonOptions(),
headerToolbar: [
'reload',
{
type: 'action',
label: '',
icon: 'fa fa-plus',
...permissionAddDialog()
},
],
columns: [
{
label: '名称',
name: 'name',
width: 200,
},
{
label: '描述',
name: 'description',
},
{
label: '创建时间',
width: 150,
align: 'center',
type: 'tpl',
tpl: "${IF(createdTime, DATETOSTR(createdTime), '-')}"
},
{
label: '操作',
width: 100,
type: 'operation',
fixed: 'right',
className: 'nowrap',
buttons: [
{
type: 'action',
label: '查看',
level: 'link',
},
{
type: 'action',
label: '编辑',
level: 'link',
},
]
},
]
}
},
{
title: '授权管理',