ludc
2024-12-30 9c0f8e3576aecba48aa00bd4347e6dae58ceb2ae
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7fdc0388","chunk-6f29c868","chunk-6f29c868","chunk-e084231c","chunk-e084231c","chunk-2d0b34e9"],{"288e":function(e,t,a){"use strict";a.r(t),a.d(t,"doAction",(function(){return s})),a.d(t,"doAdd",(function(){return c})),a.d(t,"doBefore",(function(){return l})),a.d(t,"doAfter",(function(){return u}));var n=a("140e"),i=a("8bbf"),r=a.n(i),o=a("4c9d"),s=function(e,t){e.sourceData=e.sourceData||{},Object(n["callPreEvent"])(e,l,(function(e){c(e,(function(){Object(n["callPostEvent"])(e,u,t)}))}))},c=function(e,t){var a=e.paramVOS;if(!a["type"]&&a["context"])return r.a.prototype.$message.error("展示UI上下文时必须配置业务类型type"),!1;var n=r.a.extend(o["default"]),i=new n;i.sourceData=e.sourceData,i.dataStore=e.dataStore,i.paramVOS=a,i.type="add",i.dialogClose=function(){s.visible=!1,document.body.removeChild(s.$el),i.$destroy(),i=null},t&&(i.saveCallback=t);var s=i.$mount();document.body.appendChild(s.$el),i.visible=!0},l=function(e,t){console.log("执行前置事件"),r.a.prototype.$message.success("执行前置事件"),t&&t(e)},u=function(e,t){if(console.log("执行后置事件"),r.a.prototype.$message.success("执行后置事件"),t){var a="add";t(a)}}},"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}}},l=c,u=(a("9dba"),a("2877")),d=Object(u["a"])(l,n,i,!1,null,"3d8ea6b3",null);t["default"]=d.exports},"3f55":function(e,t,a){},"4c9d":function(e,t,a){"use strict";a.r(t);var n=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)},i=[],r=(a("6762"),a("2fdb"),a("35ec")),o=a("c54a"),s=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(o["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(o["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(s["parseEventByUrl"])(this.paramVOS.savebeforeevent,null,null,"doAction");if(t.params&&Object.assign(this.paramVOS,t.params),Object(o["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(n){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 n=Object(s["parseEventByUrl"])(this.paramVOS.saveafterevent,null,null,"doAction");if(n.params&&Object.assign(this.paramVOS,n.params),Object(o["b"])(n.jsPath))this.saveAfterHandle(this.paramVOS);else try{a("8ad9")("./".concat(n.jsPath,".js")).then((function(t){t[n.methodName]({paramVOS:e.paramVOS,dataStore:e.dataStore,sourceData:e.sourceData})}))}catch(i){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,u=a("2877"),d=Object(u["a"])(l,n,i,!1,null,"ee083aec",null);t["default"]=d.exports},"8ad9":function(e,t,a){var n={"./AddResourceFolder.js":["288e","chunk-2d0b34e9"]};function i(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],i=t[0];return a.e(t[1]).then((function(){return a(i)}))}i.keys=function(){return Object.keys(n)},i.id="8ad9",e.exports=i},"9dba":function(e,t,a){"use strict";a("3f55")}}]);