Files
qhmes/web-dist/js/OnlCgformInnerSubTable-Ca5YvgLr.js
2026-06-16 18:19:57 +08:00

2 lines
8.5 KiB
Java

var I=(T,f,c)=>new Promise((m,i)=>{var g=l=>{try{b(c.next(l))}catch(h){i(h)}},d=l=>{try{b(c.throw(l))}catch(h){i(h)}},b=l=>l.done?m(l.value):Promise.resolve(l.value).then(g,d);b((c=c.apply(T,f)).next())});import po from"./BasicTable-C6eG0bgK.js";import"./TableAction.vue_vue_type_style_index_0_lang-BIWZ0bGo.js";import"./TableImg.vue_vue_type_style_index_0_lang-65ZOQtFn.js";import{s as so,M as co}from"./index-X7Y8jykP.js";import uo from"./OnlineCustomModal-Cp94l-9P.js";import w from"./OnlineDetailModal-6rwRF-Lu.js";import{J as fo}from"./JImportModal-2M3TeQac.js";import{u as go,a as bo}from"./useListButton-CD_7XW68.js";import{u as ho}from"./useTableColumns-DkARxJ3d.js";import{u as Co}from"./useEnhance-DSMGDhnx.js";import{u as To}from"./useOnlinePopEvent-CGxmXrya.js";import _o from"./OnlinePopModal-PPYKdfpV.js";import{I as S}from"./constant-DfcHKztj.js";import{e as So,h as Mo,C as u,z as a,y as M,H as Ro,f as p,u as o,A as s,J as ko,B as yo,a1 as Io,K as B,F as wo,Q as v,G as O,E as Bo,Y as vo,M as Oo,N as Po}from"./vue-vendor-DNhG1Cve.js";import"./BasicTable.vue_vue_type_style_index_0_lang-B9DxrWas.js";import"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import"./index-BzChaRPg.js";import"./useAppInject-DPZGPcR3.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-DO7ZhK45.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./index-saD4h7VJ.js";import"./useBreakpoint-DXhPW7nV.js";import"./useEventListener-BRXjwk7A.js";import"./breakpointEnum-BhAg6bcX.js";import"./uniqBy--vsL0WVB.js";import"./index-BDvqZ5j4.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-CuWaQdlK.js";import"./useForm-D61zovon.js";import"./injectionKey-DPVn4AgL.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./Checkbox-Dbxs4we4.js";import"./index-BuONesFs.js";import"./FormOutlined-Y84itqS0.js";import"./useTableContext-CncNVXgp.js";import"./index-DTjkSGYl.js";import"./eagerComputed-BTlOruLW.js";import"./fromPairs-Dx9PT-t0.js";import"./useMaxLevel-DE205ncc.js";import"./index-CfNJyBRj.js";import"./dropdown-jkliuVyN.js";import"./index-DfHu-LAS.js";import"./Group-DBzJABA_.js";import"./RadioButton-DRBix2Fq.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./scrollTo-D49dA-9c.js";import"./operationUnit-vCu2co3e.js";import"./index-C69VKHba.js";import"./index-DklMb9Qc.js";import"./UpOutlined-B1UMbtrP.js";import"./index-DsixALRt.js";import"./dayjs-jnKD3YGS.js";import"./index-aCD42OrZ.js";import"./quarterOfYear-BU2sPnff.js";import"./index-J2mOtM3w.js";import"./dayjs-ALi1pEeb.js";import"./clickOutside-DHfwTU6R.js";import"./onMountedOrActivated-DhSdLlqP.js";import"./throttle-De_jAmBh.js";import"./uuid-CODpppBC.js";import"./sortable.esm-DJNoJSdJ.js";import"./RedoOutlined-Cq2g4Slp.js";import"./index-CeNCCWzL.js";import"./index-fAAIzD3j.js";import"./index-DfX9t4DO.js";import"./isNumeric-DjvBa-1E.js";import"./useAutoForm-Dtkm06h9.js";import"./useExtendComponent-DsD-dPUC.js";import"./JUpload.vue_vue_type_style_index_0_lang-B_SS088g.js";import"./JUploadModal.vue_vue_type_script_setup_true_lang-CSwYeVkH.js";import"./useModal-DaJ3Bflg.js";import"./LinkTableSelect-Bxfjs2Wv.js";import"./useLinkTable-DuzCQq29.js";import"./JDictSelectUtil-DwVTEDM5.js";import"./index-Cq6YxX27.js";import"./placeholderImage-CRpUMlaT.js";import"./EditOutlined-drlR34lz.js";import"./LinkTableCard-BUdn9nTb.js";import"./MinusCircleFilled-BLRBKPEV.js";import"./OnlineSelectCascade-BuXb37Ka.js";import"./user.api-M95RuX7p.js";import"./customExpression-DKKqya45.js";import"./OnlineForm-EKDpzQwF.js";import"./OnlineSubForm-Dzb1OYao.js";/* empty css */import"./useCustomHook-DGM29EbD.js";/* empty css */import"./PrinterOutlined-C4QwxYYW.js";import"./OnlinePopForm-DsBK5td-.js";/* empty css */import"./useAutoModal-C9ZiBxOc.js";import"./JModalTip-BKHwxwTZ.js";/* empty css */import"./OnlineFormDetail-CxCNVebu.js";import"./DetailForm-DL2xTtRt.js";import"./Area-CONPDlNK.js";import"./pcaUtils-DD1r5iUJ.js";import"./index-C9_hfRup.js";import"./OnlineSubFormDetail-BxYe0rjf.js";import"./CommentPanel-Dk7IUKj3.js";import"./UserSelectModal-BFDUCW9t.js";import"./SelectedUserItem-RRb_QZKg.js";import"./index-B4gPlWQt.js";import"./index-Wl3jtD-0.js";import"./UploadOutlined-D3m-zwOG.js";/* empty css */import"./MessageOutlined-BnylU_gE.js";import"./cgformState-DUaj-JfG.js";import"./useMethods-D3efiSSd.js";import"./LinkTableListPiece-DoOFTrC_.js";import"./DictColors-Cn4yPqfS.js";const Eo={key:0,style:{"font-size":"12px","font-style":"italic"}},Lo={key:0,style:{"font-size":"12px","font-style":"italic"}},Ho=["src","onClick"],No=["innerHTML","onClick"],Do=["innerHTML"],Jo=["title"],xo=So({name:"OnlCgformInnerSubTable"}),ni=Object.assign(xo,{props:["subTableId","subTableName","mTableSelectedRcordId"],setup(T){const f=T,{createMessage:c}=so(),{ID:m,onlineTableContext:i,loading:g,reload:d,dataSource:b,handleSpecialConfig:l,getColumnList:h,handleChangeInTable:P,loadData:E,onlineExtConfigJson:R,registerCustomModal:L,tableReloading:H}=go({code:f.subTableId});i.isInnerSubTable=!0,i.innerSubTableName=f.subTableName,i.innerSubTableId=m.value,i.mTableSelectedRcordId=f.mTableSelectedRcordId,m.value||c.warning("地址错误, 配置ID不存在!");let{initCgEnhanceJs:N}=Co(i);const{importUrl:D,registerImportModal:J,initButtonList:x,initButtonSwitch:z,registerDetailModal:F,registerBpmModal:V}=bo(i,R),{columns:A,enableScrollBar:K,tableScroll:$,downloadRowFile:j,getImgView:G,getPcaText:k,getFormatDate:U,handleColumnResult:q,hrefComponent:C,viewOnlineCellImage:Q,hrefMainTableId:Y,registerOnlineHrefModal:W,registerPopModal:X,openPopModal:Z,onlinePopModalRef:oo,popTableId:y,handleClickFieldHref:eo}=ho(i,R);Mo(m,()=>{to()},{immediate:!0});function to(){return I(this,null,function*(){var r;g.value=!0;let e=yield h(S);io(e),(r=e.foreignKeys)!=null&&r.length&&(i.innerSubTableFk=e.foreignKeys[0].field),yield E(),g.value=!1,i.execButtonEnhance("setup")})}function io(e){let r=N(e.enhanceJs);i.EnhanceJS=r,x(e.cgButtonList),z(e.hideColumns),q(e),l(e)}function ro(e){y.value=e.id;let r={title:e.describe};e.record&&e.record.id&&(r.record=e.record,r.isUpdate=!0),Z(!0,r)}return To(ro),(e,r)=>{const no=B("a-button"),lo=co,ao=B("BpmGraphicModal");return a(),u(wo,null,[o(H)?Ro("",!0):(a(),M(o(po),{key:0,ref:"onlineTable",rowKey:"jeecg_row_key",canResize:!0,bordered:!0,showIndexColumn:!1,loading:o(g),columns:o(A),dataSource:o(b),pagination:!1,showActionColumn:!1,showTableSetting:!1,clickToRowSelect:!1,scroll:o($),onTableRedo:o(d),class:ko({"j-table-force-nowrap":o(K)}),onChange:o(P)},{fileSlot:s(({text:t,record:n,column:_})=>[t?(a(),M(no,{key:1,ghost:!0,type:"primary",preIcon:"ant-design:download",size:"small",onClick:mo=>o(j)(t,n,_,o(m))},{default:s(()=>[...r[0]||(r[0]=[Bo(" 下载 ",-1)])]),_:1},8,["onClick"])):(a(),u("span",Eo,"无文件"))]),imgSlot:s(({text:t})=>[t?(a(),u("img",{key:1,src:o(G)(t),alt:"图片不存在",class:"online-cell-image",onClick:n=>o(Q)(t)},null,8,Ho)):(a(),u("span",Lo,"无图片"))]),htmlSlot:s(({text:t,column:n,record:_})=>[n.fieldHref?(a(),u("a",{key:0,innerHTML:t,onClick:mo=>o(eo)(n.fieldHref,_)},null,8,No)):(a(),u("div",{key:1,innerHTML:t},null,8,Do))]),pcaSlot:s(({text:t,column:n})=>[v("div",{title:o(k)(t,n)},O(o(k)(t,n)),9,Jo)]),dateSlot:s(({text:t,column:n})=>[v("span",null,O(o(U)(t,n)),1)]),_:1},8,["loading","columns","dataSource","scroll","onTableRedo","class","onChange"])),p(w,{id:o(m),onRegister:o(F),source:o(S)},null,8,["id","onRegister","source"]),p(fo,{onRegister:o(J),url:o(D)(),onOk:o(d),online:""},null,8,["onRegister","url","onOk"]),p(lo,yo(o(C).model,Io(o(C).on)),{default:s(()=>[(a(),M(vo(o(C).is),Oo(Po(o(C).params)),null,16))]),_:1},16),p(uo,{onRegister:o(L),onSuccess:o(d)},null,8,["onRegister","onSuccess"]),p(w,{id:o(Y),onRegister:o(W),defaultFullscreen:!1,source:o(S)},null,8,["id","onRegister","source"]),p(_o,{ref_key:"onlinePopModalRef",ref:oo,id:o(y),onRegister:o(X),onSuccess:o(d),request:"",topTip:""},null,8,["id","onRegister","onSuccess"]),p(ao,{onRegister:o(V)},null,8,["onRegister"])],64)}}});export{ni as default};