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
+
+
+
+
+ 关闭
+ 确定
+
+
{
@@ -140,6 +172,14 @@
}
return {
tableName:'',
+ aiTableInfosStr:'',
+ apiParams:{
+ url:'',
+ method:'',
+ params:'',
+ header:'Authorization:Bearer jwtTokenXXadkfdfdadfd',
+ useMyLoginToken:true,
+ },
filters:{
users:[]
},
@@ -309,6 +349,9 @@
this.$mdp.getTableInfos({tableName:this.tableName}).then(res=>{
})
+ },
+ initFormFieldsByAiTable(){
+
},
initFormFieldsByItemCode(item){