index-dcd5006a.js 5.1 KB

1
  1. import{d as A,r as i,p as B,x as E,a3 as F,o as f,c as L,f as t,B as l,a,a2 as P,E as p,k as S,A as z,F as W,V as q,W as O,_ as Q,L as X,a9 as Y,K as $,aa as G,__tla as H}from"./index-e8bff8cb.js";import{_ as J,__tla as R}from"./index.vue_vue_type_script_setup_true_lang-75f84d87.js";import{_ as Z,__tla as aa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-33dea697.js";import{_ as ta,__tla as ea}from"./main.vue_vue_type_script_setup_true_lang-32a7a920.js";import la,{__tla as ra}from"./ImageTable-e6d78bc2.js";import{_ as _a,__tla as oa}from"./VoiceTable.vue_vue_type_script_setup_true_lang-ca166eae.js";import{_ as na,__tla as ia}from"./VideoTable.vue_vue_type_script_setup_true_lang-ce26f14f.js";import x,{__tla as pa}from"./UploadFile-70d6f7c5.js";import{_ as ma,__tla as ua}from"./UploadVideo.vue_vue_type_script_setup_true_lang-78cd7720.js";import{__tla as sa}from"./upload-ffded3b9.js";import{g as ca,d as da,__tla as ga}from"./index-417b4018.js";import{u as fa,__tla as ya}from"./useMessage-de42a595.js";import{U as m,__tla as ha}from"./useUpload-4185b598.js";import{__tla as va}from"./index-35928fe5.js";import{__tla as Ua}from"./el-card-f9558d99.js";import{__tla as Va}from"./index-72553c28.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Na}from"./main-e1788fb7.js";import{__tla as ba}from"./formatTime-4fdd5566.js";import{__tla as Sa}from"./main.vue_vue_type_script_setup_true_lang-dc78df78.js";let D,za=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return Sa}catch{}})()]).then(async()=>{D=A({__name:"index",setup(Ia){const I=fa(),d=i(m.Image),u=i(!1),s=i([]),c=i(0),y=i(-1);B("accountId",y);const r=E({pageNo:1,pageSize:10,accountId:y,permanent:!0}),g=i(!1),C=o=>{y.value=o,r.accountId=o,r.pageNo=1,n()},n=async()=>{u.value=!0;try{const o=await ca({...r,type:d.value});s.value=o.list,c.value=o.total}finally{u.value=!1}},j=()=>{s.value=[],c.value=0,r.pageNo=1,n()},h=async o=>{await I.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u6587\u4EF6, \u662F\u5426\u7EE7\u7EED?"),await da(o),I.alertSuccess("\u5220\u9664\u6210\u529F")};return(o,e)=>{const k=q,K=O,w=Z,v=Q,U=X,V=J,N=Y,M=$,T=G,b=F("hasPermi");return f(),L(W,null,[t(w,null,{default:l(()=>[t(K,{class:"-mb-15px",inline:!0,"label-width":"68px"},{default:l(()=>[t(k,{label:"\u516C\u4F17\u53F7",prop:"accountId"},{default:l(()=>[t(a(ta),{onChange:C})]),_:1})]),_:1})]),_:1}),t(w,null,{default:l(()=>[t(T,{modelValue:a(d),"onUpdate:modelValue":e[8]||(e[8]=_=>P(d)?d.value=_:null),onTabChange:j},{default:l(()=>[t(N,{name:a(m).Image},{label:l(()=>[t(U,{align:"middle"},{default:l(()=>[t(v,{icon:"ep:picture"}),p("\u56FE\u7247 ")]),_:1})]),default:l(()=>[S((f(),z(x,{type:a(m).Image,onUploaded:n},{default:l(()=>[p(" \u652F\u6301 bmp/png/jpeg/jpg/gif \u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC7 2M ")]),_:1},8,["type"])),[[b,["mp:material:upload-permanent"]]]),t(la,{loading:a(u),list:a(s),onDelete:h},null,8,["loading","list"]),t(V,{total:a(c),page:a(r).pageNo,"onUpdate:page":e[0]||(e[0]=_=>a(r).pageNo=_),limit:a(r).pageSize,"onUpdate:limit":e[1]||(e[1]=_=>a(r).pageSize=_),onPagination:n},null,8,["total","page","limit"])]),_:1},8,["name"]),t(N,{name:a(m).Voice},{label:l(()=>[t(U,{align:"middle"},{default:l(()=>[t(v,{icon:"ep:microphone"}),p("\u8BED\u97F3 ")]),_:1})]),default:l(()=>[S((f(),z(x,{type:a(m).Voice,onUploaded:n},{default:l(()=>[p(" \u683C\u5F0F\u652F\u6301 mp3/wma/wav/amr\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u8D85\u8FC7 2M\uFF0C\u64AD\u653E\u957F\u5EA6\u4E0D\u8D85\u8FC7 60s ")]),_:1},8,["type"])),[[b,["mp:material:upload-permanent"]]]),t(_a,{list:a(s),loading:a(u),onDelete:h},null,8,["list","loading"]),t(V,{total:a(c),page:a(r).pageNo,"onUpdate:page":e[2]||(e[2]=_=>a(r).pageNo=_),limit:a(r).pageSize,"onUpdate:limit":e[3]||(e[3]=_=>a(r).pageSize=_),onPagination:n},null,8,["total","page","limit"])]),_:1},8,["name"]),t(N,{name:a(m).Video},{label:l(()=>[t(U,{align:"middle"},{default:l(()=>[t(v,{icon:"ep:video-play"}),p(" \u89C6\u9891 ")]),_:1})]),default:l(()=>[S((f(),z(M,{type:"primary",plain:"",onClick:e[4]||(e[4]=_=>g.value=!0)},{default:l(()=>[p("\u65B0\u5EFA\u89C6\u9891")]),_:1})),[[b,["mp:material:upload-permanent"]]]),t(ma,{modelValue:a(g),"onUpdate:modelValue":e[5]||(e[5]=_=>P(g)?g.value=_:null)},null,8,["modelValue"]),t(na,{list:a(s),loading:a(u),onDelete:h},null,8,["list","loading"]),t(V,{total:a(c),page:a(r).pageNo,"onUpdate:page":e[6]||(e[6]=_=>a(r).pageNo=_),limit:a(r).pageSize,"onUpdate:limit":e[7]||(e[7]=_=>a(r).pageSize=_),onPagination:n},null,8,["total","page","limit"])]),_:1},8,["name"])]),_:1},8,["modelValue"])]),_:1})],64)}}})});export{za as __tla,D as default};