1 |
- import{d as j,u as x,N as z,r as _,z as B,D,a,o as F,j as J,w as l,i as t,R as M,m as y,B as N,Y as S,Z as G,q as O,I as P,J as U,M as Y,__tla as Z}from"./index-1e808f2e.js";import{_ as A,__tla as H}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{u as K,__tla as L}from"./tagsView-1954bd1b.js";import{_ as Q,__tla as W}from"./BasicInfoForm.vue_vue_type_script_setup_true_lang-bcc32efa.js";import{_ as X,__tla as $}from"./ColumInfoForm.vue_vue_type_script_setup_true_lang-5bb7b706.js";import{_ as aa,__tla as ta}from"./GenerateInfoForm.vue_vue_type_script_setup_true_lang-76699dcc.js";import{g as la,u as ra,__tla as ea}from"./index-b050c2e9.js";import{u as _a,__tla as sa}from"./useMessage-5f9e8917.js";import{__tla as oa}from"./el-card-03b3588b.js";import{__tla as ua}from"./formRules-83fad61e.js";import{__tla as na}from"./dict.type-a94e4f62.js";import{__tla as ca}from"./el-dropdown-item-e91442cd.js";import{__tla as ma}from"./el-tree-select-e8e05888.js";import{__tla as fa}from"./dict-a31cb4ba.js";import"./tree-fd3a041e.js";import{__tla as ia}from"./index-e7765947.js";let d,ya=Promise.all([(()=>{try{return Z}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return L}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=j({name:"InfraCodegenEditTable",__name:"EditTable",setup(da){const{t:p}=N(),h=_a(),{push:b,currentRoute:g}=x(),{query:I}=z(),{delView:v}=K(),o=_(!1),u=_("colum"),c=_(),w=_(),m=_(),r=_({table:{},columns:[]}),k=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=()=>{v(a(g)),b("/infra/codegen")};return B(()=>{(async()=>{const e=I.id;if(e){o.value=!0;try{r.value=await la(e)}finally{o.value=!1}}})()}),(e,s)=>{const n=S,R=G,i=O,V=P,C=U,q=A,E=Y;return D((F(),J(q,null,{default:l(()=>[t(R,{modelValue:a(u),"onUpdate:modelValue":s[0]||(s[0]=T=>M(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:w,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(V,{style:{float:"right"}},{default:l(()=>[t(i,{loading:a(o),type:"primary",onClick:k},{default:l(()=>[y("\u4FDD\u5B58")]),_:1},8,["loading"]),t(i,{onClick:f},{default:l(()=>[y("\u8FD4\u56DE")]),_:1})]),_:1})]),_:1})]),_:1})),[[E,a(o)]])}}})});export{ya as __tla,d as default};
|