File: /www/server/panel/BTPanel/static/js/index503.js
import{L as r,k as m,gK as u,X as l,cZ as f}from"./utils-lib.js?v=1777008528";import{c as _,aC as d,g,j as h,C,p as k}from"./base-lib.js?v=1777008528";import{e as x}from"./form-item.js?v=1777008528";import{w as y}from"./index3.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";const{getSet:S}=r(),v=e=>{y({type:"file",path:e.value.path,change:t=>e.value.path=t})},b=async(e,t)=>{try{m({request:u({data:JSON.stringify({docker_compose_path:e.value.path})}),loading:"正在设置,请稍候...",message:!0,success:({status:a})=>{a&&(S(),t())}})}catch(a){}},D=_({__name:"index",setup(e,{expose:t}){const a=d("popupClose",()=>{}),{refs:{settingData:p}}=r(),{BtForm:c,submit:n,param:i}=l({data:()=>({path:JSON.parse(JSON.stringify(p.value.docker_compose_path))}),options:()=>g(()=>[x("路径","path",{attrs:{class:"!w-[24rem]",placeholder:"请选择compose文件路径"},rules:[{required:!0,message:"请选择compose文件路径",trigger:["blur","change"]}]},()=>v(i))]),submit:async(o,s,F)=>{await s(),b(o,a)}});return t({onConfirm:n}),(o,s)=>(h(),C(k(c),{class:"p-[1.6rem]"}))}}),I=f(D,[["__scopeId","data-v-f0eb99a7"]]);export{I as default};