| | |
| | | <template> |
| | | <!--UI上下文的展示器--> |
| | | <div style="height:calc(100% - 4px);min-width:800px"> |
| | | <div style="height:calc(100% - 4px);min-width:1200px"> |
| | | <el-header v-if="uiDefineVO.northAreas && uiDefineVO.northAreas.length>0"> |
| | | <UIContentArea :key="'northArea-'+uiDefineVO.oid" areas-name="northArea" |
| | | <UIContentArea :key="'northArea-'+uiDefineVO.oid" areas-name="northAreaInDialog" |
| | | :areasData="uiDefineVO.northAreas" |
| | | :inDialog="inDialog" |
| | | :sourceData="sourceData" |
| | | :dataStore="dataStore" |
| | | :paramVOS="paramVOS"> |
| | | :dataStore="checkedData.northAreaInDialog[0]" |
| | | :paramVOS="paramVOS" |
| | | @setDataStore="setDataStore"> |
| | | </UIContentArea> |
| | | </el-header> |
| | | <el-container :style="'height: '+(uiDefineVO.northAreas && uiDefineVO.northAreas.length>0?'calc(100% - 70px)':'100%')"> |
| | | <el-aside v-if="uiDefineVO.westAreas && uiDefineVO.westAreas.length>0" :width="uiDefineVO.westAreas[0].componentVOs[0].uiComponentType=='table' || uiDefineVO.westAreas[0].componentVOs[0].uiComponentType=='TreeTable'?'420px':'320px'" height="100%"> |
| | | <UIContentArea :key="'westArea-'+uiDefineVO.oid" areas-name="westArea" |
| | | <UIContentArea :key="'westArea-'+uiDefineVO.oid" areas-name="westAreaInDialog" |
| | | cradStyle="" |
| | | :areasData="uiDefineVO.westAreas" |
| | | :inDialog="inDialog" |
| | | :sourceData="sourceData" |
| | | :dataStore="dataStore" |
| | | :paramVOS="paramVOS"> |
| | | :dataStore="checkedData.westAreaInDialog[0]" |
| | | :paramVOS="paramVOS" |
| | | @setDataStore="setDataStore"> |
| | | </UIContentArea> |
| | | </el-aside> |
| | | <el-container style="height: 100%"> |
| | | <el-main v-if="uiDefineVO.centerAreas && uiDefineVO.centerAreas.length>0" :style="'height: '+centerHeight"> |
| | | <UIContentArea :key="'centerArea-'+uiDefineVO.oid" areas-name="centerArea" |
| | | <UIContentArea :key="'centerArea-'+uiDefineVO.oid" areas-name="centerAreaInDialog" |
| | | cradStyle="" |
| | | :areasData="uiDefineVO.centerAreas" |
| | | :inDialog="inDialog" |
| | | :sourceData="checkedData.westAreas[0]" |
| | | :dataStore="checkedData.centerAreas[0]" |
| | | :paramVOS="paramVOS"> |
| | | :sourceData="checkedData.westAreaInDialog[0]" |
| | | :dataStore="checkedData.centerAreaInDialog[0]" |
| | | :paramVOS="paramVOS" |
| | | @setDataStore="setDataStore"> |
| | | </UIContentArea> |
| | | </el-main> |
| | | <el-footer v-if="uiDefineVO.southAreas && uiDefineVO.southAreas.length>0" height="300px" style="max-height: 300px"> |
| | | <UIContentArea :key="'southArea-'+uiDefineVO.oid" areas-name="southArea" |
| | | <el-footer v-if="uiDefineVO.southAreas && uiDefineVO.southAreas.length>0" height="35%" style="max-height: 300px"> |
| | | <UIContentArea :key="'southArea-'+uiDefineVO.oid" areas-name="southAreaInDialog" |
| | | cradStyle="" |
| | | :areasData="uiDefineVO.southAreas" |
| | | :inDialog="inDialog" |
| | | :sourceData="checkedData.centerAreas[0]" |
| | | :dataStore="checkedData.southAreas[0]" |
| | | :paramVOS="paramVOS"> |
| | | :sourceData="checkedData.centerAreaInDialog[0]" |
| | | :dataStore="checkedData.southAreaInDialog[0]" |
| | | :paramVOS="paramVOS" |
| | | @setDataStore="setDataStore"> |
| | | </UIContentArea> |
| | | </el-footer> |
| | | </el-container> |
| | |
| | | paramVOS:{ |
| | | type:Object, |
| | | default: {} |
| | | }, |
| | | customOptions:{ |
| | | type:Object, |
| | | default: {} |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | btmType:'',//业务类型(或链接类型) |
| | | content:'',//UI上下文的名称 |
| | | btmType:this.customOptions.btmType,//业务类型(或链接类型) |
| | | content:this.customOptions.content,//UI上下文的名称 |
| | | checkedData:{ |
| | | //各区域选中数据 |
| | | westAreas:[], |
| | | centerAreas:[], |
| | | southAreas:[] |
| | | northAreaInDialog:[], |
| | | westAreaInDialog:[], |
| | | centerAreaInDialog:[], |
| | | southAreaInDialog:[] |
| | | }, |
| | | uiDefineVO: uiDefineVOData, |
| | | centerHeight:'100%' |
| | |
| | | initContent(){ |
| | | |
| | | }, |
| | | setDataStore(value) { |
| | | this.checkedData[value.area] = value.dataStore; |
| | | } |
| | | } |
| | | } |
| | | </script> |