| | |
| | | options.sourceData = options.sourceData || {}; |
| | | |
| | | callPreEvent(options, doBefore, function (options) { |
| | | doAdd(options, function () { |
| | | callPostEvent(options, doAfter, callback); |
| | | doAdd(options, function (type,formData) { |
| | | callPostEvent(options, doAfter, callback,type); |
| | | }); |
| | | }); |
| | | }; |
| | |
| | | * @param options 按钮的配置信息 |
| | | * @param callback 回调 |
| | | */ |
| | | export const doAfter = (options,callback)=> { |
| | | export const doAfter = (options,callback,actionType)=> { |
| | | Vue.prototype.$message.success('执行增加后置事件'); |
| | | if(callback){ |
| | | callback(options); |
| | | callback(actionType); |
| | | } |
| | | } |