ludc
2025-01-02 63c4ba75fe0b27980101cf8178df113f0a6852c6
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6396f4ba","chunk-6396f4ba"],{5954: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)","min-width":"1200px"}},[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.northArea.data,inDialog:e.inDialog,sourceData:e.sourceData,sourceBtmType:e.btmType,"areas-name":"northArea"},on:{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.westArea.data,inDialog:e.inDialog,sourceData:e.sourceData,sourceBtmType:e.btmType,"areas-name":"westArea",cradStyle:""},on:{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: 300px;height: "+e.centerHeight},[t("UIContentArea",{key:"centerArea-"+e.uiDefineVO.oid,attrs:{uiBtmType:e.btmType,uiContext:e.context,areasData:e.uiDefineVO.centerAreas,dataStore:e.checkedData.centerArea.data,inDialog:e.inDialog,sourceData:e.uiDefineVO.westAreas&&e.uiDefineVO.westAreas.length>0?e.checkedData.westArea.data[e.checkedData.westArea.data.length-1]:e.sourceData,sourceBtmType:e.uiDefineVO.westAreas&&e.uiDefineVO.westAreas.length>0?e.checkedData.westArea.DefineVOBtmType:e.btmType,"areas-name":"centerArea",cradStyle:""},on:{setDataStore:e.setDataStore}})],1):e._e(),e.uiDefineVO.southAreas&&e.uiDefineVO.southAreas.length>0?t("el-footer",{staticStyle:{"min-height":"150px"},attrs:{height:"35%"}},[t("UIContentArea",{key:"southArea-"+e.uiDefineVO.oid,attrs:{uiBtmType:e.btmType,uiContext:e.context,areasData:e.uiDefineVO.southAreas,dataStore:e.checkedData.southArea.data,inDialog:e.inDialog,sourceData:e.checkedData.centerArea.data[e.checkedData.centerArea.data.length-1],sourceBtmType:e.checkedData.centerArea.DefineVOBtmType,"areas-name":"southArea",cradStyle:""},on:{setDataStore:e.setDataStore}})],1):e._e()],1)],1)],1)},i=[],r=a("c54a"),o=a("d7b5"),s=a("6efd"),c={name:"UIContentViewer",components:{UIContentArea:o["default"]},data:function(){return{btmType:"",context:"",checkedData:{northArea:{DefineVOBtmType:"",data:[{}]},westArea:{DefineVOBtmType:"",data:[{}]},centerArea:{DefineVOBtmType:"",data:[{}]},southArea:{DefineVOBtmType:"",data:[{}]}},uiDefineVO:{},centerHeight:"100%",inDialog:!1,sourceData:{}}},watch:{$route:function(e,t){this.getTheParameters(),this.initUI()}},computed:{typeAndContext:function(){return this.btmType+this.context}},created:function(){if(console.log("route",this.$route),Object(r["d"])(this.$route.query.type)||Object(r["d"])(this.$route.query.context)&&Object(r["d"])(this.$route.query.content))return this.$message.error("配置的信息错误,请参考“?type=xxx&context=yyy&param=zzz”这种形式。其中type是业务类型(或链接类型),context是UI上下文的名称"),!1;this.getTheParameters(),this.initUI()},methods:{getTheParameters:function(){this.btmType=this.$route.query.type,this.context=this.$route.query.context||this.$route.query.content,this.sourceData=this.$route.query},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%"},setDataStore:function(e){this.checkedData[e.area].DefineVOBtmType=e.btmType,this.checkedData[e.area].data=e.dataStore}}},u=c,h=(a("c79b"),a("2877")),D=Object(h["a"])(u,n,i,!1,null,"22c5f74f",null);t["default"]=D.exports},c79b:function(e,t,a){"use strict";a("d874")},d874:function(e,t,a){}}]);