From f75b2630394e8f570f1805989a30c554e776cd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Fri, 20 Oct 2023 02:26:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96extInfos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mdp-ui-ext/mdp-expand/FormData.vue | 49 +++++++------------ src/router/routes_lcode.js | 1 + src/views/mdp/lcode/formData/Index.vue | 47 +++++++++++++----- src/views/mdp/lcode/formDef/Index.vue | 4 +- 4 files changed, 56 insertions(+), 45 deletions(-) diff --git a/src/components/mdp-ui-ext/mdp-expand/FormData.vue b/src/components/mdp-ui-ext/mdp-expand/FormData.vue index bcbee5e..eeb3826 100644 --- a/src/components/mdp-ui-ext/mdp-expand/FormData.vue +++ b/src/components/mdp-ui-ext/mdp-expand/FormData.vue @@ -3,8 +3,9 @@ - - + + + @@ -14,34 +15,7 @@ 关闭 提交 - - - - - - - - - + @@ -70,9 +44,22 @@ import treeTool from '@/components/mdp-ui/js/treeTool.js' this.initFieldQx(k) }) return formFields - } + }, + + isExtInfosCpd(){ + return this.formDef?this.formDef.dataType=='2':false + }, + camelDataField(){ + if(this.formDef){ + return this.$mdp.toCamel(this.formDef.dataField)+"2" + }else{ + return 'extInfos2' + } + + }, }, props:{ + visible:{type:Boolean,default:false}, value:{type:Object,default:null}, formDef:{type:Object,default:null}, diff --git a/src/router/routes_lcode.js b/src/router/routes_lcode.js index ebe2c72..a4f9e2a 100644 --- a/src/router/routes_lcode.js +++ b/src/router/routes_lcode.js @@ -27,6 +27,7 @@ export default { { path: 'data/add/:formId', component: _import("mdp/lcode/formData/FormRoute"), name: '数据填报',meta:{title:'FormDataAddRoute'} ,hidden:true }, { path: 'data/index/:formId', component: _import("mdp/lcode/formData/Index"), name: '智能表单数据管理',meta:{title:'FormDataMng' } ,hidden:true }, + { path: 'data/index/:formId/:dataType/:dataField', component: _import("mdp/lcode/formData/Index"), name: '智能表单数据管理',meta:{title:'FormDataMng' } ,hidden:true }, { path: 'data/mng', component: _import("mdp/lcode/formData/Index"), name: 'FormDataMng', meta:{title:'FormDataMng'},hidden:true } ] diff --git a/src/views/mdp/lcode/formData/Index.vue b/src/views/mdp/lcode/formData/Index.vue index e88b731..85ef493 100644 --- a/src/views/mdp/lcode/formData/Index.vue +++ b/src/views/mdp/lcode/formData/Index.vue @@ -55,10 +55,16 @@ - - @@ -302,7 +302,7 @@ export default { } }, openRoute(data){ - this.$router.push({path:'/mdp/lcode/data/index/'+data.formId}) + this.$router.push({path:`/mdp/lcode/data/index/${data.formId}/${data.dataType}/${data.dataField}`}) }, toDesignAdd(){