1 |
- import{d as z,u as D,J as q,r as _,l as A,x as O,a,o as S,v as W,w as l,f as t,O as X,n as d,h as j,W as B,X as F,C as G,A as J,D as P,I as U,_ as H,__tla as K}from"./index-bd9277a1.js";import{_ as L,__tla as M}from"./ContentWrap-7c73ab26.js";import{u as N,__tla as Q}from"./tagsView-125e7bbb.js";import Y,{__tla as Z}from"./BasicInfoForm-f8ab9685.js";import $,{__tla as aa}from"./ColumInfoForm-95eb1f1a.js";import ta,{__tla as la}from"./GenerateInfoForm-817faeca.js";import{g as ea,u as ra,__tla as _a}from"./index-7514ceb6.js";import{u as na,__tla as oa}from"./useMessage-274788d4.js";import{__tla as sa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5f6a2d0d.js";import{__tla as ua}from"./el-card-bc8cec83.js";import{__tla as ca}from"./formRules-2675bd28.js";import{__tla as ma}from"./dict.type-bb232104.js";import{__tla as fa}from"./el-dropdown-item-868faedd.js";import{__tla as ia}from"./el-tree-select-9425e295.js";import{__tla as da}from"./dict-4b2e9fd3.js";import"./tree-0af4953a.js";import{__tla as ya}from"./index-ba18c370.js";let y,pa=Promise.all([(()=>{try{return K}catch{}})(),(()=>{try{return M}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})()]).then(async()=>{y=H(z({name:"InfraCodegenEditTable",__name:"EditTable",setup(ha){const{t:p}=j(),h=na(),{push:b,currentRoute:v}=D(),{query:g}=q(),{delView:w}=N(),o=_(!1),s=_("colum"),c=_(),I=_(),m=_(),e=_({table:{},columns:[]}),k=async()=>{var r,n;if(a(e)){await((r=a(c))==null?void 0:r.validate()),await((n=a(m))==null?void 0:n.validate());try{await ra(e.value),h.success(p("common.updateSuccess")),f()}catch{}}},f=()=>{w(a(v)),b("/infra/codegen")};return A(()=>{(async()=>{const r=g.id;if(r){o.value=!0;try{e.value=await ea(r)}finally{o.value=!1}}})()}),(r,n)=>{const u=B,R=F,i=G,x=J,C=P,T=L,V=U;return O((S(),W(T,null,{default:l(()=>[t(R,{modelValue:a(s),"onUpdate:modelValue":n[0]||(n[0]=E=>X(s)?s.value=E:null)},{default:l(()=>[t(u,{label:"\u57FA\u672C\u4FE1\u606F",name:"basicInfo"},{default:l(()=>[t(a(Y),{ref_key:"basicInfoRef",ref:c,table:a(e).table},null,8,["table"])]),_:1}),t(u,{label:"\u5B57\u6BB5\u4FE1\u606F",name:"colum"},{default:l(()=>[t(a($),{ref_key:"columInfoRef",ref:I,columns:a(e).columns},null,8,["columns"])]),_:1}),t(u,{label:"\u751F\u6210\u4FE1\u606F",name:"generateInfo"},{default:l(()=>[t(a(ta),{ref_key:"generateInfoRef",ref:m,table:a(e).table,columns:a(e).columns},null,8,["table","columns"])]),_:1})]),_:1},8,["modelValue"]),t(C,null,{default:l(()=>[t(x,{style:{float:"right"}},{default:l(()=>[t(i,{loading:a(o),type:"primary",onClick:k},{default:l(()=>[d("\u4FDD\u5B58")]),_:1},8,["loading"]),t(i,{onClick:f},{default:l(()=>[d("\u8FD4\u56DE")]),_:1})]),_:1})]),_:1})]),_:1})),[[V,a(o)]])}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/infra/codegen/EditTable.vue"]])});export{pa as __tla,y as default};
|