mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-05 12:38:10 +00:00
2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import"./base-962c0c23.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-58212670.js";import"./index-f1b9f75f.js";/* empty css *//* empty css */import{t}from"./index-e8f72538.js";import{N as getStorageList}from"./sys-93dce9bb.js";import{_ as _sfc_main$1}from"./storage-local.vue_vue_type_script_setup_true_lang-4b5f8c48.js";import{_ as _sfc_main$2}from"./storage-qiniu.vue_vue_type_script_setup_true_lang-3cadd960.js";import{_ as _sfc_main$3}from"./storage-ali.vue_vue_type_script_setup_true_lang-9c42b556.js";import{_ as _sfc_main$4}from"./storage-tencent.vue_vue_type_script_setup_true_lang-a39b818b.js";import{u as useRoute}from"./vue-router-79053937.js";import{a as ElTableColumn,E as ElTable}from"./index-92e1b5d5.js";import{E as ElTag}from"./index-4f5c40a5.js";import{E as ElButton}from"./index-bba9e58c.js";import{E as ElCard}from"./index-69523418.js";import{v as vLoading}from"./directive-c0c3e9a3.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,x as toDisplayString,u as unref,L as withDirectives,m as createBlock,v as createTextVNode,C as createCommentVNode}from"./runtime-core.esm-bundler-dc7a07d7.js";import"./el-overlay-60700377.js";import"./event-ff03ec12.js";import"./index-5d86eb33.js";import"./focus-trap-b8b5a003.js";/* empty css */import"./el-radio-bfd4b1ad.js";import"./storage-abe718b1.js";import"./index-8bcaafa6.js";import"./index-93f2c618.js";import"./index-7a123a20.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./el-avatar-3bb47ce2.js";import"./index-d57cc47d.js";import"./common-6291c908.js";import"./common-2cf17469.js";/* empty css */import"./index-61c777fa.js";import"./_Uint8Array-6ff3cafa.js";import"./_initCloneObject-28e6bdaa.js";import"./index-df51d91a.js";import"./isEqual-c7d5e6d9.js";import"./flatten-d5d1dc97.js";import"./_isIterateeCall-c579b126.js";const _hoisted_1={class:"main-container"},_hoisted_2={class:"flex justify-between items-center"},_hoisted_3={class:"text-[24px]"},_hoisted_4={class:"mt-[16px]"},_sfc_main=defineComponent({__name:"storage",setup(__props){const route=useRoute(),pageName=route.meta.title,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,s=ElCard,m=vLoading;return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(s,{class:"box-card !border-none",shadow:"never"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_2,[createBaseVNode("span",_hoisted_3,toDisplayString(unref(pageName)),1)]),createBaseVNode("div",_hoisted_4,[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:c=>editEvent(o)},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[m,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};
|