2 lines
5.1 KiB
Java
2 lines
5.1 KiB
Java
var u=(e,n,o)=>new Promise((p,i)=>{var l=t=>{try{m(o.next(t))}catch(r){i(r)}},a=t=>{try{m(o.throw(t))}catch(r){i(r)}},m=t=>t.done?p(t.value):Promise.resolve(t.value).then(l,a);m((o=o.apply(e,n)).next())});import{B as L}from"./index-BDvqZ5j4.js";import P from"./OnlineFormDetail-CxCNVebu.js";import{u as v}from"./useAutoModal-C9ZiBxOc.js";import{C as A}from"./CommentPanel-Dk7IUKj3.js";import{a as E,I as O}from"./constant-DfcHKztj.js";import{e as V,h as j,r as H,y as c,z as b,A as s,B as W,K as d,f as C,H as q,L as z,Q as G,G as K}from"./vue-vendor-DNhG1Cve.js";import{au as Q}from"./index-X7Y8jykP.js";import"./BasicModal-xH56XuRZ.js";import"./ModalHeader-Sr8KwhJJ.js";import"./useTimeout-D5AmIBZw.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./index-BzChaRPg.js";import"./useWindowSizeFn-C-0M9_Ul.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./useAppInject-DPZGPcR3.js";import"./index-CuWaQdlK.js";import"./index-DO7ZhK45.js";import"./DetailForm-DL2xTtRt.js";import"./index-Cq6YxX27.js";import"./JDictSelectUtil-DwVTEDM5.js";import"./Area-CONPDlNK.js";import"./pcaUtils-DD1r5iUJ.js";import"./LinkTableCard-BUdn9nTb.js";import"./useLinkTable-DuzCQq29.js";import"./placeholderImage-CRpUMlaT.js";import"./MinusCircleFilled-BLRBKPEV.js";import"./useModal-DaJ3Bflg.js";import"./index-C9_hfRup.js";import"./onMountedOrActivated-DhSdLlqP.js";import"./OnlineSubFormDetail-BxYe0rjf.js";import"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import"./BasicForm.vue_vue_type_style_index_0_lang-B29PWQy0.js";import"./index-saD4h7VJ.js";import"./useBreakpoint-DXhPW7nV.js";import"./useEventListener-BRXjwk7A.js";import"./breakpointEnum-BhAg6bcX.js";import"./uniqBy--vsL0WVB.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"./LinkTableSelect-Bxfjs2Wv.js";import"./EditOutlined-drlR34lz.js";import"./OnlineSelectCascade-BuXb37Ka.js";import"./user.api-M95RuX7p.js";import"./customExpression-DKKqya45.js";import"./quarterOfYear-BU2sPnff.js";import"./useEnhance-DSMGDhnx.js";import"./PrinterOutlined-C4QwxYYW.js";import"./UserSelectModal-BFDUCW9t.js";import"./SelectedUserItem-RRb_QZKg.js";import"./index-B4gPlWQt.js";import"./eagerComputed-BTlOruLW.js";import"./index-DSsDi_fL.js";import"./Group-UHkub2tu.js";import"./Checkbox-Dbxs4we4.js";import"./index-BuONesFs.js";import"./index-DfHu-LAS.js";import"./Group-DBzJABA_.js";import"./RadioButton-DRBix2Fq.js";import"./index-Wl3jtD-0.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./useMaxLevel-DE205ncc.js";import"./UploadOutlined-D3m-zwOG.js";import"./index-CeNCCWzL.js";/* empty css */import"./MessageOutlined-BnylU_gE.js";const U=V({name:"OnlineDetailModal",props:{id:{type:String,required:!1,default:""},source:{type:String,default:""},cancelBtnCfg:{type:Object,default:()=>({enabled:!0,buttonName:"关闭",buttonIcon:""})}},components:{BasicModal:L,OnlineFormDetail:P,CommentPanel:A},emits:["success","register","formConfig"],setup(e,{emit:n}){const o=H();function p(){o.value&&o.value.reload()}const{title:i,modalWidth:l,registerModal:a,cgButtonList:m,handleCgButtonClick:t,disableSubmit:r,handleSubmit:h,submitLoading:g,handleCancel:B,handleFormConfig:N,onlineFormCompRef:R,formTemplate:S,isTreeForm:w,pidFieldName:T,renderSuccess:y,formRendered:F,showSub:I,tableName:M,formDataId:k,enableComment:_,themeTemplate:D}=v(!1,{emit:n},p);j(()=>e.id,$,{immediate:!0});function $(){return u(this,null,function*(){if(F.value=!1,!e.id)return;let f={};(e.source===E||e.source===O)&&(f.tabletype=3),yield N(e.id,f)})}return{title:i,onlineFormCompRef:R,renderSuccess:y,registerModal:a,handleSubmit:h,handleCancel:B,modalWidth:l,formTemplate:S,disableSubmit:r,cgButtonList:m,handleCgButtonClick:t,isTreeForm:w,pidFieldName:T,submitLoading:g,showSub:I,tableName:M,formDataId:k,enableComment:_,commentPanelRef:o,themeTemplate:D}}});function J(e,n,o,p,i,l){const a=d("a-button"),m=d("online-form-detail"),t=d("comment-panel"),r=d("BasicModal");return b(),c(r,W({title:e.title,width:e.modalWidth,maxHeight:600,enableComment:e.enableComment,defaultFullscreen:!1},e.$attrs,{onRegister:e.registerModal,wrapClassName:"jeecg-online-detail-modal"}),{footer:s(()=>[e.cancelBtnCfg.enabled?(b(),c(a,{key:"back",onClick:e.handleCancel},{default:s(()=>[G("span",null,K(e.cancelBtnCfg.buttonName),1)]),_:1},8,["onClick"])):q("",!0),z(e.$slots,"footerBtn")]),comment:s(()=>[C(t,{ref:"commentPanelRef",tableName:e.tableName,dataId:e.formDataId},null,8,["tableName","dataId"])]),default:s(()=>[C(m,{ref:"onlineFormCompRef",id:e.id,"form-template":e.formTemplate,"show-sub":e.showSub,themeTemplate:e.themeTemplate,onRendered:e.renderSuccess},null,8,["id","form-template","show-sub","themeTemplate","onRendered"])]),_:3},16,["title","width","enableComment","onRegister"])}const Rt=Q(U,[["render",J]]);export{Rt as default};
|