| 1 |
- import{d as $,f as x,w as G,ag as p,aB as F,ar as N,aE as z,aD as i,k as b,G as S,at as w,au as k,aq as J,F as K,aC as Q}from"./vue-vendor-Be68asQ6.js";import{B as X}from"./index-CETWS1o0.js";import Y from"./OnlineTabFormDetail-2aa67564-C-EcBjZi.js";import{b as Z}from"./useExtendComponent-bb98e568-D2z9GsqT.js";import{t as ee}from"./CommentPanel-C_uukvSf.js";import{t as te}from"./constant-fa63bd66-Ddbq-fz2.js";import{co as ae}from"./index-BFfnEkVs.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./DetailForm-c592b8d8-CP_-OJTq.js";import"./index-CgB-9WQb.js";import"./OnlineSubFormDetail-8be879b9-D60cxAVS.js";import"./index-D68l__AG.js";import"./componentMap-BUTAcOmo.js";import"./index-DPdfb5jl.js";import"./user.api-BMRcwGEd.js";import"./customExpression-BHJdu2h2.js";import"./index-D2G57Sln.js";import"./useListPage-aOfrd-Tw.js";import"./LinkTableListPiece-e016b8e6-BV6j69dt.js";import"./OnlineSelectCascade-d631ed72-woz5vuX0.js";import"./JModalTip-a927f85d-cvoo-Gj-.js";import"./BasicModal-D4gc2R81.js";import"./useTimeout-Ca5eqGu-.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./useWindowSizeFn-BTSGGcie.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./JUpload-cB_Qj2H2.js";import"./useForm-kcRIHoe0.js";import"./BasicForm-Cv-dsB-e.js";import"./BasicTable-CuSLkXEu.js";import"./injectionKey-DPVn4AgL.js";import"./JAreaLinkage-BNOKwn5l.js";import"./areaDataUtil-Cik-Rc_P.js";import"./JSelectUser-DCwPqRxp.js";import"./props-BPxWJPuD.js";import"./JSelectBiz-Be8KsC5j.js";import"./JSelectDept-DT6g7V5M.js";import"./index-BNFwynfr.js";import"./bem-BvvqSl-N.js";import"./props-Cw7AfxGV.js";import"./useContextMenu-BDwmjIwb.js";import"./JCodeEditor-CSivhUhT.js";import"./useFormItem-CtGMPcLp.js";import"./htmlmixed-DNSd26j0.js";import"./vue-DbzutmLn.js";/* empty css */import"./JAddInput-BBXQvvpq.js";import"./index-BOEzG86y.js";import"./depart.api-CDwTvdwQ.js";import"./JPopup-DKJW27Yk.js";import"./EasyCronInput-wCv2YMHn.js";import"./JEllipsis-C04xKxcI.js";import"./download-CjoX0_mR.js";import"./base64Conver-24EVOS6V.js";import"./index-D1703ozz.js";import"./index-Bi7PIj53.js";import"./useCountdown-B7iR27pS.js";import"./useFormItemSingle-nLM0QlcI.js";import"./index-iuayQczx.js";import"./index-DJQB4_Pr.js";import"./index-jjY34ziH.js";var oe=(e,t,o)=>new Promise((d,l)=>{var u=a=>{try{r(o.next(a))}catch(m){l(m)}},s=a=>{try{r(o.throw(a))}catch(m){l(m)}},r=a=>a.done?d(a.value):Promise.resolve(a.value).then(u,s);r((o=o.apply(e,t)).next())});const re=$({name:"OnlineTabDetailModal",props:{id:{type:String,required:!1,default:""}},components:{BasicModal:X,OnlineFormDetail:Y,CommentPanel:ee},emits:["success","register","formConfig"],setup(e,{emit:t}){const o=x(),d=x([]),l=x("-1");function u(){o.value&&o.value.reload()}const{title:s,modalWidth:r,registerModal:a,cgButtonList:m,handleCgButtonClick:f,disableSubmit:h,handleSubmit:n,submitLoading:g,handleCancel:R,handleFormConfig:y,onlineFormCompRef:D,formTemplate:M,isTreeForm:P,pidFieldName:_,renderSuccess:L,formRendered:V,showSub:E,tableName:O,formDataId:W,enableComment:j,themeTemplate:q}=Z(!1,{emit:t},u);G(()=>e.id,A,{immediate:!0});function A(){return oe(this,null,function*(){V.value=!1,e.id&&(yield y(e.id,{},C=>{const B=[],v=[],{head:I,schema:H}=C,{properties:U}=H;B.push({tableName:I.tableName,tableTxt:I.tableTxt}),Object.entries(U).forEach(([T,c])=>{c.view=="tab"&&v.push({tableName:T,tableTxt:c.describe})}),v.sort((T,c)=>T.order-c.order),d.value=[...B,...v]}))})}return{title:s,onlineFormCompRef:D,renderSuccess:L,registerModal:a,handleSubmit:n,handleCancel:R,modalWidth:r,formTemplate:M,disableSubmit:h,cgButtonList:m,handleCgButtonClick:f,isTreeForm:P,pidFieldName:_,submitLoading:g,showSub:E,tableName:O,formDataId:W,enableComment:j,commentPanelRef:o,themeTemplate:q,tabNav:d,tabValue:C=>String(C-1),tabIndex:l,TAB:te,restTabIndex:()=>{setTimeout(()=>{l.value="-1"},500)}}}}),me={class:"titleArea"},ie={class:"title"},le={class:"right"};function ne(e,t,o,d,l,u){const s=p("a-radio-button"),r=p("a-radio-group"),a=p("a-button"),m=p("online-form-detail"),f=p("comment-panel"),h=p("BasicModal");return N(),F(h,z({title:e.title,onCancel:t[2]||(t[2]=()=>{e.restTabIndex()}),width:e.modalWidth,maxHeight:600,enableComment:e.enableComment,defaultFullscreen:!1},e.$attrs,{onRegister:e.registerModal,wrapClassName:"jeecg-online-detail-modal"}),{title:i(()=>[w("div",me,[w("div",ie,k(e.title),1),w("div",le,[b(r,{value:e.tabIndex,"onUpdate:value":t[0]||(t[0]=n=>e.tabIndex=n)},{default:i(()=>[(N(!0),J(K,null,Q(e.tabNav,(n,g)=>(N(),F(s,{value:e.tabValue(g),key:n.tableName},{default:i(()=>[S(k(n.tableTxt),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])])])]),footer:i(()=>[b(a,{key:"back",onClick:t[1]||(t[1]=()=>{e.handleCancel(),e.restTabIndex()})},{default:i(()=>t[3]||(t[3]=[S("关闭")])),_:1})]),comment:i(()=>[b(f,{ref:"commentPanelRef",tableName:e.tableName,dataId:e.formDataId},null,8,["tableName","dataId"])]),default:i(()=>[b(m,{ref:"onlineFormCompRef",id:e.id,"form-template":e.formTemplate,"show-sub":e.showSub,themeTemplate:e.themeTemplate,tabIndex:e.tabIndex,onRendered:e.renderSuccess},null,8,["id","form-template","show-sub","themeTemplate","tabIndex","onRendered"])]),_:1},16,["title","width","enableComment","onRegister"])}const vt=ae(re,[["render",ne],["__scopeId","data-v-220dd945"]]);export{vt as default};
|