From 8057dff36eb3ba3e91fba4ff39d4faed77da7f49 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期二, 23 四月 2024 11:40:01 +0800 Subject: [PATCH] 1、主要增加了本地启动web后端功能。 --- Source/ProjectWeb/src/components/dynamic-components/index.vue | 51 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 48 insertions(+), 3 deletions(-) diff --git a/Source/ProjectWeb/src/components/dynamic-components/index.vue b/Source/ProjectWeb/src/components/dynamic-components/index.vue index 58df815..3ecb0e5 100644 --- a/Source/ProjectWeb/src/components/dynamic-components/index.vue +++ b/Source/ProjectWeb/src/components/dynamic-components/index.vue @@ -1,39 +1,60 @@ <template> - <dynamic-table v-if="componentVO.uiComponentType=='table'" + <dynamic-table v-if="componentVO.uiComponentType=='table' || componentVO.uiComponentType=='TreeTable'" + :uiBtmType="uiBtmType" + :uiContext="uiContext" :key="areasName+'table-'+componentVO.oid" :inDialog="inDialog" :componentVO="componentVO" :sourceData="sourceData" + :sourceBtmType="sourceBtmType" + :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" + @setDataStore="setDataStore" :isShow="isShow"> </dynamic-table> <dynamic-form v-else-if="componentVO.uiComponentType=='form'" + :uiBtmType="uiBtmType" + :uiContext="uiContext" :key="areasName+'form-'+componentVO.oid" :inDialog="inDialog" :componentVO="componentVO" :sourceData="sourceData" + :sourceBtmType="sourceBtmType" + :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" + @setDataStore="setDataStore" :isShow="isShow"> </dynamic-form> <dynamic-tree v-else-if="componentVO.uiComponentType=='tree'" + :uiBtmType="uiBtmType" + :uiContext="uiContext" :key="areasName+'tree-'+componentVO.oid" :inDialog="inDialog" :componentVO="componentVO" :sourceData="sourceData" + :sourceBtmType="sourceBtmType" + :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" + @setDataStore="setDataStore" :isShow="isShow"> </dynamic-tree> - <dynamic-custom v-else-if="componentVO.uiComponentType=='customer'" :inDialog="inDialog" + <dynamic-custom v-else-if="componentVO.uiComponentType=='customer'" + :uiBtmType="uiBtmType" + :uiContext="uiContext" + :inDialog="inDialog" :key="areasName+'custom-'+componentVO.oid" :componentVO="componentVO" :sourceData="sourceData" + :sourceBtmType="sourceBtmType" + :dataStore="dataStore" :areasName="areasName" :paramVOS="paramVOS" + @setDataStore="setDataStore" :isShow="isShow"> </dynamic-custom> @@ -44,10 +65,19 @@ import dynamicForm from "@/components/dynamic-components/dynamic-form" import dynamicTree from "@/components/dynamic-components/dynamic-tree" import dynamicCustom from "@/components/dynamic-components/dynamic-custom" +import dynamicTreeTable from "@/components/dynamic-components/dynamic-TreeTable" export default { name: "dynamicIndex", - components:{dynamicCustom, dynamicTree, dynamicForm, dynamicTable}, + components:{dynamicCustom, dynamicTree, dynamicForm, dynamicTable,dynamicTreeTable }, props:{ + //ui涓婁笅鏂囩殑涓氬姟绫诲瀷锛堟垨閾炬帴绫诲瀷锛� + uiBtmType: { + type: String + }, + //ui涓婁笅鏂� + uiContext:{ + type: String + }, componentVO:{ type:Object, default: {} @@ -65,6 +95,15 @@ type:Object, default: {} }, + //涓婁竴鍖哄煙涓氬姟绫诲瀷 + sourceBtmType:{ + type: String + }, + dataStore:{ + //寮圭獥鏃舵寜閽墍灞炲尯鍩熼�変腑鏁版嵁 + type:Array, + default: [] + }, paramVOS:{ type:Object, default: {} @@ -76,6 +115,12 @@ }, }, created() { + }, + methods:{ + setDataStore(value) { + this.$emit("setDataStore", value); + this.dataStore = value.dataStore; + } } } </script> -- Gitblit v1.9.3