Source/plt-web/plt-web-ui/src/components/actions/handlers.js
@@ -3,8 +3,12 @@
export const handlerAction=function (type,options, callback) {
  const handlers = {
    //查看
    //查看,tab展示详情
    view: () => {import("@/components/actions/base/ViewAction").then(module => {
      module.doAction(options,callback);
    })},
    //查看,弹窗展示详情
    viewdialog: () => {import("@/components/actions/base/ViewDialogAction").then(module => {
      module.doAction(options,callback);
    })},
    //创建
@@ -28,20 +32,27 @@
      module.doAction(options,callback);
    })},
    //启动流程
    launchworkflow: () => {import("@/components/actions/base/StartWorkflowAction").then(module => {
    startwork: () => {import("@/components/actions/base/StartWorkflowAction").then(module => {
      module.doAction(options,callback);
    })},
    //上传文件
    uploadfile: () => {import("@/components/actions/base/uploadFileAction").then(module => {
      module.doAction(options,callback);
    })},
    //上传文件
    //下载文件
    downloadfile: () => {import("@/components/actions/base/downloadFileAction").then(module => {
      module.doAction(options,callback);
    })},
    //下载文件
    downloadfiles: () => {import("@/components/actions/base/downloadFileAction").then(module => {
      module.doAction(options,callback);
    })},
    uprevision: () => {import("@/components/actions/base/upRevisionAction").then(module => {
      module.doAction(options,callback);
    })}
  };
  if (handlers[type]) {
    handlers[type]()
    handlers[type]();
  } else {
    Vue.prototype.$message.error('未找到对应action,请重新配置按钮!');
  }