| | |
| | | <template> |
| | | <div> |
| | | <dynamic-table v-if="componentVO.uiComponentType=='table'" :componentVO="componentVO" :sourceData="sourceData"></dynamic-table> |
| | | <dynamic-form v-else-if="componentVO.uiComponentType=='form'" :componentVO="componentVO" :sourceData="sourceData"></dynamic-form> |
| | | <dynamic-tree v-else-if="componentVO.uiComponentType=='tree'" :componentVO="componentVO" :sourceData="sourceData"></dynamic-tree> |
| | | <dynamic-custom v-else-if="componentVO.uiComponentType=='custom'" :componentVO="componentVO" :sourceData="sourceData"></dynamic-custom> |
| | | </div> |
| | | <dynamic-table v-if="componentVO.uiComponentType=='table'" |
| | | :key="areasName+'table-'+componentVO.oid" |
| | | :inDialog="inDialog" |
| | | :componentVO="componentVO" |
| | | :sourceData="sourceData" |
| | | :areasName="areasName" |
| | | :paramVOS="paramVOS" |
| | | :isShow="isShow"> |
| | | |
| | | </dynamic-table> |
| | | <dynamic-form v-else-if="componentVO.uiComponentType=='form'" |
| | | :key="areasName+'form-'+componentVO.oid" |
| | | :inDialog="inDialog" |
| | | :componentVO="componentVO" |
| | | :sourceData="sourceData" |
| | | :areasName="areasName" |
| | | :paramVOS="paramVOS" |
| | | :isShow="isShow"> |
| | | |
| | | </dynamic-form> |
| | | <dynamic-tree v-else-if="componentVO.uiComponentType=='tree'" |
| | | :key="areasName+'tree-'+componentVO.oid" |
| | | :inDialog="inDialog" |
| | | :componentVO="componentVO" |
| | | :sourceData="sourceData" |
| | | :areasName="areasName" |
| | | :paramVOS="paramVOS" |
| | | :isShow="isShow"> |
| | | </dynamic-tree> |
| | | <dynamic-custom v-else-if="componentVO.uiComponentType=='customer'" :inDialog="inDialog" |
| | | :key="areasName+'custom-'+componentVO.oid" |
| | | :componentVO="componentVO" |
| | | :sourceData="sourceData" |
| | | :areasName="areasName" |
| | | :paramVOS="paramVOS" |
| | | :isShow="isShow"> |
| | | |
| | | </dynamic-custom> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | areasName:{ |
| | | type:String, |
| | | default:'' |
| | | }, |
| | | sourceData:{ |
| | | //菜单源数据或者弹窗时按钮所属区域的上一区域选中数据 |
| | | type:Object, |
| | | default: {} |
| | | }, |
| | | dataStore:{ |
| | | //弹窗时按钮所属区域选中数据 |
| | | type:Array, |
| | | default: [] |
| | | }, |
| | | paramVOS:{ |
| | | type:Object, |
| | | default: {} |
| | | } |
| | | }, |
| | | isShow: { |
| | | //所在区域是否已显示,针对tab和collapse |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | }, |
| | | created() { |
| | | } |
| | | } |
| | | </script> |
| | | |