| | |
| | | import Vue from "vue"; |
| | | import AddEditDialog from "@/components/actions/AddEditDialog"; |
| | | |
| | | export const doAction = (options) => { |
| | | export const doAction = (options,callback) => { |
| | | const paramVOS = Object.assign({ |
| | | getdataurl: '/api/uiDataController/dataFormQuery', |
| | | getdatamethod: 'post', |
| | |
| | | } |
| | | } |
| | | callPreEvent(options, doBefore, function (options) { |
| | | doAdd(options, function () { |
| | | callPostEvent(options, doAfter, options.callback); |
| | | doAdd(options, function (type,formData) { |
| | | callPostEvent(options, doAfter,type, callback); |
| | | }); |
| | | }); |
| | | }; |
| | |
| | | * @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); |
| | | } |
| | | } |