From ce680615c793a6a22ddc5563b11fc0749f3d2850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 5 Oct 2023 09:14:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/zh_form.js | 6 ++- src/router/routes_form.js | 12 +++--- src/views/mdp/form/formDef/DesignRoute.vue | 2 +- src/views/mdp/form/formDef/Index.vue | 11 ++++- src/views/mdp/form/formField/Index.vue | 49 ++++++++++++++++++++-- 5 files changed, 67 insertions(+), 13 deletions(-) diff --git a/src/lang/zh_form.js b/src/lang/zh_form.js index 580be4c..6cbea82 100644 --- a/src/lang/zh_form.js +++ b/src/lang/zh_form.js @@ -2,8 +2,10 @@ export default { route: { dashboard: '首页', IntelligentForm:'智能表单', - FormDefAdd:'表单定义', + FormDesign:'表单设计', + FormDesign:'表单设计', FormDefMng:'表单管理', - FormDataMng:'表单数据' + FormDataMng:'表单数据', + FormDefIndex:'表单中心' } } diff --git a/src/router/routes_form.js b/src/router/routes_form.js index 605395d..0fd9c44 100644 --- a/src/router/routes_form.js +++ b/src/router/routes_form.js @@ -17,12 +17,12 @@ export default { //leaf: true,//只有一个节点 children: [ { - iconCls: 'fa el-icon-menu', path: 'index', component: _import("mdp/form/formDef/Index"), name: 'FormDefMng' ,meta:{ - title: 'IntelligentForm', - icon: 'capacity-form'} }, - { path: 'design/index/:expandId', component: _import("mdp/form/formDef/Index"), name: 'FormDefMng',meta:{title:'FormDefMng'} ,hidden:true }, - { path: 'design/:expandId', component: _import("mdp/form/formDef/DesignRoute"), name: 'FormDesign',meta:{title:'FormDefMng'} ,hidden:true }, - + iconCls: 'fa el-icon-star-off', path: 'index', component: _import("mdp/form/formDef/Index"), name: 'FormDefMng' ,meta:{ + title: 'FormDefIndex', } }, + { path: 'design/index/:expandId', component: _import("mdp/form/formDef/Index"), name: 'FormDefIndex',meta:{title:'FormDefIndex'} ,hidden:true }, + { path: 'design/:expandId', component: _import("mdp/form/formDef/DesignRoute"), name: 'FormDesignRoute',meta:{title:'FormDesign'} ,hidden:true }, + { iconCls: 'fa el-icon-circle-plus', path: 'create', component: _import("mdp/form/formDef/DesignRoute"), name: 'FormDesign',meta:{title:'FormDesign'} }, + { path: 'data/edit/:formId/:dataId', component: _import("mdp/form/formData/FormRoute"), name: '数据填报',meta:{title:'FormDataAddRoute'} ,hidden:true }, { path: 'data/add/:formId', component: _import("mdp/form/formData/FormRoute"), name: '数据填报',meta:{title:'FormDataAddRoute'} ,hidden:true }, diff --git a/src/views/mdp/form/formDef/DesignRoute.vue b/src/views/mdp/form/formDef/DesignRoute.vue index bfed71f..97dfac6 100644 --- a/src/views/mdp/form/formDef/DesignRoute.vue +++ b/src/views/mdp/form/formDef/DesignRoute.vue @@ -1,6 +1,6 @@ diff --git a/src/views/mdp/form/formDef/Index.vue b/src/views/mdp/form/formDef/Index.vue index 6d532db..4259b06 100644 --- a/src/views/mdp/form/formDef/Index.vue +++ b/src/views/mdp/form/formDef/Index.vue @@ -9,7 +9,7 @@ 查询 - + @@ -309,6 +309,15 @@ export default { openRoute(data){ this.$router.push({path:'/mdp/form/data/index/'+data.formId}) }, + + toDesignAdd(){ + if(!this.$route.params.expandId){ + this.$router.push({path:'/mdp/form/design/'}) + }else{ + this.$router.push({path:'/mdp/form/design/'+this.$route.params.expandId}) + } + + }, toDesign(formDef){ this.$router.push({path:'/mdp/form/design/'+formDef.id}) }, diff --git a/src/views/mdp/form/formField/Index.vue b/src/views/mdp/form/formField/Index.vue index ccda8a8..8a5444a 100644 --- a/src/views/mdp/form/formField/Index.vue +++ b/src/views/mdp/form/formField/Index.vue @@ -43,8 +43,8 @@ 数据库表 - AI输出 - API输出 + AI输出 + API输出 数据字典 @@ -64,13 +64,45 @@ 请输入数据库表名: - + 关闭 确定 + + + 请从Ai输出的表格配置信息中复制黏贴到此: + + + + 关闭 + 确定 + + + + + + + + + + + + + + + + 使用本系统登陆的token + + + + + 关闭 + 确定 + +