wangting
2024-05-07 46c673f0bf4a22ae108e90cfcf1bdeb4f0b6a45c
Source/ProjectWeb/src/actions/base/EditAction.js
@@ -6,7 +6,7 @@
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',
@@ -42,8 +42,8 @@
    }
  }
  callPreEvent(options, doBefore, function (options) {
    doAdd(options, function () {
      callPostEvent(options, doAfter, options.callback);
    doAdd(options, function (type,formData) {
      callPostEvent(options, doAfter,type, callback);
    });
  });
};
@@ -95,9 +95,9 @@
 * @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);
  }
}