1
0

feat(web): 统一页面显示和权限

This commit is contained in:
2024-11-26 10:40:58 +08:00
parent 246e27677e
commit e76236be62
6 changed files with 43 additions and 7 deletions

View File

@@ -3,10 +3,11 @@ import {
resourceDetailDialog,
resourceEditeDialog
} from "../../components/resource/dialog-resource.js";
import {apiGet, apiPost, crudCommonOptions} from "../../components/constants.js";
import {apiGet, apiPost, crudCommonOptions, userOnly} from "../../components/constants.js";
export function tabData() {
return {
visibleOn: userOnly,
title: '数据资源',
icon: 'fa fa-database',
body: [
@@ -20,7 +21,7 @@ export function tabData() {
'reload',
{
type: 'action',
label: '新增数据资源',
label: '',
icon: 'fa fa-plus',
...resourceAddDialog()
},
@@ -52,18 +53,21 @@ export function tabData() {
{
type: 'action',
label: '查看',
icon: 'fa fa-eye',
level: 'link',
...resourceDetailDialog(),
},
{
type: 'action',
label: '编辑',
icon: 'fa fa-pen-fancy',
level: 'link',
...resourceEditeDialog(),
},
{
type: 'action',
label: '删除',
icon: 'fa fa-remove',
level: 'link',
className: 'text-danger',
confirmTitle: '确认删除',