| | |
| | | :inDialog="inDialog" |
| | | :componentVO="componentVO" |
| | | :sourceData="sourceData" |
| | | :dataStore="dataStore" |
| | | :areasName="areasName" |
| | | :paramVOS="paramVOS" |
| | | @setDataStore="setDataStore" |
| | | :isShow="isShow"> |
| | | |
| | | </dynamic-table> |
| | | <dynamicTreeTable v-else-if="componentVO.uiComponentType=='TreeTable'" |
| | | :key="areasName+'table-'+componentVO.oid" |
| | | :inDialog="inDialog" |
| | | :componentVO="componentVO" |
| | | :sourceData="sourceData" |
| | | :dataStore="dataStore" |
| | | :areasName="areasName" |
| | | :paramVOS="paramVOS" |
| | | @setDataStore="setDataStore" |
| | | :isShow="isShow"> |
| | | |
| | | </dynamicTreeTable> |
| | | <dynamic-form v-else-if="componentVO.uiComponentType=='form'" |
| | | :key="areasName+'form-'+componentVO.oid" |
| | | :inDialog="inDialog" |
| | | :componentVO="componentVO" |
| | | :sourceData="sourceData" |
| | | :dataStore="dataStore" |
| | | :areasName="areasName" |
| | | :paramVOS="paramVOS" |
| | | @setDataStore="setDataStore" |
| | | :isShow="isShow"> |
| | | |
| | | </dynamic-form> |
| | |
| | | :inDialog="inDialog" |
| | | :componentVO="componentVO" |
| | | :sourceData="sourceData" |
| | | :dataStore="dataStore" |
| | | :areasName="areasName" |
| | | :paramVOS="paramVOS" |
| | | @setDataStore="setDataStore" |
| | | :isShow="isShow"> |
| | | </dynamic-tree> |
| | | <dynamic-custom v-else-if="componentVO.uiComponentType=='custom'" :inDialog="inDialog" |
| | | <dynamic-custom v-else-if="componentVO.uiComponentType=='customer'" :inDialog="inDialog" |
| | | :key="areasName+'custom-'+componentVO.oid" |
| | | :componentVO="componentVO" |
| | | :sourceData="sourceData" |
| | | :dataStore="dataStore" |
| | | :areasName="areasName" |
| | | :paramVOS="paramVOS" |
| | | @setDataStore="setDataStore" |
| | | :isShow="isShow"> |
| | | |
| | | </dynamic-custom> |
| | |
| | | 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:{ |
| | | componentVO:{ |
| | | type:Object, |
| | |
| | | type:Object, |
| | | default: {} |
| | | }, |
| | | dataStore:{ |
| | | //弹窗时按钮所属区域选中数据 |
| | | type:Array, |
| | | default: [] |
| | | }, |
| | | paramVOS:{ |
| | | type:Object, |
| | | default: {} |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | }, |
| | | methods:{ |
| | | setDataStore(value) { |
| | | this.$emit("setDataStore", value); |
| | | this.dataStore = value.dataStore; |
| | | } |
| | | } |
| | | } |
| | | </script> |