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=(D,t,u)=>new Promise((e,r)=>{var i=n=>{try{a(u.next(n))}catch(s){r(s)}},w=n=>{try{a(u.throw(n))}catch(s){r(s)}},a=n=>n.done?e(n.value):Promise.resolve(n.value).then(i,w);a((u=u.apply(D,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 h}from"./PageBaseGroupNew-ee20c033.js";import"./Group-ab70f402.js";import"./Page-34b19d96.js";import"./EnumLab-d43291c1.js";class B extends m{constructor(){super("GL_TARuning"),this.PageTitle="\u5728\u9014"}Init(){return o(this,null,function*(){this.DTFieldOfSearch="RDT",this.DTFieldOfLabel="\u53D1\u8D77\u65E5\u671F",this.PageTitle="\u5728\u9014",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},{Key:"Btns",Name:"Btns",width:350}];const t=new l("BP.WF.HttpHandler.WF");t.AddUrlData();const u=yield t.DoMethodReturnJson("Runing_Init");u.forEach(e=>{const r=e.TodoEmps;r!=null&&r!=""&&r!=null&&(e.TodoEmps=r.split(",")[1].replace(";","")),e.RDT=this.FirendlyDT(e.RDT)}),this.Data=u})}LinkFieldClick(t){let u="/#/WF/MyView?";const e=Object.keys(t),r=["WorkID","FK_Flow","FlowNo","FK_Node","FID","PWorkID"];for(const i of e)r.includes(i)&&(u+=`&${i}=${t[i]}`);return new F(h.OpenUrlByDrawer75,u)}BtnClick(t,u){const e=u.WorkID;if(t==="\u64A4\u9500\u53D1\u9001")return this.UnSend(e);if(t==="\u50AC\u529E"){this.Prsss(e);return}}Prsss(t){return o(this,null,function*(){const u=window.confirm("\u8BF7\u8F93\u5165\u50AC\u529E\u4FE1\u606F,\u8BE5\u5DE5\u4F5C\u56E0\u4E3Axxx\u539F\u56E0,\u9700\u8981\u60A8\u4F18\u5148\u5904\u7406.");if(u==null)return;const e=new l("BP.WF.HttpHandler.WF");e.AddPara("WorkID",t),e.AddPara("Msg",u);const r=yield e.DoMethodReturnString("Runing_Press");if(r.indexOf("err@")==0){d.warning(r);return}return d.info(r),new F(h.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 u=new l("BP.WF.HttpHandler.WF");u.AddPara("WorkID",t),u.AddPara("UnSendToNode",0);const e=yield u.DoMethodReturnString("Runing_UnSend");if(e.indexOf("err@")==0)return alert(e);if(e.indexOf("KillSubThared")==0){d.error(e.replace("KillSubThared@",""));return}const r="/@/WF/MyFlow?WorkID="+t;return new F(h.GoToUrl,r)})}}export{B as GL_TARuning};
|