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
1.5 KiB
2 lines
1.5 KiB
var y=(p,d,s)=>new Promise((l,r)=>{var u=e=>{try{t(s.next(e))}catch(a){r(a)}},o=e=>{try{t(s.throw(e))}catch(a){r(a)}},t=e=>e.done?l(e.value):Promise.resolve(e.value).then(u,o);t((s=s.apply(p,d)).next())});import{d as f,bl as m,r as w,q as M,o as n,g as c,a as _,w as F,t as h,u as g,i as C,cb as b,$ as v,bx as i}from"./index-f4658ae7.js";import{L as P}from"./index-1e934f0e.js";import{s as k}from"./function-call-d3c31425.js";import"./index-f3701452.js";import"./mount-component-62c39ff8.js";import"./Toast-3c5f40d9.js";const H={class:"en-wrapper"},N={key:0,class:"ant-tag-red"},T={key:1,class:"en-body"},I=f({__name:"MyFlow",setup(p){const s=m().query||{},l=w(!1),r=M({tips:"",hasError:!1});return(()=>y(this,null,function*(){const o=b();try{l.value=!0;const t=new v("BP.WF.HttpHandler.WF_MyFlow");t.AddJson(s);const e=(yield t.DoMethodReturnString("MyFlow_Init"))||"";if(l.value=!1,typeof e=="object"){delete e.DoMethod,delete e.DoType,delete e.HttpHandlerName;const a=e.PageName||"";delete e.PageName,(a===""||a==="MyFlowGener")&&o.replace("/CCMobile/MyFlowGener?"+i(e)),a==="MyView"&&o.replace("/CCMobile/MyView?"+i(e)),a==="MyFlowSelfForm"&&o.replace("/CCMobile/MyFlowSelfForm?"+i(e)),a==="MyFlowTree"&&o.replace("/CCMobile/MyFlowTree?"+i(e)+"&PageType=MyFlow");return}e.includes("err@")&&k(e.replace("err@",""))}catch(t){r.hasError=!0,r.tips=t;return}finally{l.value=!1}}))(),(o,t)=>(n(),c("div",H,[l.value?(n(),_(g(P),{key:0},{default:F(()=>[r.hasError?(n(),c("div",N,h(r.tips),1)):(n(),c("div",T))]),_:1})):C("",!0)]))}});export{I as default};
|