import{_ as b,K as v,I as A,L as k,w as y,M as D,N as x}from"./element-plus.9cae3cb1.js";import{_ as L,s as T}from"./edit.vue_vue_type_script_setup_true_lang.3ffe2ffe.js";import{d as f,s as N,_ as R,aq as S,o as a,c as V,V as t,M as e,O as d,u as F,L as s,S as l}from"./@vue.96c135a1.js";import"./lodash-es.bdeecbdb.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.f4694335.js";import"./@element-plus.07bd0514.js";import"./dayjs.37feae28.js";import"./@amap.8a62addd.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.7f83e315.js";import"./lodash.fc1b942f.js";import"./axios.108bc101.js";import"./vue-router.64fdcd9a.js";import"./pinia.aebd7275.js";import"./css-color-function.91b6e704.js";import"./color.d62296c5.js";import"./clone.f2407509.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.80787eb0.js";import"./tslib.60310f1a.js";import"./zrender.6f33727c.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.3d7ee361.js";import"./index.b375235f.js";const M={class:"storage"},$=f({name:"storage"}),ht=f({...$,setup(q){const m=N(),o=R({loading:!1,lists:[]}),p=async()=>{try{o.loading=!0,o.lists=await T(),o.loading=!1}catch{o.loading=!1}},g=i=>{var r;(r=m.value)==null||r.open(i)};return p(),(i,r)=>{const B=v,c=A,u=k,_=b,E=y,h=D,w=S("perms"),C=x;return a(),V("div",M,[t(c,{class:"!border-none",shadow:"never"},{default:e(()=>[t(B,{type:"warning",title:"\u6E29\u99A8\u63D0\u793A\uFF1A1.\u5207\u6362\u5B58\u50A8\u65B9\u5F0F\u540E\uFF0C\u9700\u8981\u5C06\u8D44\u6E90\u6587\u4EF6\u4F20\u8F93\u81F3\u65B0\u7684\u5B58\u50A8\u7AEF\uFF1B2.\u8BF7\u52FF\u968F\u610F\u5207\u6362\u5B58\u50A8\u65B9\u5F0F\uFF0C\u53EF\u80FD\u5BFC\u81F4\u56FE\u7247\u65E0\u6CD5\u67E5\u770B",closable:!1,"show-icon":""})]),_:1}),d((a(),s(c,{class:"!border-none mt-4",shadow:"never"},{default:e(()=>[t(h,{size:"large",data:F(o).lists},{default:e(()=>[t(u,{label:"\u50A8\u5B58\u65B9\u5F0F",prop:"name","min-width":"120"}),t(u,{label:"\u50A8\u5B58\u4F4D\u7F6E",prop:"path","min-width":"160"}),t(u,{label:"\u72B6\u6001","min-width":"80"},{default:e(({row:n})=>[n.status==1?(a(),s(_,{key:0},{default:e(()=>[l("\u5F00\u542F")]),_:1})):(a(),s(_,{key:1,type:"danger"},{default:e(()=>[l("\u5173\u95ED")]),_:1}))]),_:1}),t(u,{label:"\u64CD\u4F5C","min-width":"80",fixed:"right"},{default:e(({row:n})=>[d((a(),s(E,{type:"primary",link:"",onClick:z=>g(n.engine)},{default:e(()=>[l(" \u8BBE\u7F6E ")]),_:2},1032,["onClick"])),[[w,["setting.storage/setup"]]])]),_:1})]),_:1},8,["data"])]),_:1})),[[C,F(o).loading]]),t(L,{ref_key:"editRef",ref:m,onSuccess:p},null,512)])}}});export{ht as default};
