(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f29c868","chunk-6f29c868","chunk-e084231c","chunk-e084231c"],{"35ec":function(e,t,a){"use strict";a.r(t);var i=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)},n=[],r=a("d7b5"),s=a("c54a"),o=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(s["d"])(e)||this.initUI()},immediate:!0}},computed:{typeAndContext:function(){return this.btmType+this.context}},created:function(){if(Object(s["d"])(this.btmType)||Object(s["d"])(this.context))return this.$message.error("自定义组件配置的信息错误,请参考”?type=xxx&context=yyy¶m=zzz“这种形式。其中type是业务类型(或链接类型),context是UI上下文的名称"),!1},methods:{initUI:function(){var e=this;Object(o["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}}},l=c,h=(a("9dba"),a("2877")),d=Object(h["a"])(l,i,n,!1,null,"3d8ea6b3",null);t["default"]=d.exports},"3f55":function(e,t,a){},"4c9d":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"avue-dialog",attrs:{title:e.title,visible:e.visible,width:e.width,fullscreen:e.fullscreen,"append-to-body":!0,top:"0","destroy-on-close":!0,"close-on-click-modal":!1},on:{"update:visible":function(t){e.visible=t},close:e.dialogClose}},[e.paramVOS.context?t("ui-view",{key:"AddDialog-"+e.paramVOS.context,ref:"uiViewRef",style:e.fullscreen?"":"height:"+e.height,attrs:{btmType:e.paramVOS.type,context:e.paramVOS.context,inDialog:!0,canEdit:!0,actionType:e.type,sourceData:e.sourceData,dataStore:e.dataStore,paramVOS:e.paramVOS},on:{getFormData:e.getFormData}}):t("div",[e._v("这里是窗口显示内容")]),t("div",{staticClass:"dialog-footer avue-dialog__footer"},[t("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.save}},[e._v("保 存")]),t("el-button",{attrs:{size:"small"},on:{click:e.dialogClose}},[e._v("取 消")])],1)],1)},n=[],r=(a("6762"),a("2fdb"),a("35ec")),s=a("c54a"),o=a("140e"),c={name:"AddResourceFolderDialog",components:{uiView:r["default"]},props:{sourceData:{type:Object,default:{}},dataStore:{type:Array,default:[]},paramVOS:{type:Object,default:{}}},data:function(){return{type:"add",visible:!1,form:{}}},computed:{title:function(){return this.paramVOS.title||("add"==this.type?"添加":"修改")},width:function(){return Object(s["b"])(this.paramVOS.width)?"60%":this.paramVOS.width.includes("px")||this.paramVOS.width.includes("%")?this.paramVOS.width:this.paramVOS.width+"px"},height:function(){return Object(s["b"])(this.paramVOS.height)?"auto":this.paramVOS.height.includes("px")||this.paramVOS.height.includes("%")?this.paramVOS.height:this.paramVOS.height+"px"},fullscreen:function(){return!this.paramVOS.width&&!this.paramVOS.height&&!this.paramVOS.form}},created:function(){},watch:{},methods:{dialogClose:function(){this.visible=!1},save:function(){var e=this;if(this.paramVOS.savebeforeevent){var t=Object(o["parseEventByUrl"])(this.paramVOS.savebeforeevent,null,null,"doAction");if(t.params&&Object.assign(this.paramVOS,t.params),Object(s["b"])(t.jsPath))this.saveBforeHandle(this.paramVOS);else try{a("8ad9")("./".concat(t.jsPath,".js")).then((function(a){a[t.methodName]({paramVOS:e.paramVOS,dataStore:e.dataStore,sourceData:e.sourceData},e.saveHandle)}))}catch(i){this.$message.error("未找到保存前置事件执行js")}}else this.saveHandle()},saveHandle:function(){var e=this,t=this;if(t.$message({type:"success",message:t.paramVOS.successmsg||"保存成功!"}),t.saveCallback&&t.saveCallback(t.type),this.paramVOS.saveafterevent){var i=Object(o["parseEventByUrl"])(this.paramVOS.saveafterevent,null,null,"doAction");if(i.params&&Object.assign(this.paramVOS,i.params),Object(s["b"])(i.jsPath))this.saveAfterHandle(this.paramVOS);else try{a("8ad9")("./".concat(i.jsPath,".js")).then((function(t){t[i.methodName]({paramVOS:e.paramVOS,dataStore:e.dataStore,sourceData:e.sourceData})}))}catch(n){this.$message.error("未找到保存后置事件执行js")}}t.dialogClose()},saveBforeHandle:function(e){this.$message.info("执行保存前置事件")},saveAfterHandle:function(e){this.$message.info("保存后置事件执行")},getFormData:function(e){this.form=e}}},l=c,h=a("2877"),d=Object(h["a"])(l,i,n,!1,null,"ee083aec",null);t["default"]=d.exports},"8ad9":function(e,t,a){var i={"./AddResourceFolder.js":["288e","chunk-2d0b34e9"]};function n(e){if(!a.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],n=t[0];return a.e(t[1]).then((function(){return a(n)}))}n.keys=function(){return Object.keys(i)},n.id="8ad9",e.exports=n},"9dba":function(e,t,a){"use strict";a("3f55")}}]);
|