浏览代码

feat(admin): 添加表单设计器功能模块

- 新增 Designer.vue 组件实现表单设计界面
- 在路由配置中注册 /core/designer 路径
- 添加核心功能菜单项及权限控制
- 集成 fc-designer 组件提供可视化设计能力
- 配置表单设计器的页面标题和图标显示
runphp 3 周之前
父节点
当前提交
a3e3558945
共有 2 个文件被更改,包括 50 次插入0 次删除
  1. 39 0
      frontend/admin/index.js
  2. 11 0
      frontend/admin/views/Designer.vue

+ 39 - 0
frontend/admin/index.js

@@ -0,0 +1,39 @@
+export default {
+    routes: {
+        path: '/core',
+        name: 'CoreModule',
+        component: () => import('@/layout/index.vue'),
+        meta: {
+            title: '核心功能',
+            icon: 'Setting',
+            permission: 'core'
+        },
+        children: [
+            {
+                path: 'designer',
+                name: 'CoreDesigner',
+                component: () => import('./views/Designer.vue'),
+                meta: {
+                    title: '表单设计器',
+                    icon: 'Edit'
+                }
+            }
+        ]
+    },
+
+    menus: [
+        {
+            path: '/core',
+            title: '核心功能',
+            icon: 'Setting',
+            permission: 'core',
+            children: [
+                {
+                    path: '/core/designer',
+                    title: '表单设计器',
+                    icon: 'Edit'
+                }
+            ]
+        }
+    ]
+}

+ 11 - 0
frontend/admin/views/Designer.vue

@@ -0,0 +1,11 @@
+<script setup lang="ts">
+
+</script>
+
+<template>
+  <fc-designer ref="designer"/>
+</template>
+
+<style scoped lang="scss">
+
+</style>