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.3 KiB

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