1 |
- import{aA as i,d as v,r as u,b as C,o as y,C as k,A as o,B as D,f as r,D as c,a as _,k as L,a3 as B,Q as H,J as T,Z as W,_ as j,__tla as z}from"./index-f6fb8e95.js";import{_ as A,__tla as R}from"./ContentWrap-96bb70ec.js";import{_ as U,__tla as I}from"./IFrame-37648fed.js";import{d as m}from"./download-20922b56.js";import{__tla as J}from"./el-card-8db16709.js";let x,O=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{let n,p;n=()=>i.download({url:"/infra/db-doc/export-html"}),p={class:"mb-10px"},x=j(v({name:"InfraDBDoc",__name:"index",setup(P){const l=u(!0),f=u(""),e=async t=>{if(t==="HTML"){const a=await n();m.html(a,"\u6570\u636E\u5E93\u6587\u6863.html")}if(t==="Word"){const a=await i.download({url:"/infra/db-doc/export-word"});m.word(a,"\u6570\u636E\u5E93\u6587\u6863.doc")}if(t==="Markdown"){const a=await i.download({url:"/infra/db-doc/export-markdown"});m.markdown(a,"\u6570\u636E\u5E93\u6587\u6863.md")}};return C(async()=>{await(async()=>{try{const t=await n(),a=new Blob([t],{type:"text/html"});f.value=window.URL.createObjectURL(a)}finally{l.value=!1}})()}),(t,a)=>{const d=H,s=T,b=U,h=A,M=W;return y(),k(h,{title:"\u6570\u636E\u5E93\u6587\u6863"},{default:o(()=>[D("div",p,[r(s,{type:"primary",plain:"",onClick:a[0]||(a[0]=w=>e("HTML"))},{default:o(()=>[r(d,{icon:"ep:download"}),c(" \u5BFC\u51FA HTML ")]),_:1}),r(s,{type:"primary",plain:"",onClick:a[1]||(a[1]=w=>e("Word"))},{default:o(()=>[r(d,{icon:"ep:download"}),c(" \u5BFC\u51FA Word ")]),_:1}),r(s,{type:"primary",plain:"",onClick:a[2]||(a[2]=w=>e("Markdown"))},{default:o(()=>[r(d,{icon:"ep:download"}),c(" \u5BFC\u51FA Markdown ")]),_:1})]),_(l)?B("",!0):L((y(),k(b,{key:0,src:_(f)},null,8,["src"])),[[M,_(l)]])]),_:1})}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/dbDoc/index.vue"]])});export{O as __tla,x as default};
|