/** * 流程按钮处理 * @author wangting * @date 2021-4-19 */ layui.define(['layer','element','BaseAction'],function(exports){ var webUtil = $webUtil; var Class = function() { this.MODELNAME = "BaseStartWorkflowAction"; this.moduleKey = "BaseStartWorkflowAction"; this.getContent = function (id) { var that = this; that.id = id; var html = [ '
' ].join(""); return html; }; this.doAction = function (options) { var that = this; webUtil.copyConfig(that, that.moduleKey); that.id = options.id; var paramVOS = $webUtil.paramLow(options.paramVOS); options.oldParamVOS=$.extend({},options.paramVOS); options.paramVOS=paramVOS; that.id=options.id; var selectData=options.dataStore; if(selectData.length<1){ $webUtil.showErrorMsg("请选择一条需要发起流程的数据"); return false; } if(!paramVOS.multiprocess && selectData.length > 1){ $webUtil.showErrorMsg("仅能选择一条数据发起流程"); return false; } if(paramVOS.checknotprocess) { var notprocess = paramVOS.checknotprocess.split('&'); var checknotprocess=false; var msgStore={}; layui.each(notprocess, function (i, item) { for (var j=0;j