index-71a8f655.js 5.1 KB

1
  1. import{d as q,r as i,aU as B,e as F,P as A,o as f,c as E,f as t,w as l,a,N as P,m as p,v as z,q as S,F as G,z as H,C as J,_ as K,i as L,V as O,B as Q,W as R,__tla as X}from"./index-2eab2d23.js";import{_ as Y,__tla as Z}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as $,__tla as aa}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{_ as ta,__tla as ea}from"./main.vue_vue_type_script_setup_true_lang-9ca53d42.js";import la,{__tla as ra}from"./ImageTable-7f9e73d6.js";import{_ as _a,__tla as oa}from"./VoiceTable.vue_vue_type_script_setup_true_lang-5f0bf36f.js";import{_ as na,__tla as ia}from"./VideoTable.vue_vue_type_script_setup_true_lang-09f175bc.js";import C,{__tla as pa}from"./UploadFile-cd27dd4c.js";import{_ as ma,__tla as ua}from"./UploadVideo.vue_vue_type_script_setup_true_lang-ca3e3096.js";import{__tla as sa}from"./upload-82d814ec.js";import{g as ca,d as da,__tla as ga}from"./index-4663832c.js";import{u as fa,__tla as ya}from"./useMessage-171aa63e.js";import{U as m,__tla as ha}from"./useUpload-1c63b1eb.js";import{__tla as va}from"./index-cc63c3c4.js";import{__tla as Ua}from"./el-card-c558f0ec.js";import{__tla as Na}from"./index-a72a8920.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Va}from"./main-ec2be832.js";import{__tla as ba}from"./formatTime-41155543.js";import{__tla as za}from"./main.vue_vue_type_script_setup_true_lang-0610a4e1.js";let x,Sa=Promise.all([(()=>{try{return X}catch{}})(),(()=>{try{return Z}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 Na}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return za}catch{}})()]).then(async()=>{x=q({__name:"index",setup(wa){const w=fa(),d=i(m.Image),u=i(!1),s=i([]),c=i(0),y=i(-1);B("accountId",y);const r=F({pageNo:1,pageSize:10,accountId:y,permanent:!0}),g=i(!1),M=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}},D=()=>{s.value=[],c.value=0,r.pageNo=1,n()},h=async o=>{await w.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u6587\u4EF6, \u662F\u5426\u7EE7\u7EED?"),await da(o),w.alertSuccess("\u5220\u9664\u6210\u529F")};return(o,e)=>{const j=H,T=J,I=$,v=K,U=L,N=Y,V=O,W=Q,k=R,b=A("hasPermi");return f(),E(G,null,[t(I,null,{default:l(()=>[t(T,{class:"-mb-15px",inline:!0,"label-width":"68px"},{default:l(()=>[t(j,{label:"\u516C\u4F17\u53F7",prop:"accountId"},{default:l(()=>[t(a(ta),{onChange:M})]),_:1})]),_:1})]),_:1}),t(I,null,{default:l(()=>[t(k,{modelValue:a(d),"onUpdate:modelValue":e[8]||(e[8]=_=>P(d)?d.value=_:null),onTabChange:D},{default:l(()=>[t(V,{name:a(m).Image},{label:l(()=>[t(U,{align:"middle"},{default:l(()=>[t(v,{icon:"ep:picture"}),p("\u56FE\u7247 ")]),_:1})]),default:l(()=>[z((f(),S(C,{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(N,{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(V,{name:a(m).Voice},{label:l(()=>[t(U,{align:"middle"},{default:l(()=>[t(v,{icon:"ep:microphone"}),p("\u8BED\u97F3 ")]),_:1})]),default:l(()=>[z((f(),S(C,{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(N,{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(V,{name:a(m).Video},{label:l(()=>[t(U,{align:"middle"},{default:l(()=>[t(v,{icon:"ep:video-play"}),p(" \u89C6\u9891 ")]),_:1})]),default:l(()=>[z((f(),S(W,{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(N,{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{Sa as __tla,x as default};