procInstHisForm.js 1.5 KB

1
  1. var _projectConfig=new ProjectConfig,requestUrlPrefix=_projectConfig.proxyPath+_projectConfig.activitiServiceConfig.gatewayRoute+_projectConfig.activitiServiceConfig.adminPath,myTabContent=new Vue({el:"#myTabContent",data:function(){return{entity:{id:getQueryString("id"),flowTypeName:null,flowTypeCode:null,flowTypeDesc:null},editType:getQueryString("editType"),pageLoading:!0,requestUrlPrefix:requestUrlPrefix}},created:function(){},methods:{},mounted:function(){$("#procInstHisForm").height()<$("#procInstHisForm").context.defaultView.innerHeight&&$($("#procInstHisForm").context.firstElementChild).height($("#inputForm").context.defaultView.innerHeight)}});function operateFormatter(e,t,r){return"<button title='查看明细' style='margin:1px' class='viewDetail btn btn-primary btn-xs'><i class='fa fa-newspaper-o fa-fw'></i></button>"}window.operateEvents={"click .viewDetail":function(e,t,i,r){var n=requestUrlPrefix+"/activiti/userTaskDef/getEntity?id="+i.userTaskDefId;$.ajax({type:"post",dataType:"json",async:!1,url:n,success:function(e){var t,r;"success"===e.type?(r="",(t=e.data.formResPath)?(-1<t.indexOf("?")?r+=t+"&":r+=t+"?",r+="procInstId="+i.procInstId+"&userTaskInstId="+i.id+"&state="+i.state+"&dealUserId="+i.dealUserId+"&editType=view"):r+="/common-assets/pages/error/404.html",openDialogView("查看任务明细",r,{callback:function(){}})):toastr.error(e.message||"打开表单失败!")},error:function(){toastr.error("服务器内部错误,请稍后重试!")}})}};