1 |
- import{d as U,u as q,Z as x,r as _,b as A,k as D,a,o as J,C as j,A as l,f as t,a1 as B,D as y,P as F,a9 as G,aa as H,J as M,U as S,V as Y,Y as Z,__tla as z}from"./index-1f518666.js";import{_ as K,__tla as L}from"./ContentWrap.vue_vue_type_script_setup_true_lang-a4de6de9.js";import{u as N,__tla as O}from"./tagsView-5f5ec285.js";import{_ as Q,__tla as W}from"./BasicInfoForm.vue_vue_type_script_setup_true_lang-c0955780.js";import{_ as X,__tla as $}from"./ColumInfoForm.vue_vue_type_script_setup_true_lang-71e7ec26.js";import{_ as aa,__tla as ta}from"./GenerateInfoForm.vue_vue_type_script_setup_true_lang-b4c9fa70.js";import{g as la,u as ra,__tla as ea}from"./index-234f0466.js";import{u as _a,__tla as sa}from"./useMessage-633c11d2.js";import{__tla as oa}from"./el-card-955661ed.js";import{__tla as ua}from"./formRules-c96b6a75.js";import{__tla as na}from"./dict.type-641a4572.js";import{__tla as ca}from"./el-dropdown-item-4b4c8dcc.js";import{__tla as ma}from"./el-tree-select-fc145135.js";import{__tla as fa}from"./dict-167d9193.js";import"./tree-0af4953a.js";import{__tla as ia}from"./index-7c28b232.js";let d,ya=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return W}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ia}catch{}})()]).then(async()=>{d=U({name:"InfraCodegenEditTable",__name:"EditTable",setup(da){const{t:p}=F(),h=_a(),{push:b,currentRoute:g}=q(),{query:v}=x(),{delView:I}=N(),o=_(!1),u=_("colum"),c=_(),k=_(),m=_(),r=_({table:{},columns:[]}),V=async()=>{var e,s;if(a(r)){await((e=a(c))==null?void 0:e.validate()),await((s=a(m))==null?void 0:s.validate());try{await ra(r.value),h.success(p("common.updateSuccess")),f()}catch{}}},f=()=>{I(a(g)),b("/infra/codegen")};return A(()=>{(async()=>{const e=v.id;if(e){o.value=!0;try{r.value=await la(e)}finally{o.value=!1}}})()}),(e,s)=>{const n=G,w=H,i=M,R=S,C=Y,E=K,P=Z;return D((J(),j(E,null,{default:l(()=>[t(w,{modelValue:a(u),"onUpdate:modelValue":s[0]||(s[0]=T=>B(u)?u.value=T:null)},{default:l(()=>[t(n,{label:"\u57FA\u672C\u4FE1\u606F",name:"basicInfo"},{default:l(()=>[t(a(Q),{ref_key:"basicInfoRef",ref:c,table:a(r).table},null,8,["table"])]),_:1}),t(n,{label:"\u5B57\u6BB5\u4FE1\u606F",name:"colum"},{default:l(()=>[t(a(X),{ref_key:"columInfoRef",ref:k,columns:a(r).columns},null,8,["columns"])]),_:1}),t(n,{label:"\u751F\u6210\u4FE1\u606F",name:"generateInfo"},{default:l(()=>[t(a(aa),{ref_key:"generateInfoRef",ref:m,table:a(r).table,columns:a(r).columns},null,8,["table","columns"])]),_:1})]),_:1},8,["modelValue"]),t(C,null,{default:l(()=>[t(R,{style:{float:"right"}},{default:l(()=>[t(i,{loading:a(o),type:"primary",onClick:V},{default:l(()=>[y("\u4FDD\u5B58")]),_:1},8,["loading"]),t(i,{onClick:f},{default:l(()=>[y("\u8FD4\u56DE")]),_:1})]),_:1})]),_:1})]),_:1})),[[P,a(o)]])}}})});export{ya as __tla,d as default};
|