UploadVideo-7ea540e6.js 6.5 KB

12345
  1. <<<<<<<< HEAD:dist/assets/UploadVideo-06e84c62.js
  2. import{d as I,aP as M,K as R,r as n,e as j,o as A,v as F,w as t,f as o,n as m,a as e,O as H,g as K,C as O,bl as S,bB as $,V as E,A as G,D as J,b0 as L,_ as N,__tla as Q}from"./index-d75b4e4d.js";import{U as T,H as W,c as X,__tla as Y}from"./upload-a8ad2dd3.js";import{u as Z,__tla as ee}from"./useMessage-ba892ac2.js";import{U as ae,__tla as le}from"./useUpload-629bb057.js";let v,te=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return ee}catch{}})(),(()=>{try{return le}catch{}})()]).then(async()=>{let p;p=K("span",{class:"el-upload__tip",style:{"margin-left":"10px"}},"\u683C\u5F0F\u652F\u6301 MP4\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u8D85\u8FC7 10MB",-1),v=N(I({__name:"UploadVideo",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue","uploaded"],setup(b,{emit:h}){const i=Z(),w=M("accountId"),x={title:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898",trigger:"blur"}],introduction:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0",trigger:"blur"}]},U=b,_=h,s=R({get:()=>U.modelValue,set(a){_("update:modelValue",a)}}),c=n([]),r=j({type:ae.Video,title:"",introduction:"",accountId:w}),f=n(null),V=n(null),k=()=>{var a;(a=f.value)==null||a.validate(l=>{var u;if(!l)return!1;(u=V.value)==null||u.submit()})},B=a=>{if(a.code!==0)return i.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+a.msg),!1;c.value=[],r.title="",r.introduction="",s.value=!1,i.notifySuccess("\u4E0A\u4F20\u6210\u529F"),_("uploaded")},C=a=>i.error(`\u4E0A\u4F20\u5931\u8D25: ${a.message}`);return(a,l)=>{const u=O,P=S,q=$,y=E,g=G,z=J,D=L;return A(),F(D,{title:"\u65B0\u5EFA\u89C6\u9891",modelValue:e(s),"onUpdate:modelValue":l[3]||(l[3]=d=>H(s)?s.value=d:null),width:"600px"},{footer:t(()=>[o(u,{onClick:l[2]||(l[2]=d=>s.value=!1)},{default:t(()=>[m("\u53D6 \u6D88")]),_:1}),o(u,{type:"primary",onClick:k},{default:t(()=>[m("\u63D0 \u4EA4")]),_:1})]),default:t(()=>[o(P,{action:e(T),headers:e(W),multiple:"",limit:1,"file-list":e(c),data:e(r),"before-upload":e(X),"on-error":C,"on-success":B,ref_key:"uploadVideoRef",ref:V,"auto-upload":!1,class:"mb-5"},{trigger:t(()=>[o(u,{type:"primary",plain:""},{default:t(()=>[m("\u9009\u62E9\u89C6\u9891")]),_:1})]),tip:t(()=>[p]),_:1},8,["action","headers","file-list","data","before-upload"]),o(q),o(z,{model:e(r),rules:x,ref_key:"uploadFormRef",ref:f},{default:t(()=>[o(g,{label:"\u6807\u9898",prop:"title"},{default:t(()=>[o(y,{modelValue:e(r).title,"onUpdate:modelValue":l[0]||(l[0]=d=>e(r).title=d),placeholder:"\u6807\u9898\u5C06\u5C55\u793A\u5728\u76F8\u5173\u64AD\u653E\u9875\u9762\uFF0C\u5EFA\u8BAE\u586B\u5199\u6E05\u6670\u3001\u51C6\u786E\u3001\u751F\u52A8\u7684\u6807\u9898"},null,8,["modelValue"])]),_:1}),o(g,{label:"\u63CF\u8FF0",prop:"introduction"},{default:t(()=>[o(y,{rows:3,type:"textarea",modelValue:e(r).introduction,"onUpdate:modelValue":l[1]||(l[1]=d=>e(r).introduction=d),placeholder:"\u4ECB\u7ECD\u8BED\u5C06\u5C55\u793A\u5728\u76F8\u5173\u64AD\u653E\u9875\u9762\uFF0C\u5EFA\u8BAE\u586B\u5199\u7B80\u6D01\u660E\u786E\u3001\u6709\u4FE1\u606F\u91CF\u7684\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mp/material/components/UploadVideo.vue"]])});export{te as __tla,v as default};
  3. ========
  4. import{d as I,aP as M,K as R,r as n,e as j,o as A,v as F,w as t,f as o,n as m,a as e,O as H,g as K,C as O,bl as S,bB as $,V as E,A as G,D as J,b0 as L,_ as N,__tla as Q}from"./index-c9fff140.js";import{U as T,H as W,c as X,__tla as Y}from"./upload-a0bdad79.js";import{u as Z,__tla as ee}from"./useMessage-5d45d53a.js";import{U as ae,__tla as le}from"./useUpload-8a35382d.js";let v,te=Promise.all([(()=>{try{return Q}catch{}})(),(()=>{try{return Y}catch{}})(),(()=>{try{return ee}catch{}})(),(()=>{try{return le}catch{}})()]).then(async()=>{let p;p=K("span",{class:"el-upload__tip",style:{"margin-left":"10px"}},"\u683C\u5F0F\u652F\u6301 MP4\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u8D85\u8FC7 10MB",-1),v=N(I({__name:"UploadVideo",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue","uploaded"],setup(b,{emit:h}){const i=Z(),w=M("accountId"),x={title:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898",trigger:"blur"}],introduction:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0",trigger:"blur"}]},U=b,_=h,s=R({get:()=>U.modelValue,set(a){_("update:modelValue",a)}}),c=n([]),r=j({type:ae.Video,title:"",introduction:"",accountId:w}),f=n(null),V=n(null),k=()=>{var a;(a=f.value)==null||a.validate(l=>{var u;if(!l)return!1;(u=V.value)==null||u.submit()})},B=a=>{if(a.code!==0)return i.error("\u4E0A\u4F20\u51FA\u9519\uFF1A"+a.msg),!1;c.value=[],r.title="",r.introduction="",s.value=!1,i.notifySuccess("\u4E0A\u4F20\u6210\u529F"),_("uploaded")},C=a=>i.error(`\u4E0A\u4F20\u5931\u8D25: ${a.message}`);return(a,l)=>{const u=O,P=S,q=$,y=E,g=G,z=J,D=L;return A(),F(D,{title:"\u65B0\u5EFA\u89C6\u9891",modelValue:e(s),"onUpdate:modelValue":l[3]||(l[3]=d=>H(s)?s.value=d:null),width:"600px"},{footer:t(()=>[o(u,{onClick:l[2]||(l[2]=d=>s.value=!1)},{default:t(()=>[m("\u53D6 \u6D88")]),_:1}),o(u,{type:"primary",onClick:k},{default:t(()=>[m("\u63D0 \u4EA4")]),_:1})]),default:t(()=>[o(P,{action:e(T),headers:e(W),multiple:"",limit:1,"file-list":e(c),data:e(r),"before-upload":e(X),"on-error":C,"on-success":B,ref_key:"uploadVideoRef",ref:V,"auto-upload":!1,class:"mb-5"},{trigger:t(()=>[o(u,{type:"primary",plain:""},{default:t(()=>[m("\u9009\u62E9\u89C6\u9891")]),_:1})]),tip:t(()=>[p]),_:1},8,["action","headers","file-list","data","before-upload"]),o(q),o(z,{model:e(r),rules:x,ref_key:"uploadFormRef",ref:f},{default:t(()=>[o(g,{label:"\u6807\u9898",prop:"title"},{default:t(()=>[o(y,{modelValue:e(r).title,"onUpdate:modelValue":l[0]||(l[0]=d=>e(r).title=d),placeholder:"\u6807\u9898\u5C06\u5C55\u793A\u5728\u76F8\u5173\u64AD\u653E\u9875\u9762\uFF0C\u5EFA\u8BAE\u586B\u5199\u6E05\u6670\u3001\u51C6\u786E\u3001\u751F\u52A8\u7684\u6807\u9898"},null,8,["modelValue"])]),_:1}),o(g,{label:"\u63CF\u8FF0",prop:"introduction"},{default:t(()=>[o(y,{rows:3,type:"textarea",modelValue:e(r).introduction,"onUpdate:modelValue":l[1]||(l[1]=d=>e(r).introduction=d),placeholder:"\u4ECB\u7ECD\u8BED\u5C06\u5C55\u793A\u5728\u76F8\u5173\u64AD\u653E\u9875\u9762\uFF0C\u5EFA\u8BAE\u586B\u5199\u7B80\u6D01\u660E\u786E\u3001\u6709\u4FE1\u606F\u91CF\u7684\u5185\u5BB9"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mp/material/components/UploadVideo.vue"]])});export{te as __tla,v as default};
  5. >>>>>>>> 2589804fb89eb98fd6498c1ee41a354dcce32af3:dist/assets/UploadVideo-7ea540e6.js