VideoTable-87df80b5.js 1.9 KB

1
  1. import{d as h,P as v,C as p,o as r,l as i,w as t,i as e,a as _,a2 as C,g as x,t as T,j as u,L as q,v as P,J as j,M as V,N as z,_ as A,__tla as B}from"./index-afaf388d.js";import D,{__tla as H}from"./main-1dc41615.js";import{d as I,__tla as J}from"./formatTime-42952e7f.js";let c,L=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{c=A(h({__name:"VideoTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["delete","download"],setup(m,{emit:f}){const n=m,y=f;return(M,N)=>{const a=q,o=P,s=j,w=V,g=v("hasPermi"),b=z;return p((r(),i(w,{data:n.list,stripe:"",border:"",style:{"margin-top":"10px"}},{default:t(()=>[e(a,{label:"\u7F16\u53F7",align:"center",prop:"mediaId"}),e(a,{label:"\u6587\u4EF6\u540D",align:"center",prop:"name"}),e(a,{label:"\u6807\u9898",align:"center",prop:"title"}),e(a,{label:"\u4ECB\u7ECD",align:"center",prop:"introduction"}),e(a,{label:"\u89C6\u9891",align:"center"},{default:t(l=>[l.row.url?(r(),i(_(D),{key:0,url:l.row.url},null,8,["url"])):C("",!0)]),_:1}),e(a,{label:"\u4E0A\u4F20\u65F6\u95F4",align:"center",formatter:_(I),prop:"createTime",width:"180"},{default:t(l=>[x("span",null,T(l.row.createTime),1)]),_:1},8,["formatter"]),e(a,{label:"\u64CD\u4F5C",align:"center",fixed:"right"},{default:t(l=>[e(s,{type:"primary",link:"",onClick:k=>{return d=l.row.url,void window.open(d,"_blank");var d}},{default:t(()=>[e(o,{icon:"ep:download"}),u("\u4E0B\u8F7D ")]),_:2},1032,["onClick"]),p((r(),i(s,{type:"primary",link:"",onClick:k=>y("delete",l.row.id)},{default:t(()=>[e(o,{icon:"ep:delete"}),u("\u5220\u9664 ")]),_:2},1032,["onClick"])),[[g,["mp:material:delete"]]])]),_:1})]),_:1},8,["data"])),[[b,n.loading]])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/material/components/VideoTable.vue"]])});export{L as __tla,c as default};