feat(web): 统一页面显示和权限
This commit is contained in:
@@ -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: '确认删除',
|
||||
|
||||
Reference in New Issue
Block a user