← Back
Editing: index221.js
import{ay as s,K as a,hS as e,G as t,e as o}from"./utils-lib.js?v=1765440387";import{c as r,az as p,g as m,q as i,M as c,x as l}from"./base-lib.js?v=1765440387";import{k as n}from"./form-item.js?v=1765440387";import{f as u}from"./validator.js?v=1765440387";import"./__commonjsHelpers__.js?v=1765440387";import"./index94.js?v=1765440387";import"./column.js?v=1765440387";const{getSet:d}=s(),f=o(r({__name:"index",setup(o,{expose:r}){const f=p("popupClose",()=>{}),{refs:{settingData:h}}=s(),{BtForm:g,submit:_,param:j}=t({data:()=>({path:JSON.parse(JSON.stringify(h.value.docker_compose_path))}),options:()=>m(()=>[n("路径","path",{attrs:{class:"!w-[24rem]",placeholder:"请选择compose文件路径"},rules:[{required:!0,message:"请选择compose文件路径",trigger:["blur","change"]}]},()=>(s=>{u({type:"file",path:s.value.path,change:a=>s.value.path=a})})(j))]),submit:async(s,t,o)=>{await t(),(async(s,t)=>{try{a({request:e({data:JSON.stringify({docker_compose_path:s.value.path})}),loading:"正在设置,请稍候...",message:!0,success:({status:s})=>{s&&(d(),t())}})}catch(o){}})(s,f)}});return r({onConfirm:_}),(s,a)=>(i(),c(l(g),{class:"p-[1.6rem]"}))}}),[["__scopeId","data-v-81f61998"]]);export{f as default};
Save File
Cancel