wangting
2024-04-15 81bb118e00f8d5ee081795d142e539de50953518
Source/ProjectWeb/src/components/dynamic-components/index.vue
@@ -1,9 +1,12 @@
<template>
  <dynamic-table v-if="componentVO.uiComponentType=='table'"
                 :uiBtmType="uiBtmType"
                 :uiContext="uiContext"
                 :key="areasName+'table-'+componentVO.oid"
                 :inDialog="inDialog"
                 :componentVO="componentVO"
                 :sourceData="sourceData"
                 :sourceBtmType="sourceBtmType"
                 :dataStore="dataStore"
                 :areasName="areasName"
                 :paramVOS="paramVOS"
@@ -12,22 +15,27 @@
  </dynamic-table>
  <dynamicTreeTable v-else-if="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">
  </dynamicTreeTable>
  <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"
@@ -36,20 +44,27 @@
  </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"
@@ -69,6 +84,14 @@
  name: "dynamicIndex",
  components:{dynamicCustom, dynamicTree, dynamicForm, dynamicTable,dynamicTreeTable  },
  props:{
    //ui上下文的业务类型(或链接类型)
    uiBtmType: {
      type: String
    },
    //ui上下文
    uiContext:{
      type: String
    },
    componentVO:{
      type:Object,
      default: {}
@@ -86,6 +109,10 @@
      type:Object,
      default: {}
    },
    //上一区域业务类型
    sourceBtmType:{
      type: String
    },
    dataStore:{
      //弹窗时按钮所属区域选中数据
      type:Array,