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.0 KiB
2 lines
2.0 KiB
var M=(c,i,t)=>new Promise((y,n)=>{var s=e=>{try{a(t.next(e))}catch(r){n(r)}},C=e=>{try{a(t.throw(e))}catch(r){n(r)}},a=e=>e.done?y(e.value):Promise.resolve(e.value).then(s,C);a((t=t.apply(c,i)).next())});import{d as w,bl as f,r as u,q as _,o as d,g as p,b as F,w as g,t as m,u as h,bo as P,$ as S,bx as o,Y as T}from"./index-f4658ae7.js";const W={class:"en-wrapper"},I={key:0,class:"ant-tag-red"},b={key:1,class:"en-body"},H=w({__name:"MyCC",props:{params:{type:Object,default:()=>{}}},setup(c){const i=c,t=f();let y=(i.params.hasOwnProperty("PKVal")?t.query:i.params)||{};const n=u(!1),s=_({tips:"",hasError:!1});return(()=>M(this,null,function*(){try{n.value=!0;const a=new S("BP.WF.HttpHandler.WF_MyCC");a.AddJson(y);const e=(yield a.DoMethodReturnString("MyCC_Init"))||"";if(n.value=!1,typeof e=="object"){delete e.DoMethod,delete e.DoType,delete e.HttpHandlerName;const r=e.PageName||"";delete e.PageName;const l=window.location.hash;r==="MyCCGener"&&(l.includes("S_MyCC")&&window.location.replace("/#/WF/S_MyCCGener?"+o(e)),l.includes("M_MyCC")?window.location.replace("/#/WF/M_MyCCGener?"+o(e)):window.location.replace("/#/WF/MyCCGener?"+o(e))),r==="MyCCTree"&&(l.includes("S_MyCC")&&window.location.replace("/#/WF/S_MyFlowTree?"+o(e)+"&IsReadonly=1&PageType=MyCC"),l.includes("M_MyCC")?window.location.replace("/#/WF/M_MyFlowTree?"+o(e)+"&IsReadonly=1&PageType=MyCC"):window.location.replace("/#/WF/MyFlowTree?"+o(e)+"&IsReadonly=1&PageType=MyCC")),r==="MyCCSelfForm"&&(l.includes("S_MyCC")&&window.location.replace("/#/WF/S_MyFlowSelfForm?"+o(e)+"&IsReadonly=1&PageType=MyCC"),l.includes("M_MyCC")?window.location.replace("/#/WF/M_MyFlowSelfForm?"+o(e)+"&IsReadonly=1&PageType=MyCC"):window.location.replace("/#/WF/MyFlowSelfForm?"+o(e)+"&IsReadonly=1&PageType=MyCC"));return}e.includes("err@")&&T.error(e.replace("err@",""))}catch(a){s.hasError=!0,s.tips=a;return}finally{n.value=!1}}))(),(a,e)=>(d(),p("div",W,[F(h(P),{spinning:n.value},{default:g(()=>[s.hasError?(d(),p("div",I,m(s.tips),1)):(d(),p("div",b))]),_:1},8,["spinning"])]))}});export{H as default};
|