import{d as k,f as e,n,a2 as b,ad as _,af as g,k as h}from"./vue-vendor-CxLCUzY4.js";import{A as C}from"./AgvRoutingConfigForm-D3bxnNiX.js";import{J as x}from"./JModal-DqIq_WHF.js";import"./index-Cy4uayzW.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./JDictSelectTag-CalJXNVe.js";import"./useFormItem-IOFWTdED.js";import"./JFormContainer-CRf0114d.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./index-Bdn0r8CG.js";const S=k({__name:"AgvRoutingConfigModal",emits:["register","success"],setup(B,{expose:r,emit:u}){const i=e(""),m=e(800),t=e(!1),o=e(!1),a=e(),c=u;function f(){i.value="新增",t.value=!0,n(()=>{a.value.add()})}function d(l){i.value=o.value?"详情":"编辑",t.value=!0,n(()=>{a.value.edit(l)})}function p(){a.value.submitForm()}function v(){s(),c("success")}function s(){t.value=!1}return r({add:f,edit:d,disableSubmit:o}),(l,w)=>(b(),_(x,{title:i.value,width:m.value,visible:t.value,onOk:p,okButtonProps:{class:{"jee-hidden":o.value}},onCancel:s,cancelText:"关闭"},{default:g(()=>[h(C,{ref_key:"registerForm",ref:a,onOk:v,formDisabled:o.value,formBpm:!1},null,8,["formDisabled"])]),_:1},8,["title","width","visible","okButtonProps"]))}});export{S as default};
