test_lgq/niucloud/public/admin/assets/edit-5677190c.js
2024-01-24 17:36:08 +08:00

2 lines
19 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{d as $e,O as Ee,f as Se,r as h,cQ as Ne,N as a,v as De,n as Fe,q as E,h as r,c as k,y as Ie,a as i,u as n,t as _,e as t,w as d,F as w,G as U,I as b,B as $,i as v,D as me,cz as L,a4 as ie,a8 as Pe,R as Re,W as Be,X as Me,as as qe,aF as Ae,Y as Le,aD as Oe,ah as ze,aB as Ge,E as je,aj as Ke,az as Je,aA as We,aG as Qe,aE as Xe,$ as Ye,a0 as He,p as Ze,g as el,_ as ll}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{_ as al}from"./edit-associated.vue_vue_type_script_setup_true_async_true_lang-84f9dad8.js";import{_ as tl}from"./edit-view-type.vue_vue_type_script_setup_true_async_true_lang-c96e768c.js";import{_ as nl}from"./edit-verify.vue_vue_type_script_setup_true_async_true_lang-a3f3db3b.js";import{g as ol,o as dl,p as sl,q as ul,r as ml}from"./tools-123d2a10.js";import{a3 as re}from"./sys-8ead7f22.js";import{S as il}from"./sortable.esm-be94e56d.js";/* empty css */import"./dict-1d5574f0.js";/* empty css */const x=S=>(Ze("data-v-dcd148dc"),S=S(),el(),S),rl={class:"main-container mb-80"},pl={class:"detail-head !mb-[10px]"},cl=x(()=>i("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1)),_l={class:"ml-[1px]"},bl=x(()=>i("span",{class:"adorn"},"|",-1)),fl={class:"right"},vl=x(()=>i("p",{class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"}," 生成代码所属功能模块,对应路由名称,例如会员模块,充值模块,订单模块等",-1)),yl=x(()=>i("p",{class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"}," 命名规范,小写,多个单词使用下划线连接,例如: memberarticle_category",-1)),hl=x(()=>i("p",{class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"}," 生成代码所属文件名称controllermodelservice等类型文件名",-1)),xl=x(()=>i("p",{class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"}," 命名规范,小写,多个单词使用下划线连接,例如: article_category",-1)),Vl=x(()=>i("i",{class:"iconfont icontuodong vues-rank cursor-move"},null,-1)),gl={class:"flex items-center"},kl={class:"flex items-center"},wl=x(()=>i("p",{class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"}," 物理删除:从表中把记录移除。软删除:通过标识使得这条记录在系统逻辑层面上不可见",-1)),Cl=x(()=>i("p",{class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"}," 软删除字段需为int类型并且默认值为0",-1)),Tl=x(()=>i("p",{class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"},"弹出:弹出框编辑。新页面:跳转页面编辑。",-1)),Ul=x(()=>i("p",{class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"},"列表排序规则字段。",-1)),$l=x(()=>i("p",{class:"text-[12px] text-[#a9a9a9] leading-normal mt-[5px]"},"列表排序规则。",-1)),El={class:"mb-[20px]"},Sl={class:"fixed-footer-wrap"},Nl={class:"fixed-footer"},Dl=$e({__name:"edit",setup(S){const O=Ee(),z=Se(),pe=O.meta.title,G=parseInt(O.query.id||0),V=h(!0),j=Ne(),K=h(0),J=h("basicSettings"),W={id:"",table_name:"",table_content:"",module_name:"",class_name:"",edit_type:1,table_column:[],editFiledIndex:0},ce=["=","!=",">",">=","<","<=","LIKE","BETWEEN"],_e=[{label:a("formInput"),value:"input"},{label:a("formTextarea"),value:"textarea"},{label:a("formSelect"),value:"select"},{label:a("formRadio"),value:"radio"},{label:a("formCheckbox"),value:"checkbox"},{label:a("formDateTime"),value:"datetime"},{label:a("formImageSelect"),value:"imageSelect"},{label:a("formEditor"),value:"editor"},{label:a("formNumber"),value:"number"}],be=[{label:"无需验证",value:""},{label:a("mobileVerify"),value:"mobile"},{label:a("numberVerify"),value:"number"},{label:a("idCardVerify"),value:"idCard"},{label:a("emailVerify"),value:"email"},{label:"",value:"max"},{label:"",value:"min"},{label:"",value:"between"}],Q=h([]),X=s=>{ol({search:s}).then(o=>{Q.value=o.data,me(()=>{Y()})})},Y=()=>{const s=j.value.$el.querySelector(".el-table__body-wrapper tbody");il.create(s,{handle:".vues-rank",animation:300,onEnd({newIndex:o,oldIndex:u}){const f=e.table_column,y=f.splice(u,1)[0];f.splice(o,0,y),K.value+=1,me(()=>{Y()})}})};De(()=>{X("")});const fe=s=>{e.delete_column_name=s?e.table_column[e.table_column.length-1].column_name:""},ve=s=>{e.order_type=s?1:0},e=Fe({...W});E(()=>e.addon_name?`addon${e.addon_name?"\\"+e.addon_name:""}\\app\\adminapi\\controller${e.module_name?"\\"+e.module_name:""}${e.class_name?"\\"+e.class_name:""}`:`app\\adminapi\\controller${e.module_name?"\\"+e.module_name:""}${e.class_name?"\\"+e.class_name:""}`),E(()=>e.addon_name?`addon${e.addon_name?"\\"+e.addon_name:""}\\app\\model${e.module_name?"\\"+e.module_name:""}${e.class_name?"\\"+e.class_name:""}`:`app\\model${e.module_name?"\\"+e.module_name:""}${e.class_name?"\\"+e.class_name:""}`),E(()=>e.addon_name?`addon${e.addon_name?"\\"+e.addon_name:""}\\app\\validate${e.module_name?"\\"+e.module_name:""}${e.class_name?"\\"+e.class_name:""}`:`app\\validate${e.module_name?"\\"+e.module_name:""}${e.class_name?"\\"+e.class_name:""}`),E(()=>e.addon_name?`addon${e.addon_name?"\\"+e.addon_name:""}\\admin\\src`:"admin\\src"),E(()=>e.addon_name?`addon${e.addon_name?"\\"+e.addon_name:""}\\app\\adminapi\\route${e.module_name?"\\"+e.module_name:""}`:`app\\adminapi\\route${e.module_name?"\\"+e.module_name:""}`),G&&(async(s=0)=>{Object.assign(e,W);const o=await(await dl(s)).data;Object.keys(o).forEach(u=>{o[u]!=null&&(e[u]=o[u])}),e.table_column.forEach(u=>{u.betweenMin=L(u.min_number),u.betweenMax=L(u.max_number)}),e.addon_name!=""&&H(e.addon_name),V.value=!1})(G);const ye=h(),R=h([]),N=h([]);(async()=>{const{data:s}=await re();R.value=[{menu_name:"顶级",menu_key:""}],R.value.push(...s)})();const H=async s=>{const{data:o}=await re(s);N.value=o},he=async s=>{e.parent_menu="",s!=""&&(await H(s),N.value[0]&&(e.parent_menu=N.value[0].menu_key))},B=h(0),Z=h(),ee=(s,o)=>{B.value=o,Z.value.setFormData(s)},xe=s=>{B.value!=-1?e.relations.splice(B.value,1,s):e.relations.unshift(s)},Ve=s=>{e.relations.splice(s,1)},M=async s=>{const o=L(e);o.table_column=JSON.stringify(o.table_column.map(u=>(u.is_search||(u.query_type=""),(u.validate_type==="between"||u.view_type==="number")&&(u.max_number=u.betweenMax,u.min_number=u.betweenMin),["select","radio","checkbox"].includes(u.view_type)||(u.dict_type=""),u))),o.relations=JSON.stringify(o.relations),V.value=!0,sl(o).then(u=>{s===3?ge():s===2?le(s):(V.value=!1,ie({type:"success",message:"操作成功"}),setTimeout(()=>{window.codeActiveName="codeList",q()},650))}).catch(()=>{V.value=!1})},ge=()=>{ul({id:e.id}).then(s=>{V.value=!1,Pe.confirm(s.msg!="2"?a("saveAndSyncText"):a("saveAndSyncText1"),a("warning"),{confirmButtonText:a("confirm"),cancelButtonText:a("cancel")}).then(()=>{V.value=!0,le(3)}).catch(()=>{})}).catch(()=>{V.value=!1})},le=s=>{ml({id:e.id,generate_type:s}).then(o=>{V.value=!1,ie({type:"success",message:"操作成功"}),window.open(Re(o.data.file),"_blank"),setTimeout(()=>{window.codeActiveName="codeList",q()},650)}).catch(()=>{V.value=!1})},D=h(0),ae=h(null),te=h(null),F=(s,o)=>{var u;(["max","min","between"].includes(s.validate_type)||s.view_type==="number")&&(D.value=o,(u=ae.value)==null||u.setFormData(s))},ke=s=>{e.table_column.splice(D.value,1,s)},ne=(s,o)=>{var u;["input","textarea"].includes(s.view_type)||(s.validate_type=""),["select","radio","checkbox"].includes(s.view_type)?(D.value=o,(u=te.value)==null||u.setFormData(s)):s.view_type==="number"&&F(s,o)},we=s=>{e.table_column.splice(D.value,1,s)},q=()=>{z.push({path:"/tools/code"})};return(s,o)=>{const u=Be,f=Me,y=qe,C=Ae,oe=Le,I=Oe,c=ze,T=Ge,g=je,de=Ke,P=Je,se=We,ue=Qe,Ce=Xe,Te=Ye,Ue=He;return r(),k(w,null,[Ie((r(),k("div",rl,[i("div",pl,[i("div",{class:"left",onClick:o[0]||(o[0]=l=>n(z).push({path:"/tools/code"}))},[cl,i("span",_l,_(n(a)("returnToPreviousPage")),1)]),bl,i("span",fl,_(n(pe)),1)]),t(Te,{class:"box-card !border-none",shadow:"never"},{default:d(()=>[t(Ce,{modelValue:J.value,"onUpdate:modelValue":o[14]||(o[14]=l=>J.value=l),class:"demo-tabs"},{default:d(()=>[t(I,{label:n(a)("basicSettings"),name:"basicSettings"},{default:d(()=>[t(oe,{model:e,"label-width":"70px",class:"page-form"},{default:d(()=>[t(f,{label:n(a)("tableName")},{default:d(()=>[t(u,{modelValue:e.table_name,"onUpdate:modelValue":o[1]||(o[1]=l=>e.table_name=l),disabled:"",placeholder:n(a)("tableNamePlaceholder"),class:"input-width",maxlength:"64"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(f,{label:n(a)("tableContent")},{default:d(()=>[t(u,{modelValue:e.table_content,"onUpdate:modelValue":o[2]||(o[2]=l=>e.table_content=l),clearable:"",placeholder:n(a)("tableContentPlaceholder"),class:"input-width",maxlength:"64"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(f,{label:n(a)("addon")},{default:d(()=>[t(C,{class:"input-width",placeholder:n(a)("addonPlaceholder1"),modelValue:e.addon_name,"onUpdate:modelValue":o[3]||(o[3]=l=>e.addon_name=l),filterable:"",remote:"",clearable:"","remote-method":X,onChange:he},{default:d(()=>[(r(!0),k(w,null,U(Q.value,l=>(r(),b(y,{label:l.title,value:l.key,key:l.key},null,8,["label","value"]))),128))]),_:1},8,["placeholder","modelValue"])]),_:1},8,["label"]),t(f,{label:n(a)("moduleName")},{default:d(()=>[i("div",null,[t(u,{modelValue:e.module_name,"onUpdate:modelValue":o[4]||(o[4]=l=>e.module_name=l),clearable:"",placeholder:n(a)("moduleNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"]),vl,yl])]),_:1},8,["label"]),t(f,{label:n(a)("className")},{default:d(()=>[i("div",null,[t(u,{modelValue:e.class_name,"onUpdate:modelValue":o[5]||(o[5]=l=>e.class_name=l),clearable:"",placeholder:n(a)("classNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"]),hl,xl])]),_:1},8,["label"])]),_:1},8,["model"])]),_:1},8,["label"]),t(I,{label:n(a)("fieldSettings"),name:"fieldSettings"},{default:d(()=>[(r(),b(de,{data:e.table_column,size:"large",ref_key:"tableRef",ref:j,key:K.value},{default:d(()=>[t(c,{align:"center",label:"操作",width:"80"},{default:d(()=>[Vl]),_:1}),t(c,{label:n(a)("columnName"),prop:"column_name","min-width":"130px"},null,8,["label"]),t(c,{label:n(a)("columnComment"),prop:"","min-width":"220px"},{default:d(({row:l})=>[t(u,{class:"",modelValue:l.column_comment,"onUpdate:modelValue":m=>l.column_comment=m,placeholder:n(a)("columnCommentPlaceholder")},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:1},8,["label"]),t(c,{label:n(a)("columnType"),prop:"column_type",width:"100px"},null,8,["label"]),t(c,{label:n(a)("isPk"),prop:"",align:"center",width:"65px"},{default:d(({row:l})=>[t(T,{modelValue:l.is_pk,"onUpdate:modelValue":m=>l.is_pk=m,disabled:"","true-label":1,"false-label":0},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),t(c,{label:n(a)("isRequired"),prop:"",align:"center",width:"65px"},{default:d(({row:l})=>[t(T,{modelValue:l.is_required,"onUpdate:modelValue":m=>l.is_required=m,"true-label":1,"false-label":0},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),t(c,{label:n(a)("isInsert"),prop:"",align:"center",width:"65px"},{default:d(({row:l})=>[t(T,{modelValue:l.is_insert,"onUpdate:modelValue":m=>l.is_insert=m,"true-label":1,"false-label":0},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),t(c,{label:n(a)("isUpdate"),prop:"",align:"center",width:"65px"},{default:d(({row:l})=>[t(T,{modelValue:l.is_update,"onUpdate:modelValue":m=>l.is_update=m,"true-label":1,"false-label":0},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),t(c,{label:n(a)("isLists"),prop:"",align:"center",width:"65px"},{default:d(({row:l})=>[t(T,{modelValue:l.is_lists,"onUpdate:modelValue":m=>l.is_lists=m,"true-label":1,"false-label":0},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),t(c,{label:n(a)("isSearch"),prop:"",align:"center",width:"65px"},{default:d(({row:l})=>[t(T,{modelValue:l.is_search,"onUpdate:modelValue":m=>l.is_search=m,"true-label":1,"false-label":0},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),t(c,{label:n(a)("queryType"),prop:"","min-width":"170px"},{default:d(({row:l})=>[i("div",gl,[l.is_search?(r(),b(C,{key:0,class:"",placeholder:n(a)("selectPlaceholder"),modelValue:l.query_type,"onUpdate:modelValue":m=>l.query_type=m},{default:d(()=>[(r(),k(w,null,U(ce,(m,p)=>t(y,{label:m,value:m,key:p},null,8,["label","value"])),64))]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue"])):$("",!0)])]),_:1},8,["label"]),t(c,{label:n(a)("formType"),prop:"","min-width":"225px"},{default:d(({row:l,$index:m})=>[t(C,{class:"w-[146px]",placeholder:n(a)("selectPlaceholder"),modelValue:l.view_type,"onUpdate:modelValue":p=>l.view_type=p,onChange:p=>ne(l,m)},{default:d(()=>[(r(),k(w,null,U(_e,(p,A)=>t(y,{label:p.label,value:p.value,key:A},null,8,["label","value"])),64))]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue","onChange"]),["select","radio","checkbox"].includes(l.view_type)?(r(),b(g,{key:0,class:"ml-[10px]",type:"primary",link:"",onClick:p=>ne(l,m)},{default:d(()=>[v(_(n(a)("setUp")),1)]),_:2},1032,["onClick"])):$("",!0),l.view_type==="number"?(r(),b(g,{key:1,class:"ml-[10px]",type:"primary",link:"",onClick:p=>F(l,m)},{default:d(()=>[v(_(n(a)("setUp")),1)]),_:2},1032,["onClick"])):$("",!0)]),_:1},8,["label"]),t(c,{label:n(a)("verifyType"),prop:"","min-width":"260px"},{default:d(({row:l,$index:m})=>[i("div",kl,[t(C,{class:"w-[196px]",placeholder:n(a)("selectPlaceholder"),modelValue:l.validate_type,"onUpdate:modelValue":p=>l.validate_type=p,onChange:p=>F(l,m),disabled:!["input","textarea"].includes(l.view_type)},{default:d(()=>[(r(),k(w,null,U(be,(p,A)=>(r(),k(w,{key:A},[p.value==="max"?(r(),b(y,{key:0,value:p.value,label:"最大输入字符"},null,8,["value"])):p.value==="min"?(r(),b(y,{key:1,value:p.value,label:"最小输入字符"},null,8,["value"])):p.value==="between"?(r(),b(y,{key:2,value:p.value,label:"输入字符区间"},null,8,["value"])):(r(),b(y,{key:3,label:p.label,value:p.value},null,8,["label","value"]))],64))),64))]),_:2},1032,["placeholder","modelValue","onUpdate:modelValue","onChange","disabled"]),["max","min","between"].includes(l.validate_type)?(r(),b(g,{key:0,class:"ml-[10px]",type:"primary",link:"",onClick:p=>F(l,m)},{default:d(()=>[v(_(n(a)("setUp")),1)]),_:2},1032,["onClick"])):$("",!0)])]),_:1},8,["label"])]),_:1},8,["data"]))]),_:1},8,["label"]),t(I,{label:n(a)("generationSettings"),name:"generationSettings"},{default:d(()=>[t(oe,{model:e,class:"page-form","label-width":"140px",ref_key:"formRef",ref:ye,rules:s.rules},{default:d(()=>[t(f,{label:n(a)("deleteType")},{default:d(()=>[i("div",null,[t(se,{modelValue:e.is_delete,"onUpdate:modelValue":o[6]||(o[6]=l=>e.is_delete=l),onChange:fe},{default:d(()=>[t(P,{label:0},{default:d(()=>[v(_(n(a)("physicalDeletion")),1)]),_:1}),t(P,{label:1},{default:d(()=>[v(_(n(a)("softDeletion")),1)]),_:1})]),_:1},8,["modelValue"]),wl])]),_:1},8,["label"]),e.is_delete?(r(),b(f,{key:0,prop:"delete_column_name",label:n(a)("deleteField")},{default:d(()=>[i("div",null,[t(C,{class:"input-width",placeholder:n(a)("deleteFieldPlaceholder"),modelValue:e.delete_column_name,"onUpdate:modelValue":o[7]||(o[7]=l=>e.delete_column_name=l)},{default:d(()=>[(r(!0),k(w,null,U(e.table_column,(l,m)=>(r(),b(y,{label:`${l.column_name}:${l.column_comment}`,value:l.column_name,key:m},null,8,["label","value"]))),128))]),_:1},8,["placeholder","modelValue"]),Cl])]),_:1},8,["label"])):$("",!0),t(f,{label:n(a)("editType")},{default:d(()=>[i("div",null,[t(se,{modelValue:e.edit_type,"onUpdate:modelValue":o[8]||(o[8]=l=>e.edit_type=l),placeholder:n(a)("editTypePlaceholder")},{default:d(()=>[t(P,{label:1},{default:d(()=>[v(_(n(a)("popup")),1)]),_:1}),t(P,{label:2},{default:d(()=>[v(_(n(a)("page")),1)]),_:1})]),_:1},8,["modelValue","placeholder"]),Tl])]),_:1},8,["label"]),t(f,{label:n(a)("orderColumnName")},{default:d(()=>[i("div",null,[t(C,{class:"input-width",placeholder:n(a)("orderColumnNamePlaceholder"),modelValue:e.order_column_name,"onUpdate:modelValue":o[9]||(o[9]=l=>e.order_column_name=l),clearable:"",onChange:ve},{default:d(()=>[(r(!0),k(w,null,U(e.table_column,(l,m)=>(r(),b(y,{label:`${l.column_name}:${l.column_comment}`,value:l.column_name,key:m},null,8,["label","value"]))),128))]),_:1},8,["placeholder","modelValue"]),Ul])]),_:1},8,["label"]),e.order_column_name?(r(),b(f,{key:1,label:n(a)("orderType")},{default:d(()=>[i("div",null,[t(C,{class:"input-width",placeholder:n(a)("orderTypePlaceholder"),modelValue:e.order_type,"onUpdate:modelValue":o[10]||(o[10]=l=>e.order_type=l)},{default:d(()=>[t(y,{label:"正序 asc",value:1}),t(y,{label:"倒序 desc",value:2})]),_:1},8,["placeholder","modelValue"]),$l])]),_:1},8,["label"])):$("",!0),t(f,{label:n(a)("menuType")},{default:d(()=>[e.addon_name!=""?(r(),b(ue,{key:0,class:"input-width",clearable:"",modelValue:e.parent_menu,"onUpdate:modelValue":o[11]||(o[11]=l=>e.parent_menu=l),props:{label:"menu_name",value:"menu_key"},data:N.value,"check-strictly":"","render-after-expand":!1},null,8,["modelValue","data"])):(r(),b(ue,{key:1,class:"input-width",modelValue:e.parent_menu,"onUpdate:modelValue":o[12]||(o[12]=l=>e.parent_menu=l),clearable:"",props:{label:"menu_name",value:"menu_key"},data:R.value,"check-strictly":"","render-after-expand":!1},null,8,["modelValue","data"]))]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["label"]),t(I,{label:n(a)("associatedConfiguration"),name:"associatedConfiguration"},{default:d(()=>[i("div",El,[t(g,{type:"primary",class:"w-[100px]",onClick:o[13]||(o[13]=l=>ee(null,-1))},{default:d(()=>[v(_(n(a)("insertAssociated")),1)]),_:1})]),t(de,{data:e.relations,size:"large"},{default:d(()=>[t(c,{label:n(a)("associatedType"),prop:"type","min-width":"130px"},null,8,["label"]),t(c,{label:n(a)("associatedName"),prop:"name","min-width":"130px"},null,8,["label"]),t(c,{label:n(a)("addons"),prop:"addon","min-width":"130px"},null,8,["label"]),t(c,{label:n(a)("associatedModel"),prop:"model","min-width":"130px"},null,8,["label"]),t(c,{label:n(a)("localKey"),prop:"local_key","min-width":"130px"},null,8,["label"]),t(c,{label:n(a)("foreignKey"),prop:"foreign_key","min-width":"130px"},null,8,["label"]),t(c,{label:n(a)("operation"),align:"right","min-width":"130px"},{default:d(({row:l,$index:m})=>[t(g,{type:"primary",link:"",onClick:p=>ee(l,m)},{default:d(()=>[v(_(n(a)("edit")),1)]),_:2},1032,["onClick"]),t(g,{type:"primary",link:"",onClick:p=>Ve(m)},{default:d(()=>[v(_(n(a)("delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])]),_:1},8,["label"])]),_:1},8,["modelValue"])]),_:1})])),[[Ue,V.value]]),t(al,{ref_key:"editDialog",ref:Z,table_name:e.table_name,onComplete:xe},null,8,["table_name"]),t(tl,{ref_key:"editViewTypeRef",ref:te,onComplete:we},null,512),t(nl,{ref_key:"editVerifyRef",ref:ae,onComplete:ke},null,512),i("div",Sl,[i("div",Nl,[t(g,{type:"primary",onClick:o[15]||(o[15]=l=>M(1))},{default:d(()=>[v(_(n(a)("save")),1)]),_:1}),t(g,{type:"primary",onClick:o[16]||(o[16]=l=>M(3))},{default:d(()=>[v(_(n(a)("saveAndSync")),1)]),_:1}),t(g,{type:"primary",onClick:o[17]||(o[17]=l=>M(2))},{default:d(()=>[v(_(n(a)("saveAndDownload")),1)]),_:1}),t(g,{onClick:o[18]||(o[18]=l=>q())},{default:d(()=>[v(_(n(a)("cancel")),1)]),_:1})])])],64)}}});const ma=ll(Dl,[["__scopeId","data-v-dcd148dc"]]);export{ma as default};