feat:【bpm】增加“流程模型”、“流程表单”占位,仅支持 PC 操作

This commit is contained in:
YunaiV
2025-12-22 23:48:45 +08:00
parent 7e6a2db4e8
commit 512fe664df
3 changed files with 22 additions and 5 deletions

View File

@@ -81,7 +81,6 @@ function getIconStyle(menu: MenuItem) {
<style lang="scss" scoped>
:deep(.wd-grid-item__text) {
margin-top: 8rpx;
font-size: 24rpx;
color: #333;
overflow: visible;

View File

@@ -1,4 +1,5 @@
import { useAccess } from '@/hooks/useAccess'
import { ONLY_PC_PAGE } from '@/router/config'
/**
* 工作台菜单数据
@@ -221,28 +222,28 @@ const menuGroupsData: MenuGroup[] = [
key: 'codegen',
name: '代码生成',
icon: 'chevron-up-rectangle',
url: '/pages/error/pc-only',
url: ONLY_PC_PAGE,
iconColor: '#1677ff',
},
{
key: 'build',
name: '表单构建',
icon: 'edit-outline',
url: '/pages/error/pc-only',
url: ONLY_PC_PAGE,
iconColor: '#722ed1',
},
{
key: 'swagger',
name: 'API 接口',
icon: 'link',
url: '/pages/error/pc-only',
url: ONLY_PC_PAGE,
iconColor: '#52c41a',
},
{
key: 'druid',
name: '监控中心',
icon: 'computer',
url: '/pages/error/pc-only',
url: ONLY_PC_PAGE,
iconColor: '#fa8c16',
},
],
@@ -283,6 +284,22 @@ const menuGroupsData: MenuGroup[] = [
iconColor: '#5cdbd3',
permission: 'bpm:process-instance-cc:query',
},
{
key: 'bpmModel',
name: '流程模型',
icon: 'app',
url: ONLY_PC_PAGE,
iconColor: '#1677ff',
permission: 'bpm:process-definition:query',
},
{
key: 'bpmForm',
name: '流程表单',
icon: 'edit-1',
url: ONLY_PC_PAGE,
iconColor: '#722ed1',
permission: 'bpm:form:query',
},
],
},
]

View File

@@ -14,6 +14,7 @@ export const REGISTER_PAGE = '/pages-core/auth/register' // edit by 芋艿:自
export const CODE_LOGIN_PAGE = '/pages-core/auth/code-login' // edit by 芋艿:自定义了短信登录页路径
export const FORGET_PASSWORD_PAGE = '/pages-core/auth/forget-password' // edit by 芋艿:自定义了忘记密码页路径
export const NOT_FOUND_PAGE = '/pages-core/error/404' // edit by 芋艿:调整 404 页面路径
export const ONLY_PC_PAGE = '/pages-core/error/only-pc' // edit by 芋艿:新增仅 PC 端访问提示页面路径
// TODO @芋艿:【优化】貌似 unibest 这个变量没用?!
export const LOGIN_PAGE_LIST = [