1 |
- import{d as A,b7 as B,e as C,r as y,f as E,o as h,c as M,i as a,w as r,a as l,j as R,l as S,m as v,R as T,X as P,s as W,_ as X,q as D,az as F,E as G,b9 as H,__tla as J}from"./index-1e808f2e.js";import{_ as K,__tla as L}from"./main.vue_vue_type_script_setup_true_lang-068c3b56.js";import{W as N,__tla as O}from"./main-7080b19d.js";import{u as Q,U as Y,__tla as Z}from"./useUpload-3083c231.js";import{u as $,__tla as tt}from"./useMessage-5f9e8917.js";import{_ as at}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as et}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{__tla as lt}from"./index-73afebcf.js";import{__tla as rt}from"./main-fae03c69.js";import{__tla as ot}from"./el-image-263fb014.js";import{__tla as ut}from"./el-image-viewer-dddb6285.js";import{__tla as _t}from"./main-c2ebd06d.js";import{__tla as it}from"./index-1a14fda3.js";import{__tla as st}from"./index-6e04feee.js";import{__tla as ct}from"./formatTime-a348c3be.js";let V,dt=Promise.all([(()=>{try{return J}catch{}})(),(()=>{try{return L}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return Z}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(A({__name:"TabVideo",props:{modelValue:{}},emits:["update:modelValue"],setup(b,{emit:I}){const g=$(),U={Authorization:"Bearer "+B()},k=b,w=I,e=C({get:()=>k.modelValue,set:t=>w("update:modelValue",t)}),_=y(!1),d=y([]),i=E({accountId:e.value.accountId,type:"video",title:"",introduction:""}),x=t=>Q(Y.Video,10)(t),j=t=>{if(t.code!==0)return g.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;d.value=[],i.title="",i.introduction="",n(t.data)},n=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=P,s=W,p=X,f=D,z=F,c=G,q=H;return h(),M("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(),R(l(K),{key:0,url:l(e).url},null,8,["url"])):S("",!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(z,{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(N),{type:"video","account-id":l(e).accountId,onSelectMaterial:n},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),a(c,{span:12},{default:r(()=>[a(q,{action:"/dev-api/admin-api/mp/material/upload-temporary",headers:U,multiple:"",limit:1,"file-list":l(d),data:l(i),"before-upload":x,"on-success":j},{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{dt as __tla,V as default};
|