1 |
- import{d as z,u as D,K as q,r as _,l as B,y as F,a,o as G,x as J,w as l,g as t,P as K,n as d,i as P,X as S,Y as U,D as j,B as M,G as X,J as Y,_ as A,__tla as H}from"./index-3fb48822.js";import{_ as L,__tla as N}from"./ContentWrap-afa47a64.js";import{u as O,__tla as Q}from"./tagsView-c579cf12.js";import W,{__tla as Z}from"./BasicInfoForm-cf8b443b.js";import $,{__tla as aa}from"./ColumInfoForm-b2e6b3bf.js";import ta,{__tla as la}from"./GenerateInfoForm-7b5c25cc.js";import{g as ea,u as ra,__tla as _a}from"./index-acd7c224.js";import{u as sa,__tla as na}from"./useMessage-b6c78c26.js";import{__tla as oa}from"./el-card-8960fd94.js";import{__tla as ua}from"./formRules-079bdea5.js";import{__tla as ca}from"./dict.type-a78ad055.js";import{__tla as ma}from"./el-dropdown-item-169eb0cc.js";import{__tla as fa}from"./el-tree-select-60925c12.js";import{__tla as ia}from"./dict-51415be4.js";import"./tree-0af4953a.js";import{__tla as da}from"./index-7a04b761.js";let y,ya=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return oa}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{}})()]).then(async()=>{y=A(z({name:"InfraCodegenEditTable",__name:"EditTable",setup(pa){const{t:p}=P(),h=sa(),{push:b,currentRoute:g}=D(),{query:w}=q(),{delView:v}=O(),n=_(!1),o=_("colum"),c=_(),I=_(),m=_(),e=_({table:{},columns:[]}),k=async()=>{var r,s;if(a(e)){await((r=a(c))==null?void 0:r.validate()),await((s=a(m))==null?void 0:s.validate());try{await ra(e.value),h.success(p("common.updateSuccess")),f()}catch{}}},f=()=>{v(a(g)),b("/infra/codegen")};return B(()=>{(async()=>{const r=w.id;if(r){n.value=!0;try{e.value=await ea(r)}finally{n.value=!1}}})()}),(r,s)=>{const u=S,R=U,i=j,x=M,V=X,C=L,E=Y;return F((G(),J(C,null,{default:l(()=>[t(R,{modelValue:a(o),"onUpdate:modelValue":s[0]||(s[0]=T=>K(o)?o.value=T:null)},{default:l(()=>[t(u,{label:"\u57FA\u672C\u4FE1\u606F",name:"basicInfo"},{default:l(()=>[t(a(W),{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(V,null,{default:l(()=>[t(x,{style:{float:"right"}},{default:l(()=>[t(i,{loading:a(n),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})),[[E,a(n)]])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/codegen/EditTable.vue"]])});export{ya as __tla,y as default};
|