2 lines
4.9 KiB
Java
2 lines
4.9 KiB
Java
import{d as P,f as x,w as L,ah as d,aC as u,as as f,aG as _,aF as s,k as h,ag as $,aH as O,au as V,av as W}from"./vue-vendor-C7Zq48Yl.js";import{B as j}from"./index-Du0A3ksf.js";import H from"./OnlineFormDetail-B_zriMe5-psm3rdd_.js";import{b as q}from"./useExtendComponent-D3N4jqMD-BdcrIiWO.js";import{t as E}from"./CommentPanel-BqQr23e3.js";import{E as G,n as K}from"./constant-DnbpmwZg-Ddbq-fz2.js";import{h as Q}from"./main.index-Cs5ETdXF.js";import"./index-BI6CMai0.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./vxe-table-vendor-B88kchpX.js";import"./BasicModal-0sAdFEk_.js";import"./ModalHeader-keHdAHWH.js";import"./useTimeout-DDl4l82I.js";import"./index-DeEq83Ov.js";import"./useWindowSizeFn-PRZSD86C.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./DetailForm-Gp8NeqBh-gkWjuVhV.js";import"./index-Dg4HCEvo.js";import"./index-BTq_UON2.js";import"./componentMap-BBZeqR-K.js";import"./useFormItem-BdW6EoZe.js";import"./download-UE0L9Rfp.js";import"./base64Conver-24EVOS6V.js";import"./index-CIBZG4nR.js";import"./index-BhQEwnQQ.js";import"./useCountdown-DqnNWBp6.js";import"./useFormItemSingle-BbRhswfn.js";import"./JSelectUser-B71zikzw.js";import"./props-DAezUTeZ.js";import"./JSelectBiz-CnEaVMUF.js";import"./JAddInput-D6qcyZjQ.js";import"./areaDataUtil-CbYCy3Ig.js";import"./index-CNkz_PUv.js";import"./index-CUdllngZ.js";import"./bem-EhXRi4nW.js";import"./props-D4vdsy3J.js";import"./useContextMenu-Cwx1lIOK.js";import"./depart.api-DeMNV8zW.js";import"./TreeIcon-DE4jdeZV.js";import"./JSelectDept-DRDVeruW.js";import"./JPopup-Bva6u6tk.js";import"./usePopBiz-CG0vVpgI.js";import"./useMethods-DVip17X8.js";import"./JEllipsis-DqRFTSm0.js";import"./JUpload-Cz9HN61B.js";import"./index-MGIrEF-A.js";import"./index-MREkPhsT.js";import"./index-Di-j2gt4.js";import"./BasicForm-BJnSRkIE.js";import"./useForm-BZtHZyx2.js";import"./JAreaLinkage-BeRUFHSB.js";import"./JCodeEditor-CLVZA7Uj.js";import"./htmlmixed-NhwyF9-q.js";import"./vue-CgbRSACy.js";/* empty css */import"./EasyCronInput-7xfJ3nBh.js";import"./index-CTZQXB0y.js";import"./user.api-C1eRtqao.js";import"./customExpression-C9jki4vL.js";import"./index-BgJbdjPf.js";import"./BasicTable-DfLkrEeh.js";import"./injectionKey-DPVn4AgL.js";import"./useListPage-BWia52we.js";import"./LinkTableListPiece-DrNSark7-C1dHz4Dy.js";import"./DictColors-Cn4yPqfS.js";import"./OnlineSelectCascade-BWTVAfOS-Cb16XdEY.js";import"./JModalTip-VeUmOvUx-C10ppy-S.js";import"./OnlineSubFormDetail-BQCmvSrP-BWc6TREz.js";import"./useComment-Cm7xlwhe.js";import"./index-BHWalL74.js";var X=(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=P({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:H,CommentPanel:E},emits:["success","register","formConfig"],setup(t,{emit:n}){const o=x();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:F,renderSuccess:y,formRendered:R,showSub:T,tableName:k,formDataId:v,enableComment:M,themeTemplate:D}=q(!1,{emit:n},l);L(()=>t.id,I,{immediate:!0});function I(){return X(this,null,function*(){if(R.value=!1,!t.id)return;let c={};(t.source===G||t.source===K)&&(c.tabletype=3),yield B(t.id,c)})}return{title:i,onlineFormCompRef:S,renderSuccess:y,registerModal:a,handleSubmit:b,handleCancel:g,modalWidth:p,formTemplate:w,disableSubmit:r,cgButtonList:m,handleCgButtonClick:e,isTreeForm:N,pidFieldName:F,submitLoading:C,showSub:T,tableName:k,formDataId:v,enableComment:M,commentPanelRef:o,themeTemplate:D}}});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,_({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(()=>[V("span",null,W(t.cancelBtnCfg.buttonName),1)]),_:1},8,["onClick"])):$("",!0),O(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 he=Q(z,[["render",A]]);export{he as default};
|