TabVideo-c2bd716c.js 3.6 KB

1
  1. import{d as z,bi as A,J as C,r as y,e as E,o as h,c as J,f as a,w as r,a as l,q as M,O,m as V,N as T,U as N,i as P,_ as S,B as W,a$ as $,E as D,bk as F,__tla as G}from"./index-2eab2d23.js";import{_ as H,__tla as K}from"./main.vue_vue_type_script_setup_true_lang-0610a4e1.js";import{W as L,__tla as Q}from"./main-16c68401.js";import{u as R,U as X,__tla as Y}from"./useUpload-1c63b1eb.js";import{u as Z,__tla as tt}from"./useMessage-171aa63e.js";import{_ as at}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as et}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{__tla as lt}from"./index-cc63c3c4.js";import{__tla as rt}from"./main-74cfbf31.js";import{__tla as ot}from"./el-image-2171f3ff.js";import{__tla as ut}from"./el-image-viewer-5d14bc77.js";import{__tla as _t}from"./main-ec2be832.js";import{__tla as it}from"./index-4663832c.js";import{__tla as st}from"./index-5f871167.js";import{__tla as ct}from"./formatTime-41155543.js";let v,nt=Promise.all([(()=>{try{return G}catch{}})(),(()=>{try{return K}catch{}})(),(()=>{try{return Q}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return tt}catch{}})(),(()=>{try{return et}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return ot}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return _t}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ct}catch{}})()]).then(async()=>{v=at(z({__name:"TabVideo",props:{modelValue:{}},emits:["update:modelValue"],setup(b,{emit:I}){const g=Z(),U={Authorization:"Bearer "+A()},k=b,w=I,e=C({get:()=>k.modelValue,set:t=>w("update:modelValue",t)}),_=y(!1),n=y([]),i=E({accountId:e.value.accountId,type:"video",title:"",introduction:""}),x=t=>R(X.Video,10)(t),B=t=>{if(t.code!==0)return g.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;n.value=[],i.title="",i.introduction="",d(t.data)},d=t=>{_.value=!1,e.value.mediaId=t.mediaId,e.value.url=t.url,e.value.name=t.name,t.title&&(e.value.title=t.title||""),t.introduction&&(e.value.description=t.introduction||"")};return(t,o)=>{const m=N,s=P,p=S,f=W,j=$,c=D,q=F;return h(),J("div",null,[a(s,null,{default:r(()=>[a(m,{modelValue:l(e).title,"onUpdate:modelValue":o[0]||(o[0]=u=>l(e).title=u),class:"input-margin-bottom",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"},null,8,["modelValue"]),a(m,{class:"input-margin-bottom",modelValue:l(e).description,"onUpdate:modelValue":o[1]||(o[1]=u=>l(e).description=u),placeholder:"\u8BF7\u8F93\u5165\u63CF\u8FF0"},null,8,["modelValue"]),a(s,{class:"ope-row",justify:"center"},{default:r(()=>[l(e).url?(h(),M(l(H),{key:0,url:l(e).url},null,8,["url"])):O("",!0)]),_:1}),a(c,null,{default:r(()=>[a(s,{style:{"text-align":"center"},align:"middle"},{default:r(()=>[a(c,{span:12},{default:r(()=>[a(f,{type:"success",onClick:o[2]||(o[2]=u=>_.value=!0)},{default:r(()=>[V(" \u7D20\u6750\u5E93\u9009\u62E9 "),a(p,{icon:"ep:circle-check"})]),_:1}),a(j,{title:"\u9009\u62E9\u89C6\u9891",modelValue:l(_),"onUpdate:modelValue":o[3]||(o[3]=u=>T(_)?_.value=u:null),width:"90%","append-to-body":"","destroy-on-close":""},{default:r(()=>[a(l(L),{type:"video","account-id":l(e).accountId,onSelectMaterial:d},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),a(c,{span:12},{default:r(()=>[a(q,{action:"/admin-api/mp/material/upload-temporary",headers:U,multiple:"",limit:1,"file-list":l(n),data:l(i),"before-upload":x,"on-success":B},{default:r(()=>[a(f,{type:"primary"},{default:r(()=>[V("\u65B0\u5EFA\u89C6\u9891 "),a(p,{icon:"ep:upload"})]),_:1})]),_:1},8,["file-list","data"])]),_:1})]),_:1})]),_:1})]),_:1})])}}}),[["__scopeId","data-v-10385e99"]])});export{nt as __tla,v as default};