import{G as C,H as x,K as B,_ as L,h as T,L as S,M as V}from"./element-plus-z3MwpXC9.js";import{_ as D,s as N}from"./edit.vue_vue_type_script_setup_true_lang-a7IOZFv0.js";import{d as g,s as R,Z as M,an as $,o as n,c as q,V as t,M as e,a as r,O as c,u as _,L as u,S as f,T as z}from"./@vue-TMcuEboY.js";import"./lodash-es-R-kYiKr_.js";import"./async-validator-DKvM95Vc.js";import"./@element-plus-DRBc1Xzw.js";import"./dayjs-CMfar2R3.js";import"./balanced-match-mNcR6oh4.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@popperjs-D9SI2xQl.js";import"./index-DXEGVToZ.js";import"./nprogress-Cgf5DU8x.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./@vueuse-BQYVjZ5N.js";import"./css-color-function-rJvg8h-6.js";import"./color-B0v57BL7.js";import"./clone-CuIhj1wH.js";import"./color-convert-BGgJB5UM.js";import"./color-name-BQ5IbGbl.js";import"./color-string-BhgG7-8u.js";import"./ms-CzQ2E3wO.js";import"./vue-clipboard3-8CNoFg4V.js";import"./clipboard-Dch_ozqB.js";import"./echarts-BR_QmBtV.js";import"./tslib-BDyQ-Jie.js";import"./zrender-B-CeXLwU.js";import"./highlight.js-D5uP1KGk.js";import"./@highlightjs-KJi31KWJ.js";import"./index-CdmO5-Ss.js";const A={class:"storage"},F=g({name:"storage"}),yt=g({...F,setup(G){const p=R(),a=M({loading:!1,lists:[]}),m=async()=>{try{a.loading=!0,a.lists=await N(),a.loading=!1}catch{a.loading=!1}},v=l=>{var o;(o=p.value)==null||o.open(l)};return m(),(l,o)=>{const b=C,d=x,i=B,h=L,w=T,y=S,k=$("perms"),E=V;return n(),q("div",A,[t(d,{class:"!border-none",shadow:"never"},{default:e(()=>[t(b,{type:"warning",title:"温馨提示：",closable:!1,"show-icon":""},{default:e(()=>o[0]||(o[0]=[r("div",null," 1.使用对象存储，需要将public目录下的资源文件保留原来目录路径传输到对象存储空间。 ",-1),r("div",null,"2.请勿随意切换存储方式，可能导致图片无法查看。",-1),r("div",null," 3.需要在对象存储后台设置域名跨域，否则图片生成场景无法使用，例海报合成等。 ",-1),r("div",null," 4.需将对象存储的图片域名添加到微信小程序官方后台request合法域名和downloadFile合法域名。 ",-1)])),_:1})]),_:1}),c((n(),u(d,{class:"!border-none mt-4",shadow:"never"},{default:e(()=>[t(y,{size:"large",data:_(a).lists},{default:e(()=>[t(i,{label:"储存方式",prop:"name","min-width":"120"}),t(i,{label:"储存位置",prop:"path","min-width":"160"}),t(i,{label:"状态","min-width":"80"},{default:e(({row:s})=>[t(h,{type:s.status==1?"primary":"danger"},{default:e(()=>[f(z(s.status==1?"开启":"关闭"),1)]),_:2},1032,["type"])]),_:1}),t(i,{label:"操作","min-width":"80",fixed:"right"},{default:e(({row:s})=>[c((n(),u(w,{type:"primary",link:"",onClick:H=>v(s.engine)},{default:e(()=>o[1]||(o[1]=[f(" 设置 ")])),_:2},1032,["onClick"])),[[k,["setting.storage/setup"]]])]),_:1})]),_:1},8,["data"])]),_:1})),[[E,_(a).loading]]),t(D,{ref_key:"editRef",ref:p,onSuccess:m},null,512)])}}});export{yt as default};
