ludc
2025-01-16 5203081b68e3a8dc139d1807b2f8774e4a00a82a
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f50e4ed","chunk-5f50e4ed"],{"4c9d":function(e,a,t){"use strict";t.r(a);var s=function(){var e=this,a=e._self._c;return a("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(a){e.visible=a},close:e.dialogClose}},[e.paramVOS.context?a("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}}):a("div",[e._v("这里是窗口显示内容")]),a("div",{staticClass:"dialog-footer avue-dialog__footer"},[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.save}},[e._v("保 存")]),a("el-button",{attrs:{size:"small"},on:{click:e.dialogClose}},[e._v("取 消")])],1)],1)},i=[],r=(t("6762"),t("2fdb"),t("35ec")),n=t("c54a"),o=t("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(n["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(n["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 a=Object(o["parseEventByUrl"])(this.paramVOS.savebeforeevent,null,null,"doAction");if(a.params&&Object.assign(this.paramVOS,a.params),Object(n["b"])(a.jsPath))this.saveBforeHandle(this.paramVOS);else try{t("8ad9")("./".concat(a.jsPath,".js")).then((function(t){t[a.methodName]({paramVOS:e.paramVOS,dataStore:e.dataStore,sourceData:e.sourceData},e.saveHandle)}))}catch(s){this.$message.error("未找到保存前置事件执行js")}}else this.saveHandle()},saveHandle:function(){var e=this,a=this;if(a.$message({type:"success",message:a.paramVOS.successmsg||"保存成功!"}),a.saveCallback&&a.saveCallback(a.type),this.paramVOS.saveafterevent){var s=Object(o["parseEventByUrl"])(this.paramVOS.saveafterevent,null,null,"doAction");if(s.params&&Object.assign(this.paramVOS,s.params),Object(n["b"])(s.jsPath))this.saveAfterHandle(this.paramVOS);else try{t("8ad9")("./".concat(s.jsPath,".js")).then((function(a){a[s.methodName]({paramVOS:e.paramVOS,dataStore:e.dataStore,sourceData:e.sourceData})}))}catch(i){this.$message.error("未找到保存后置事件执行js")}}a.dialogClose()},saveBforeHandle:function(e){this.$message.info("执行保存前置事件")},saveAfterHandle:function(e){this.$message.info("保存后置事件执行")},getFormData:function(e){this.form=e}}},l=c,d=t("2877"),h=Object(d["a"])(l,s,i,!1,null,"ee083aec",null);a["default"]=h.exports},"8ad9":function(e,a,t){var s={"./AddResourceFolder.js":["288e","chunk-2d0b34e9"]};function i(e){if(!t.o(s,e))return Promise.resolve().then((function(){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}));var a=s[e],i=a[0];return t.e(a[1]).then((function(){return t(i)}))}i.keys=function(){return Object.keys(s)},i.id="8ad9",e.exports=i}}]);