You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
2.8 KiB
2 lines
2.8 KiB
var o=(h,t,e)=>new Promise((u,r)=>{var i=n=>{try{a(e.next(n))}catch(s){r(s)}},w=n=>{try{a(e.throw(n))}catch(s){r(s)}},a=n=>n.done?u(n.value):Promise.resolve(n.value).then(i,w);a((e=e.apply(h,t)).next())});import{Y as d,$ as l}from"./index-f4658ae7.js";import{PageBaseGenerList as m,GenerListPageShowModel as c}from"./PageBaseGenerList-b0d946a7.js";import{GPNReturnObj as F,GPNReturnType as D}from"./PageBaseGroupNew-ee20c033.js";import"./Group-ab70f402.js";import"./Page-34b19d96.js";import"./EnumLab-d43291c1.js";class P extends m{constructor(){super("GL_TARunning"),this.PageTitle="\u5728\u9014"}Init(){return o(this,null,function*(){this.DTFieldOfSearch="RDT",this.DTFieldOfLabel="\u53D1\u8D77\u65E5\u671F",this.PageTitle="\u5728\u9014",this.BtnsOfRow="\u50AC\u529E,\u64A4\u9500\u53D1\u9001",this.GroupFields="NodeName,FlowName",this.GroupFieldDefault="FlowName",this.PageSize=10,this.Icon="",this.HisGLShowModel=c.Table,this.Columns=[{Key:"WorkID",Name:"\u5DE5\u4F5CID",IsShow:!1,IsShowMobile:!1},{Key:"Title",Name:"\u6807\u9898",width:350},{Key:"StarterName",Name:"\u53D1\u8D77\u4EBA",width:120},{Key:"FlowName",Name:"\u6D41\u7A0B",width:120},{Key:"NodeName",Name:"\u505C\u7559\u8282\u70B9",width:160},{Key:"DeptName",Name:"\u53D1\u8D77\u4EBA\u90E8\u95E8",width:150},{Key:"RDT",Name:"\u5230\u8FBE\u65F6\u95F4",width:160},{Key:"TodoEmps",Name:"\u5F53\u524D\u5904\u7406\u4EBA",width:350}];const t=new l("BP.WF.HttpHandler.WF");t.AddUrlData();const e=yield t.DoMethodReturnJson("Runing_Init");e.forEach(u=>{u.RDT=this.FirendlyDT(u.RDT)}),this.Data=e})}LinkFieldClick(t){let e="/#/WF/MyView?";const u=Object.keys(t),r=["WorkID","FK_Flow","FlowNo","FK_Node","FID","PWorkID"];for(const i of u)r.includes(i)&&(e+=`&${i}=${t[i]}`);return new F(D.OpenUrlByDrawer75,e)}BtnClick(t,e){const u=e.WorkID;if(t==="\u64A4\u9500\u53D1\u9001")return this.UnSend(u);if(t==="\u50AC\u529E"){this.Prsss(u);return}}Prsss(t){return o(this,null,function*(){const e=window.confirm("\u8BF7\u8F93\u5165\u50AC\u529E\u4FE1\u606F,\u8BE5\u5DE5\u4F5C\u56E0\u4E3Axxx\u539F\u56E0,\u9700\u8981\u60A8\u4F18\u5148\u5904\u7406.");if(e==null)return;const u=new l("BP.WF.HttpHandler.WF");u.AddPara("WorkID",t),u.AddPara("Msg",e);const r=yield u.DoMethodReturnString("Runing_Press");if(r.indexOf("err@")==0){d.warning(r);return}return d.info(r),new F(D.DoNothing)})}UnSend(t){return o(this,null,function*(){if(window.confirm("\u60A8\u786E\u5B9A\u8981\u64A4\u9500\u672C\u6B21\u53D1\u9001\u5417\uFF1F")==!1)return;const e=new l("BP.WF.HttpHandler.WF");e.AddPara("WorkID",t),e.AddPara("UnSendToNode",0);const u=yield e.DoMethodReturnString("Runing_UnSend");if(u.indexOf("err@")==0)return alert(u);if(u.indexOf("KillSubThared")==0){d.error(u.replace("KillSubThared@",""));return}const r="/@/WF/MyFlow?WorkID="+t;return new F(D.GoToUrl,r)})}}export{P as GL_TARunning};
|