1 |
- import{d as z,c_ as B,e as D,r as y,x as H,o as h,c as J,f as a,A as r,a as l,C as M,a2 as T,D as v,a1 as W,a8 as K,K as P,_ as S,J as Z,aZ as q,H as E,bg as F,__tla as G}from"./index-1f518666.js";import{_ as L,__tla as N}from"./main.vue_vue_type_script_setup_true_lang-9e9d0fbc.js";import{W as O,__tla as Q}from"./main-5819cccf.js";import{u as R,U as X,__tla as Y}from"./useUpload-bb0cdd8b.js";import{u as $,__tla as tt}from"./useMessage-633c11d2.js";import{_ as at}from"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as et}from"./index.vue_vue_type_script_setup_true_lang-cf2a6735.js";import{__tla as lt}from"./index-a37b14c7.js";import{__tla as rt}from"./main-dc7513d8.js";import{__tla as ot}from"./el-image-1ae80d1a.js";import{__tla as _t}from"./el-image-viewer-91778fd6.js";import{__tla as ut}from"./main-6c366489.js";import{__tla as it}from"./index-c117fbd5.js";import{__tla as st}from"./index-91b90d90.js";import{__tla as ct}from"./formatTime-a4909bb5.js";let V,dt=Promise.all([(()=>{try{return G}catch{}})(),(()=>{try{return N}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 _t}catch{}})(),(()=>{try{return ut}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(g,{emit:I}){const b=$(),U={Authorization:"Bearer "+B()},k=g,w=I,e=D({get:()=>k.modelValue,set:t=>w("update:modelValue",t)}),u=y(!1),d=y([]),i=H({accountId:e.value.accountId,type:"video",title:"",introduction:""}),x=t=>R(X.Video,10)(t),A=t=>{if(t.code!==0)return b.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+t.msg),!1;d.value=[],i.title="",i.introduction="",n(t.data)},n=t=>{u.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=K,s=P,p=S,f=Z,C=q,c=E,j=F;return h(),J("div",null,[a(s,null,{default:r(()=>[a(m,{modelValue:l(e).title,"onUpdate:modelValue":o[0]||(o[0]=_=>l(e).title=_),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]=_=>l(e).description=_),placeholder:"\u8BF7\u8F93\u5165\u63CF\u8FF0"},null,8,["modelValue"]),a(s,{class:"ope-row",justify:"center"},{default:r(()=>[l(e).url?(h(),M(l(L),{key:0,url:l(e).url},null,8,["url"])):T("",!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(C,{title:"\u9009\u62E9\u89C6\u9891",modelValue:l(u),"onUpdate:modelValue":o[3]||(o[3]=_=>W(u)?u.value=_:null),width:"90%","append-to-body":"","destroy-on-close":""},{default:r(()=>[a(l(O),{type:"video","account-id":l(e).accountId,onSelectMaterial:n},null,8,["account-id"])]),_:1},8,["modelValue"])]),_:1}),a(c,{span:12},{default:r(()=>[a(j,{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":A},{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};
|