2 lines
2.8 KiB
JavaScript
2 lines
2.8 KiB
JavaScript
import{R as v,L as h,M as A,a6 as k,N as y,O as D,w as x}from"./element-plus.2acb577d.js";import{_ as L,s as R}from"./edit.vue_vue_type_script_setup_true_lang.a6f205a0.js";import{d as f,s as T,Z as N,am as M,o as a,c as S,U as e,L as o,M as _,u as F,K as i,R as l}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.81df6f20.js";import"./lodash.6bfd3540.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.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.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";import"./index.f292cd50.js";const V={class:"storage"},$=f({name:"storage"}),Et=f({...$,setup(z){const m=T(),u=N({loading:!1,lists:[]}),p=async()=>{try{u.loading=!0,u.lists=await R(),u.loading=!1}catch{u.loading=!1}},g=r=>{var t;(t=m.value)==null||t.open(r)};return p(),(r,t)=>{const B=v,d=h,s=A,c=k,E=x,w=y,C=M("perms"),b=D;return a(),S("div",V,[e(d,{class:"!border-none",shadow:"never"},{default:o(()=>[e(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}),_((a(),i(d,{class:"!border-none mt-4",shadow:"never"},{default:o(()=>[e(w,{size:"large",data:F(u).lists},{default:o(()=>[e(s,{label:"\u50A8\u5B58\u65B9\u5F0F",prop:"name","min-width":"120"}),e(s,{label:"\u50A8\u5B58\u4F4D\u7F6E",prop:"path","min-width":"160"}),e(s,{label:"\u72B6\u6001","min-width":"80"},{default:o(({row:n})=>[n.status==1?(a(),i(c,{key:0},{default:o(()=>t[0]||(t[0]=[l("\u5F00\u542F")])),_:1})):(a(),i(c,{key:1,type:"danger"},{default:o(()=>t[1]||(t[1]=[l("\u5173\u95ED")])),_:1}))]),_:1}),e(s,{label:"\u64CD\u4F5C","min-width":"80",fixed:"right"},{default:o(({row:n})=>[_((a(),i(E,{type:"primary",link:"",onClick:K=>g(n.engine)},{default:o(()=>t[2]||(t[2]=[l(" \u8BBE\u7F6E ")])),_:2},1032,["onClick"])),[[C,["setting.storage/setup"]]])]),_:1})]),_:1},8,["data"])]),_:1})),[[b,F(u).loading]]),e(L,{ref_key:"editRef",ref:m,onSuccess:p},null,512)])}}});export{Et as default};
|