mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-03 19:58:12 +00:00
2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-aae906bf.js";/* empty css *//* empty css */import{t}from"./index-5f4ce139.js";import{H as getStorageList}from"./sys-aa893c6b.js";import{_ as _sfc_main$1}from"./storage-local.vue_vue_type_script_setup_true_lang-eab58b34.js";import{_ as _sfc_main$2}from"./storage-qiniu.vue_vue_type_script_setup_true_lang-aee23617.js";import{_ as _sfc_main$3}from"./storage-ali.vue_vue_type_script_setup_true_lang-f73edef6.js";import{_ as _sfc_main$4}from"./storage-tencent.vue_vue_type_script_setup_true_lang-d7308f25.js";import{a as ElTableColumn,E as ElTable}from"./index-a9458a49.js";import{E as ElTag}from"./index-2804b007.js";import{E as ElButton}from"./index-4862d1b3.js";import{E as ElCard}from"./index-acd12562.js";import{v as vLoading}from"./directive-a07a10ed.js";import{d as defineComponent,r as ref,M as reactive,b as openBlock,e as createElementBlock,q as createVNode,p as withCtx,f as createBaseVNode,L as withDirectives,m as createBlock,u as unref,x as toDisplayString,v as createTextVNode,C as createCommentVNode}from"./runtime-core.esm-bundler-7c3fd514.js";import"./vue-router-b5675730.js";import"./el-overlay-f7f710bd.js";import"./plugin-vue_export-helper-edbdb6f8.js";import"./index-f02197a7.js";import"./index-868cd458.js";import"./index-a3cf5375.js";import"./event-9519ab40.js";import"./focus-trap-bb1e8c7a.js";import"./index-7b0897f9.js";import"./error-492b6a5b.js";import"./el-switch-3d36d31d.js";import"./index-cf47f151.js";import"./index-2083be2e.js";import"./index-95693143.js";import"./index-47617222.js";import"./validator-62f68fe3.js";/* empty css */import"./el-radio-c9a1047c.js";import"./common-465e36b3.js";import"./index-2f0b1bf3.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-7d17482e.js";import"./index-be5dc120.js";import"./common-cc37bda4.js";import"./common-2cf17469.js";/* empty css *//* empty css */import"./index-624573cc.js";import"./_baseClone-cf40e5b2.js";import"./_Uint8Array-de4f83bb.js";import"./_initCloneObject-bc5ed9bb.js";import"./index-4683bff4.js";import"./index-c656f08b.js";import"./index-470ade69.js";import"./isEqual-f40f939e.js";import"./flatten-b3585bb8.js";import"./_isIterateeCall-7a6fae02.js";const _hoisted_1={class:"main-container"},_hoisted_2={class:"mt-[16px]"},_sfc_main=defineComponent({__name:"storage",setup(__props){const localDialog=ref(null),qiniuDialog=ref(null),aliDialog=ref(null),tencentDialog=ref(null);let storageTableData=reactive({data:[]});const loading=ref(!0),loadStorageList=()=>{loading.value=!0,getStorageList().then(r=>{storageTableData.data=r.data,loading.value=!1}).catch(()=>{loading.value=!1})};loadStorageList();const editEvent=data=>{eval(data.storage_type+"Dialog.value.setFormData(data)"),eval(data.storage_type+"Dialog.value.showDialog = true;")};return(r,e)=>{const a=ElTableColumn,i=ElTag,l=ElButton,n=ElTable,m=ElCard,s=vLoading;return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(m,{class:"box-card !border-none",shadow:"never"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2,[withDirectives((openBlock(),createBlock(n,{data:unref(storageTableData).data,size:"large"},{empty:withCtx(()=>[createBaseVNode("span",null,toDisplayString(loading.value?"":unref(t)("emptyData")),1)]),default:withCtx(()=>[createVNode(a,{prop:"name",label:unref(t)("name"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),createVNode(a,{label:unref(t)("isUse"),"min-width":"180",align:"center"},{default:withCtx(({row:o})=>[o.is_use==1?(openBlock(),createBlock(i,{key:0,class:"ml-2",type:"success"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t)("statusNormal")),1)]),_:1})):createCommentVNode("",!0),o.is_use==0?(openBlock(),createBlock(i,{key:1,class:"ml-2",type:"error"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t)("statusDeactivate")),1)]),_:1})):createCommentVNode("",!0)]),_:1},8,["label"]),createVNode(a,{label:unref(t)("operation"),fixed:"right",width:"100"},{default:withCtx(({row:o})=>[createVNode(l,{type:"primary",link:"",onClick:p=>editEvent(o)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[s,loading.value]])]),createVNode(_sfc_main$1,{ref_key:"localDialog",ref:localDialog,onComplete:e[0]||(e[0]=o=>loadStorageList())},null,512),createVNode(_sfc_main$2,{ref_key:"qiniuDialog",ref:qiniuDialog,onComplete:e[1]||(e[1]=o=>loadStorageList())},null,512),createVNode(_sfc_main$3,{ref_key:"aliDialog",ref:aliDialog,onComplete:e[2]||(e[2]=o=>loadStorageList())},null,512),createVNode(_sfc_main$4,{ref_key:"tencentDialog",ref:tencentDialog,onComplete:e[3]||(e[3]=o=>loadStorageList())},null,512)]),_:1})])}}});export{_sfc_main as default};
|