1 |
- import{d as q,u as x,Z as A,r as _,b as D,k as F,a,o as J,C as P,A as l,f as t,a1 as j,D as y,P as z,a9 as B,aa as G,J as L,U as M,V as S,Y,__tla as Z}from"./index-f65577b8.js";import{_ as H,__tla as K}from"./ContentWrap.vue_vue_type_script_setup_true_lang-9fbbd655.js";import{u as N,__tla as O}from"./tagsView-207c45f9.js";import{_ as Q,__tla as W}from"./BasicInfoForm.vue_vue_type_script_setup_true_lang-5da39f92.js";import{_ as X,__tla as $}from"./ColumInfoForm.vue_vue_type_script_setup_true_lang-55daad7e.js";import{_ as aa,__tla as ta}from"./GenerateInfoForm.vue_vue_type_script_setup_true_lang-0e7a09ed.js";import{g as la,u as ra,__tla as ea}from"./index-6ea6cc6b.js";import{u as _a,__tla as sa}from"./useMessage-4dbf0ae4.js";import{__tla as oa}from"./el-card-ab53e6aa.js";import{__tla as ua}from"./formRules-632015f2.js";import{__tla as na}from"./dict.type-e06d2528.js";import{__tla as ca}from"./el-dropdown-item-faf29010.js";import{__tla as ma}from"./el-tree-select-27b84fc4.js";import{__tla as fa}from"./dict-fa3ffbd2.js";import"./tree-0af4953a.js";import{__tla as ia}from"./index-efebc2ba.js";let d,ya=Promise.all([(()=>{try{return Z}catch{}})(),(()=>{try{return K}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=q({name:"InfraCodegenEditTable",__name:"EditTable",setup(da){const{t:p}=z(),h=_a(),{push:b,currentRoute:g}=x(),{query:v}=A(),{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 D(()=>{(async()=>{const e=v.id;if(e){o.value=!0;try{r.value=await la(e)}finally{o.value=!1}}})()}),(e,s)=>{const n=B,w=G,i=L,R=M,C=S,E=H,T=Y;return F((J(),P(E,null,{default:l(()=>[t(w,{modelValue:a(u),"onUpdate:modelValue":s[0]||(s[0]=U=>j(u)?u.value=U: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})),[[T,a(o)]])}}})});export{ya as __tla,d as default};
|