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

2 lines
3.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var p=(i,l,t)=>new Promise((c,a)=>{var f=o=>{try{n(t.next(o))}catch(s){a(s)}},e=o=>{try{n(t.throw(o))}catch(s){a(s)}},n=o=>o.done?c(o.value):Promise.resolve(o.value).then(f,e);n((t=t.apply(i,l)).next())});import{B as b}from"./index-BDvqZ5j4.js";import{B as T}from"./BasicForm-ClUSoD_-.js";import"./helper-DcLcf4v6.js";import{u as j}from"./useForm-D61zovon.js";import{dZ as v,s as L,au as R}from"./index-X7Y8jykP.js";import{u as U}from"./useSchemas-BdPtDHjG.js";import{a as O}from"./useModal-DaJ3Bflg.js";import{e as Q,n as x,y as S,z as V,A as w,K as d,f as C}from"./vue-vendor-DNhG1Cve.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"./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"./FolderOpenOutlined-SzIPA7z0.js";const $=Q({name:"CgformExtConfigModel",components:{BasicModal:b,BasicForm:T,ConfigProvider:v},props:{parentForm:{type:Object,required:!0}},emits:["register","ok"],setup(i,{emit:l}){const{createMessage:t}=L(),{formSchemas:c}=U(i,{onJoinQueryChange:k,onReportPrintShowChange:B,onFormLabelLengthShow:M}),[a,{resetFields:f,setFieldsValue:e,getFieldsValue:n,clearValidate:o,validate:s}]=j({schemas:c,showActionButtonGroup:!1,labelAlign:"right"}),[y,{closeModal:u}]=O(r=>p(null,null,function*(){yield f(),yield e(r.extConfigJson)}));function F(){return p(this,null,function*(){yield o(),yield x();try{const r=yield s();l("ok",r),u()}catch(r){}})}function _(){u()}const g="{{ window._CONFIG['domianURL'] }}/jmreport/view/{积木报表ID}";function B(r){return p(this,null,function*(){let m=n().reportPrintUrl;r===0?m===g&&(yield e({reportPrintUrl:""})):r===1&&m===""&&(yield e({reportPrintUrl:g})),o("reportPrintUrl")})}function M(r){return p(this,null,function*(){r==0&&(yield e({formLabelLength:null})),yield o("formLabelLength")})}function k(r){if(r===1){let{themeTemplate:m,isTree:P,tableType:h}=i.parentForm.getFieldsValue(["themeTemplate","isTree","tableType"]);m==="erp"&&(t.warning("请注意erp风格不支持联合查询配置无效!"),e({joinQuery:0})),m==="innerTable"&&(t.warning("请注意:内嵌风格不支持联合查询,配置无效!"),e({joinQuery:0})),h===1?(t.warning("请注意:单表不支持联合查询,配置无效!"),e({joinQuery:0})):h===3?(t.warning("请注意:当前表为附表,请在对应主表配置!"),e({joinQuery:0})):P==="Y"&&(t.warning("请注意:树形列表不支持联合查询,配置无效!"),e({joinQuery:0}))}}return{handleOk:F,handleCancel:_,registerModal:y,registerForm:a}}});function I(i,l,t,c,a,f){const e=d("BasicForm"),n=d("BasicModal"),o=d("ConfigProvider");return V(),S(o,{theme:{token:{fontSize:13}}},{default:w(()=>[C(n,{onRegister:i.registerModal,title:"表单扩展配置项",width:1e3,onOk:i.handleOk,onCancel:i.handleCancel},{default:w(()=>[C(e,{onRegister:i.registerForm},null,8,["onRegister"])]),_:1},8,["onRegister","onOk","onCancel"])]),_:1})}const Ce=R($,[["render",I],["__scopeId","data-v-fd61238f"]]);export{Ce as default};