(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b34e9"],{"288e":function(e,o,t){"use strict";t.r(o),t.d(o,"doAction",(function(){return d})),t.d(o,"doAdd",(function(){return u})),t.d(o,"doBefore",(function(){return s})),t.d(o,"doAfter",(function(){return i}));var n=t("140e"),a=t("8bbf"),c=t.n(a),r=t("4c9d"),d=function(e,o){e.sourceData=e.sourceData||{},Object(n["callPreEvent"])(e,s,(function(e){u(e,(function(){Object(n["callPostEvent"])(e,i,o)}))}))},u=function(e,o){var t=e.paramVOS;if(!t["type"]&&t["context"])return c.a.prototype.$message.error("展示UI上下文时必须配置业务类型type"),!1;var n=c.a.extend(r["default"]),a=new n;a.sourceData=e.sourceData,a.dataStore=e.dataStore,a.paramVOS=t,a.type="add",a.dialogClose=function(){d.visible=!1,document.body.removeChild(d.$el),a.$destroy(),a=null},o&&(a.saveCallback=o);var d=a.$mount();document.body.appendChild(d.$el),a.visible=!0},s=function(e,o){console.log("执行前置事件"),c.a.prototype.$message.success("执行前置事件"),o&&o(e)},i=function(e,o){if(console.log("执行后置事件"),c.a.prototype.$message.success("执行后置事件"),o){var t="add";o(t)}}}}]);
|