ludc
2024-12-30 9c0f8e3576aecba48aa00bd4347e6dae58ceb2ae
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e084231c","chunk-e084231c"],{"35ec":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"calc(100% - 4px)"}},[e.uiDefineVO.northAreas&&e.uiDefineVO.northAreas.length>0?t("el-header",[t("UIContentArea",{key:"northArea-"+e.uiDefineVO.oid,attrs:{uiBtmType:e.btmType,uiContext:e.context,areasData:e.uiDefineVO.northAreas,dataStore:e.checkedData.northAreaInDialog.data,paramVOS:e.paramVOS,inDialog:e.inDialog,canEdit:e.canEdit,actionType:e.actionType,sourceData:e.sourceData,sourceBtmType:e.btmType,"areas-name":"northAreaInDialog"},on:{setData:e.setData,setDataStore:e.setDataStore}})],1):e._e(),t("el-container",{style:"height: "+(e.uiDefineVO.northAreas&&e.uiDefineVO.northAreas.length>0?"calc(100% - 70px)":"100%")},[e.uiDefineVO.westAreas&&e.uiDefineVO.westAreas.length>0?t("el-aside",{attrs:{width:"table"==e.uiDefineVO.westAreas[0].componentVOs[0].uiComponentType||"TreeTable"==e.uiDefineVO.westAreas[0].componentVOs[0].uiComponentType?"420px":"320px",height:"100%"}},[t("UIContentArea",{key:"westArea-"+e.uiDefineVO.oid,attrs:{uiBtmType:e.btmType,uiContext:e.context,areasData:e.uiDefineVO.westAreas,dataStore:e.checkedData.westAreaInDialog.data,paramVOS:e.paramVOS,inDialog:e.inDialog,canEdit:e.canEdit,actionType:e.actionType,sourceData:e.sourceData,sourceBtmType:e.btmType,"areas-name":"westAreaInDialog",cradStyle:""},on:{setData:e.setData,setDataStore:e.setDataStore}})],1):e._e(),t("el-container",{staticStyle:{height:"100%",display:"block"}},[e.uiDefineVO.centerAreas&&e.uiDefineVO.centerAreas.length>0?t("el-main",{style:"min-height: 200px;height: "+e.centerHeight},[t("UIContentArea",{key:"centerArea-"+e.uiDefineVO.oid,attrs:{uiBtmType:e.btmType,uiContext:e.context,areasData:e.uiDefineVO.centerAreas,dataStore:e.checkedData.centerAreaInDialog.data,paramVOS:e.paramVOS,inDialog:e.inDialog,canEdit:e.canEdit,actionType:e.actionType,sourceData:e.uiDefineVO.westAreas&&e.uiDefineVO.westAreas.length>0?e.checkedData.westAreaInDialog.data[e.checkedData.westAreaInDialog.data.length-1]:e.sourceData,sourceBtmType:e.uiDefineVO.westAreas&&e.uiDefineVO.westAreas.length>0?e.checkedData.westAreaInDialog.DefineVOBtmType:e.btmType,"areas-name":"centerAreaInDialog",cradStyle:""},on:{setData:e.setData,setDataStore:e.setDataStore}})],1):e._e(),e.uiDefineVO.southAreas&&e.uiDefineVO.southAreas.length>0?t("el-footer",{staticStyle:{"min-height":"100px"},attrs:{height:"35%"}},[t("UIContentArea",{key:"southArea-"+e.uiDefineVO.oid,attrs:{uiBtmType:e.btmType,uiContext:e.context,areasData:e.uiDefineVO.southAreas,dataStore:e.checkedData.southAreaInDialog.data,paramVOS:e.paramVOS,inDialog:e.inDialog,canEdit:e.canEdit,actionType:e.actionType,sourceData:e.checkedData.centerAreaInDialog.data[e.checkedData.centerAreaInDialog.data.length-1],sourceBtmType:e.checkedData.centerAreaInDialog.DefineVOBtmType,"areas-name":"southAreaInDialog",cradStyle:""},on:{setData:e.setData,setDataStore:e.setDataStore}})],1):e._e()],1)],1)],1)},i=[],r=a("d7b5"),o=a("c54a"),s=a("6efd"),c={name:"UIContentViewerInDialog",components:{UIContentArea:r["default"]},props:{btmType:{type:String},context:{type:String},inDialog:{type:Boolean,default:!1},canEdit:{type:Boolean,default:!1},actionType:{default:"add"},sourceData:{type:Object,default:{}},dataStore:{type:Array,default:[]},paramVOS:{type:Object,default:{}}},data:function(){return{checkedData:{northAreaInDialog:{DefineVOBtmType:"",data:[{}]},westAreaInDialog:{DefineVOBtmType:"",data:[{}]},centerAreaInDialog:{DefineVOBtmType:"",data:[{}]},southAreaInDialog:{DefineVOBtmType:"",data:[{}]}},data:{northAreaInDialog:{type:"",DefineVO:null,data:null},westAreaInDialog:{type:"",DefineVO:null,data:null},centerAreaInDialog:{type:"",DefineVO:null,data:null},southAreaInDialog:{type:"",DefineVO:null,data:null}},uiDefineVO:{},centerHeight:"100%"}},watch:{typeAndContext:{handler:function(e,t){t==e||Object(o["d"])(e)||this.initUI()},immediate:!0}},computed:{typeAndContext:function(){return this.btmType+this.context}},created:function(){if(Object(o["d"])(this.btmType)||Object(o["d"])(this.context))return this.$message.error("自定义组件配置的信息错误,请参考”?type=xxx&context=yyy&param=zzz“这种形式。其中type是业务类型(或链接类型),context是UI上下文的名称"),!1},methods:{initUI:function(){var e=this;Object(s["getUIContext"])({btmType:this.btmType,id:this.context}).then((function(t){e.uiDefineVO=t.data.obj,e.initContext()}))},initContext:function(){this.uiDefineVO.southAreas&&this.uiDefineVO.southAreas.length>0?this.centerHeight="65%":this.centerHeight="100%",this.uiDefineVO.westAreas&&this.uiDefineVO.westAreas.length>0?this.checkedData.westAreaInDialog.data=this.dataStore:this.uiDefineVO.centerAreas&&this.uiDefineVO.centerAreas.length>0?this.checkedData.centerAreaInDialog.data=this.dataStore:this.checkedData.southAreaInDialog.data=this.dataStore},setData:function(e){this.data[e.area].DefineVO=e.currentDefineVO,this.data[e.area].data=e.data,this.data[e.area].type=e.type},setDataStore:function(e){this.checkedData[e.area].DefineVOBtmType=e.btmType,this.checkedData[e.area].data=e.dataStore}}},D=c,h=(a("9dba"),a("2877")),u=Object(h["a"])(D,n,i,!1,null,"3d8ea6b3",null);t["default"]=u.exports},"3f55":function(e,t,a){},"9dba":function(e,t,a){"use strict";a("3f55")}}]);