OnlineDetailModal-5b412bb9-DW1bxbNx.js 4.6 KB

1
  1. import{d as x,f as P,w as L,ag as d,aB as u,ar as f,aE as W,aD as s,k as h,ah as O,aG as V,at as _,au as $}from"./vue-vendor-Be68asQ6.js";import{B as j}from"./index-CETWS1o0.js";import E from"./OnlineFormDetail-fc087725-CQBvCIHj.js";import{b as q}from"./useExtendComponent-bb98e568-D2z9GsqT.js";import{t as G}from"./CommentPanel-C_uukvSf.js";import{E as H}from"./constant-fa63bd66-Ddbq-fz2.js";import{co as J}from"./index-BFfnEkVs.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./DetailForm-c592b8d8-CP_-OJTq.js";import"./index-CgB-9WQb.js";import"./componentMap-BUTAcOmo.js";import"./index-D68l__AG.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"./OnlineSubFormDetail-8be879b9-D60cxAVS.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"./BasicForm-Cv-dsB-e.js";import"./JUpload-cB_Qj2H2.js";import"./useForm-kcRIHoe0.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 K=(t,n,o)=>new Promise((l,i)=>{var p=e=>{try{m(o.next(e))}catch(r){i(r)}},a=e=>{try{m(o.throw(e))}catch(r){i(r)}},m=e=>e.done?l(e.value):Promise.resolve(e.value).then(p,a);m((o=o.apply(t,n)).next())});const z=x({name:"OnlineDetailModal",props:{id:{type:String,required:!1,default:""},source:{type:String,default:""},cancelBtnCfg:{type:Object,default:()=>({enabled:!0,buttonName:"关闭",buttonIcon:""})}},components:{BasicModal:j,OnlineFormDetail:E,CommentPanel:G},emits:["success","register","formConfig"],setup(t,{emit:n}){const o=P();function l(){o.value&&o.value.reload()}const{title:i,modalWidth:p,registerModal:a,cgButtonList:m,handleCgButtonClick:e,disableSubmit:r,handleSubmit:b,submitLoading:C,handleCancel:g,handleFormConfig:B,onlineFormCompRef:S,formTemplate:w,isTreeForm:N,pidFieldName:y,renderSuccess:F,formRendered:R,showSub:T,tableName:k,formDataId:v,enableComment:D,themeTemplate:M}=q(!1,{emit:n},l);L(()=>t.id,I,{immediate:!0});function I(){return K(this,null,function*(){if(R.value=!1,!t.id)return;let c={};t.source===H&&(c.tabletype=3),yield B(t.id,c)})}return{title:i,onlineFormCompRef:S,renderSuccess:F,registerModal:a,handleSubmit:b,handleCancel:g,modalWidth:p,formTemplate:w,disableSubmit:r,cgButtonList:m,handleCgButtonClick:e,isTreeForm:N,pidFieldName:y,submitLoading:C,showSub:T,tableName:k,formDataId:v,enableComment:D,commentPanelRef:o,themeTemplate:M}}});function A(t,n,o,l,i,p){const a=d("a-button"),m=d("online-form-detail"),e=d("comment-panel"),r=d("BasicModal");return f(),u(r,W({title:t.title,width:t.modalWidth,maxHeight:600,enableComment:t.enableComment,defaultFullscreen:!1},t.$attrs,{onRegister:t.registerModal,wrapClassName:"jeecg-online-detail-modal"}),{footer:s(()=>[t.cancelBtnCfg.enabled?(f(),u(a,{key:"back",onClick:t.handleCancel},{default:s(()=>[_("span",null,$(t.cancelBtnCfg.buttonName),1)]),_:1},8,["onClick"])):O("",!0),V(t.$slots,"footerBtn")]),comment:s(()=>[h(e,{ref:"commentPanelRef",tableName:t.tableName,dataId:t.formDataId},null,8,["tableName","dataId"])]),default:s(()=>[h(m,{ref:"onlineFormCompRef",id:t.id,"form-template":t.formTemplate,"show-sub":t.showSub,themeTemplate:t.themeTemplate,onRendered:t.renderSuccess},null,8,["id","form-template","show-sub","themeTemplate","onRendered"])]),_:3},16,["title","width","enableComment","onRegister"])}const ie=J(z,[["render",A]]);export{ie as default};