Преглед на файлове

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

YunaiV преди 4 месеца
родител
ревизия
512fe664df
променени са 3 файла, в които са добавени 22 реда и са изтрити 5 реда
  1. 0 1
      src/pages/index/components/menu-grid.vue
  2. 21 4
      src/pages/index/index.ts
  3. 1 0
      src/router/config.ts

+ 0 - 1
src/pages/index/components/menu-grid.vue

@@ -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;

+ 21 - 4
src/pages/index/index.ts

@@ -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',
+      },
     ],
   },
 ]

+ 1 - 0
src/router/config.ts

@@ -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 = [