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

var d=Object.defineProperty;var E=(s,t,e)=>t in s?d(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var a=(s,t,e)=>(E(s,typeof t!="symbol"?t+"":t,e),e);var o=(s,t,e)=>new Promise((r,n)=>{var m=l=>{try{u(e.next(l))}catch(i){n(i)}},D=l=>{try{u(e.throw(l))}catch(i){n(i)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(m,D);u((e=e.apply(s,t)).next())});import{W as c,$ as p}from"./index-f4658ae7.js";import{GPNReturnObj as h,GPNReturnType as P}from"./PageBaseGroupNew-ee20c033.js";import"./Group-ab70f402.js";import"./Page-34b19d96.js";import"./EnumLab-d43291c1.js";var I=(s=>(s[s.Table=0]="Table",s[s.Icon=1]="Icon",s))(I||{});class C{constructor(t){a(this,"params",{});a(this,"PageTitle","\u5206\u7EC4\u5B9E\u4F53");a(this,"HisListModel",0);a(this,"Columns",[]);a(this,"BtnsTop","\u5173\u95ED");a(this,"BtnsEnGroup","");a(this,"BtnsEnDtl","");a(this,"GroupsEns");a(this,"DtlEns");a(this,"ClassID");a(this,"RefKey","");a(this,"IsShowAddClick",!0);a(this,"IsShowEditGroupIcon",!0);a(this,"IsGroupMove",!1);a(this,"IsEnMove",!1);this.ClassID=t}setParams(t){this.params=t}RequestVal(t){return this.params[t]||c(t)}get PKVal(){return this.RequestVal("PKVal")}get RefMainEnName(){return this.RequestVal("RefMainEnName")}MoveGroup(t){return o(this,null,function*(){var r;const e=new p("BP.WF.HttpHandler.WF_CommTS");e.AddPara("ClassID",(r=this.GroupsEns)==null?void 0:r.GetNewEntity.classID),e.AddPara("PKs",t),yield e.DoMethodReturnString("DtlSearch_UpdatIdx")})}MoveDtl(t){return o(this,null,function*(){var r;const e=new p("BP.WF.HttpHandler.WF_CommTS");e.AddPara("ClassID",(r=this.DtlEns)==null?void 0:r.GetNewEntity.classID),e.AddPara("PKs",t),yield e.DoMethodReturnString("DtlSearch_UpdatIdx")})}MoveDtlToGroup(t,e,r){return o(this,null,function*(){if(this.DtlEns==null)return;const n=this.DtlEns.GetNewEntity;n.setPKVal(t),yield n.RetrieveFromDBSources(),n.SetValByKey(this.RefKey,e),n.Idx=r,yield n.Update()})}OpenDtl(t){var r;const e="/@/WF/Comm/En.vue?EnName="+((r=this.DtlEns)==null?void 0:r.GetNewEntity.classID)+"&PKVal="+t;return new h(P.OpenUrlByDrawer,e)}RemoveDtlItem(t,e){}}export{I as ListModel,C as PageBasePanelGroup};