index-00e5321d.js 4.9 KB

1
  1. import{d as A,r as i,bZ as F,f as J,P as K,o as f,c as R,i as t,w as e,a,y as P,j as p,C as z,l as N,F as X,H as Z,K as B,v as E,s as G,z as W,J as Y,A as q,_ as L,__tla as O}from"./index-af173888.js";import{_ as Q,__tla as $}from"./index-a33d7937.js";import{_ as aa,__tla as ta}from"./ContentWrap-b959c1be.js";import la,{__tla as ea}from"./main-b47fe5c9.js";import ra,{__tla as _a}from"./ImageTable-e1f7a4fe.js";import oa,{__tla as na}from"./VoiceTable-e09eccef.js";import ia,{__tla as pa}from"./VideoTable-c9b4d991.js";import x,{__tla as ma}from"./UploadFile-305df895.js";import ua,{__tla as sa}from"./UploadVideo-770cb08d.js";import{__tla as ca}from"./upload-47b42e59.js";import{g as da,d as ga,__tla as fa}from"./index-f187aea8.js";import{u as ya,__tla as ha}from"./useMessage-170c1b43.js";import{U as m,__tla as va}from"./useUpload-4e2d78e4.js";import{__tla as Ua}from"./index-54b8f773.js";import{__tla as Va}from"./el-card-178b9654.js";import{__tla as ba}from"./index-ef06add8.js";import{__tla as wa}from"./main-91abe1eb.js";import{__tla as za}from"./formatTime-8a6f6c49.js";import{__tla as Na}from"./main-efb6986a.js";let D,Sa=Promise.all([(()=>{try{return O}catch{}})(),(()=>{try{return $}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return ea}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Na}catch{}})()]).then(async()=>{D=L(A({__name:"index",setup(Ia){const S=ya(),d=i(m.Image),u=i(!1),s=i([]),c=i(0),y=i(-1);F("accountId",y);const r=J({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 da({...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 S.confirm("\u6B64\u64CD\u4F5C\u5C06\u6C38\u4E45\u5220\u9664\u8BE5\u6587\u4EF6, \u662F\u5426\u7EE7\u7EED?"),await ga(o),S.alertSuccess("\u5220\u9664\u6210\u529F")};return(o,l)=>{const H=Z,M=B,I=aa,v=E,U=G,V=Q,b=W,k=Y,T=q,w=K("hasPermi");return f(),R(X,null,[t(I,null,{default:e(()=>[t(M,{class:"-mb-15px",inline:!0,"label-width":"68px"},{default:e(()=>[t(H,{label:"\u516C\u4F17\u53F7",prop:"accountId"},{default:e(()=>[t(a(la),{onChange:C})]),_:1})]),_:1})]),_:1}),t(I,null,{default:e(()=>[t(T,{modelValue:a(d),"onUpdate:modelValue":l[8]||(l[8]=_=>P(d)?d.value=_:null),onTabChange:j},{default:e(()=>[t(b,{name:a(m).Image},{label:e(()=>[t(U,{align:"middle"},{default:e(()=>[t(v,{icon:"ep:picture"}),p("\u56FE\u7247 ")]),_:1})]),default:e(()=>[z((f(),N(x,{type:a(m).Image,onUploaded:n},{default:e(()=>[p(" \u652F\u6301 bmp/png/jpeg/jpg/gif \u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC7 2M ")]),_:1},8,["type"])),[[w,["mp:material:upload-permanent"]]]),t(ra,{loading:a(u),list:a(s),onDelete:h},null,8,["loading","list"]),t(V,{total:a(c),page:a(r).pageNo,"onUpdate:page":l[0]||(l[0]=_=>a(r).pageNo=_),limit:a(r).pageSize,"onUpdate:limit":l[1]||(l[1]=_=>a(r).pageSize=_),onPagination:n},null,8,["total","page","limit"])]),_:1},8,["name"]),t(b,{name:a(m).Voice},{label:e(()=>[t(U,{align:"middle"},{default:e(()=>[t(v,{icon:"ep:microphone"}),p("\u8BED\u97F3 ")]),_:1})]),default:e(()=>[z((f(),N(x,{type:a(m).Voice,onUploaded:n},{default:e(()=>[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"])),[[w,["mp:material:upload-permanent"]]]),t(oa,{list:a(s),loading:a(u),onDelete:h},null,8,["list","loading"]),t(V,{total:a(c),page:a(r).pageNo,"onUpdate:page":l[2]||(l[2]=_=>a(r).pageNo=_),limit:a(r).pageSize,"onUpdate:limit":l[3]||(l[3]=_=>a(r).pageSize=_),onPagination:n},null,8,["total","page","limit"])]),_:1},8,["name"]),t(b,{name:a(m).Video},{label:e(()=>[t(U,{align:"middle"},{default:e(()=>[t(v,{icon:"ep:video-play"}),p(" \u89C6\u9891 ")]),_:1})]),default:e(()=>[z((f(),N(k,{type:"primary",plain:"",onClick:l[4]||(l[4]=_=>g.value=!0)},{default:e(()=>[p("\u65B0\u5EFA\u89C6\u9891")]),_:1})),[[w,["mp:material:upload-permanent"]]]),t(ua,{modelValue:a(g),"onUpdate:modelValue":l[5]||(l[5]=_=>P(g)?g.value=_:null)},null,8,["modelValue"]),t(ia,{list:a(s),loading:a(u),onDelete:h},null,8,["list","loading"]),t(V,{total:a(c),page:a(r).pageNo,"onUpdate:page":l[6]||(l[6]=_=>a(r).pageNo=_),limit:a(r).pageSize,"onUpdate:limit":l[7]||(l[7]=_=>a(r).pageSize=_),onPagination:n},null,8,["total","page","limit"])]),_:1},8,["name"])]),_:1},8,["modelValue"])]),_:1})],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/material/index.vue"]])});export{Sa as __tla,D as default};