TabVoice-ce8309cb.js 3.6 KB

1
  1. import{d as R,b7 as S,e as T,r as w,f as W,o as m,c as I,a as r,k,t as D,i as a,w as l,j as F,m as b,R as P,s as $,_ as G,q as H,az as J,E as K,b9 as L,v as N,x as O,__tla as Q}from"./index-1e808f2e.js";import{W as X,__tla as Y}from"./main-7080b19d.js";import Z,{__tla as aa}from"./main-c2ebd06d.js";import{u as ta,U as ea,__tla as la}from"./useUpload-3083c231.js";import{u as ra,__tla as _a}from"./useMessage-5f9e8917.js";import{_ as sa}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as oa}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{__tla as ca}from"./index-73afebcf.js";import{__tla as ua}from"./main-fae03c69.js";import{__tla as ia}from"./el-image-263fb014.js";import{__tla as ma}from"./el-image-viewer-dddb6285.js";import{__tla as na}from"./main.vue_vue_type_script_setup_true_lang-068c3b56.js";import{__tla as da}from"./index-1a14fda3.js";import{__tla as pa}from"./index-6e04feee.js";import{__tla as fa}from"./formatTime-a348c3be.js";let g,ya=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return aa}catch{}})(),(()=>{try{return la}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return fa}catch{}})()]).then(async()=>{let n,d,p;n={key:0,class:"select-item2"},d={class:"item-name"},p=(_=>(N("data-v-782ce0e7"),_=_(),O(),_))(()=>k("div",{class:"el-upload__tip"}," \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)),g=sa(R({__name:"TabVoice",props:{modelValue:{}},emits:["update:modelValue"],setup(_,{emit:x}){const j=ra(),U={Authorization:"Bearer "+S()},q=_,z=x,e=T({get:()=>q.modelValue,set:t=>z("update:modelValue",t)}),s=w(!1),f=w([]),c=W({accountId:e.value.accountId,type:"voice",title:"",introduction:""}),C=t=>ta(ea.Voice,10)(t),M=t=>{if(t.code!==0)return j.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;f.value=[],c.title="",c.introduction="",y(t.data)},A=()=>{e.value.mediaId=null,e.value.url=null,e.value.name=null},y=t=>{s.value=!1,e.value.mediaId=t.mediaId,e.value.url=t.url,e.value.name=t.name};return(t,o)=>{const u=$,v=G,i=H,B=J,h=K,E=L;return m(),I("div",null,[r(e).url?(m(),I("div",n,[k("p",d,D(r(e).name),1),a(u,{class:"ope-row",justify:"center"},{default:l(()=>[a(r(Z),{url:r(e).url},null,8,["url"])]),_:1}),a(u,{class:"ope-row",justify:"center"},{default:l(()=>[a(i,{type:"danger",circle:"",onClick:A},{default:l(()=>[a(v,{icon:"ep:delete"})]),_:1})]),_:1})])):(m(),F(u,{key:1,style:{"text-align":"center"}},{default:l(()=>[a(h,{span:12,class:"col-select"},{default:l(()=>[a(i,{type:"success",onClick:o[0]||(o[0]=V=>s.value=!0)},{default:l(()=>[b(" \u7D20\u6750\u5E93\u9009\u62E9"),a(v,{icon:"ep:circle-check"})]),_:1}),a(B,{title:"\u9009\u62E9\u8BED\u97F3",modelValue:r(s),"onUpdate:modelValue":o[1]||(o[1]=V=>P(s)?s.value=V:null),width:"90%","append-to-body":"","destroy-on-close":""},{default:l(()=>[a(r(X),{type:"voice","account-id":r(e).accountId,onSelectMaterial:y},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),a(h,{span:12,class:"col-add"},{default:l(()=>[a(E,{action:"/dev-api/admin-api/mp/material/upload-temporary",headers:U,multiple:"",limit:1,"file-list":r(f),data:r(c),"before-upload":C,"on-success":M},{tip:l(()=>[p]),default:l(()=>[a(i,{type:"primary"},{default:l(()=>[b("\u70B9\u51FB\u4E0A\u4F20")]),_:1})]),_:1},8,["file-list","data"])]),_:1})]),_:1}))])}}}),[["__scopeId","data-v-782ce0e7"]])});export{ya as __tla,g as default};