import{c as e,s as l,q as a,a6 as s,v as o,x as p,e as m,B as t,y as r,z as n,F as d,C as u,A as i,R as _,ab as c,T as f,G as V,a9 as h}from"./base-lib.js?v=1761009159";import{ag as b,$ as v,_ as j}from"./utils-lib.js?v=1761009159";import{z as y}from"./validator.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const T={class:"flex flex-col p-[2rem]"},w={class:"flex items-center mt-4px"},x=j(e({__name:"import",setup(e,{expose:j}){const{fileName:x,cmdForm:U,cmdFormRef:k}=l(y()),{cmdRules:C,helpList:g,projectTypeRadio:z,onConfirm:P,importPlugin:q,changeProjectType:F,initImportForm:R,$reset_import_form:H}=y();return a(R),s(H),j({onConfirm:P}),(e,l)=>{const a=b,s=c,j=f,y=V,P=v,R=h;return o(),p("div",T,[m(R,{ref_key:"cmdFormRef",ref:k,size:"small",model:r(U),rules:r(C),class:"relative w-full","label-position":"right",onSubmit:l[9]||(l[9]=_(()=>{},["prevent"]))},{default:t(()=>[m(s,{label:"项目类型",prop:"project_type"},{default:t(()=>[m(a,{type:"button",modelValue:r(U).project_type,"onUpdate:modelValue":l[0]||(l[0]=e=>r(U).project_type=e),onChange:r(F),options:r(z)},null,8,["modelValue","onChange","options"])]),_:1}),m(s,{prop:"name",label:"英文名"},{default:t(()=>[m(j,{class:"!w-[19rem]",modelValue:r(U).name,"onUpdate:modelValue":l[1]||(l[1]=e=>r(U).name=e),placeholder:"项目英文名"},null,8,["modelValue"]),l[10]||(l[10]=n("span",{class:"helpTip"},"格式: [0-9A-Za-z_-]+，不要带有空格和特殊字符",-1))]),_:1,__:[10]}),m(s,{prop:"title",label:"中文名"},{default:t(()=>[m(j,{class:"!w-[19rem]",modelValue:r(U).title,"onUpdate:modelValue":l[2]||(l[2]=e=>r(U).title=e),placeholder:"项目中文名"},null,8,["modelValue"]),l[11]||(l[11]=n("span",{class:"helpTip"},"用于显示到列表的名称",-1))]),_:1,__:[11]}),"java"!==r(U).project_type?(o(),p(d,{key:0},[m(s,{prop:"php",label:"PHP版本"},{default:t(()=>[m(j,{class:"!w-[19rem]",modelValue:r(U).php,"onUpdate:modelValue":l[3]||(l[3]=e=>r(U).php=e),placeholder:"如：53,54,55,56,70,71,72"},null,8,["modelValue"]),l[12]||(l[12]=n("span",{class:"helpTip"},'多个请使用","(逗号)隔开，不要使用PHP5.2',-1))]),_:1,__:[12]}),m(s,{prop:"enable_functions",label:"解禁的函数"},{default:t(()=>[m(j,{class:"!w-[19rem]",modelValue:r(U).enable_functions,"onUpdate:modelValue":l[4]||(l[4]=e=>r(U).enable_functions=e),placeholder:"如：system,exec"},null,8,["modelValue"]),l[13]||(l[13]=n("span",{class:"helpTip"},'多个请使用","(逗号)隔开，只解禁必要函数',-1))]),_:1,__:[13]})],64)):(o(),p(d,{key:1},[m(s,{prop:"java_version",label:"JDK版本"},{default:t(()=>[m(j,{class:"!w-[19rem]",modelValue:r(U).java_version,"onUpdate:modelValue":l[5]||(l[5]=e=>r(U).java_version=e),placeholder:"如：jdk1.8.0_371, jdk1.7.0_80"},null,8,["modelValue"]),l[14]||(l[14]=n("span",{class:"helpTip"},'多个请使用","(逗号)隔开',-1))]),_:1,__:[14]}),m(s,{prop:"mysql_version",label:"Mysql版本"},{default:t(()=>[m(j,{class:"!w-[19rem]",modelValue:r(U).mysql_version,"onUpdate:modelValue":l[6]||(l[6]=e=>r(U).mysql_version=e),placeholder:"如：5.5,5.6,5.7,8.0"},null,8,["modelValue"]),l[15]||(l[15]=n("span",{class:"helpTip"},'多个请使用","(逗号)隔开',-1))]),_:1,__:[15]})],64)),m(s,{prop:"version",label:"项目版本"},{default:t(()=>[m(j,{class:"!w-[19rem]",modelValue:r(U).version,"onUpdate:modelValue":l[7]||(l[7]=e=>r(U).version=e),placeholder:"如：5.2.1"},null,8,["modelValue"]),l[16]||(l[16]=n("span",{class:"helpTip"},"当前导入的项目版本",-1))]),_:1,__:[16]}),m(s,{prop:"ps",label:"简介"},{default:t(()=>[m(j,{class:"!w-[29rem]",modelValue:r(U).ps,"onUpdate:modelValue":l[8]||(l[8]=e=>r(U).ps=e)},null,8,["modelValue"])]),_:1}),m(s,{prop:"dep_zip",label:"上传项目包"},{default:t(()=>[n("div",w,[m(y,{title:"导入项目",size:"small",class:"!mr-[.5rem]",onClick:r(q)},{default:t(()=>l[17]||(l[17]=[u("选择文件",-1)])),_:1,__:[17]},8,["onClick"]),n("span",null,i(r(x)),1)])]),_:1}),m(P,{class:"mt-[2rem] ml-[2rem]",options:r(g),"list-style":"disc"},null,8,["options"])]),_:1},8,["model","rules"])])}}}),[["__scopeId","data-v-5973f6af"]]);export{x as default};
