| | |
| | | import Vue from "vue"; |
| | | import AddEditDialog from "@/components/actions/AddEditDialog" |
| | | |
| | | export const doAction = (options) => { |
| | | export const doAction = (options,callback) => { |
| | | options.paramVOS = paramLow(options.paramVOS) |
| | | const paramVOS = Object.assign({ |
| | | url: '/api/uiDataController/addSave', |
| | |
| | | |
| | | callPreEvent(options, doBefore, function (options) { |
| | | doAdd(options, function () { |
| | | callPostEvent(options, doAfter, options.callback); |
| | | callPostEvent(options, doAfter, callback); |
| | | }); |
| | | }); |
| | | }; |
| | |
| | | instance = null; |
| | | }; |
| | | if (callback) { |
| | | instance.saveCallback = callback(options); |
| | | instance.saveCallback = callback; |
| | | } |
| | | let vm = instance.$mount(); |
| | | document.body.appendChild(vm.$el); |