VideoTable-75d464ff.js 1.8 KB

1
  1. import{d as h,a4 as x,k as p,o as r,C as n,A as t,f as e,a as _,a3 as C,B as v,E as T,D as c,X as q,Q as z,J as A,Y as B,Z as D,_ as P,__tla as V}from"./index-286756b9.js";import j,{__tla as E}from"./main-53b5a2f2.js";import{d as I,__tla as J}from"./formatTime-83e416ef.js";let m,Q=Promise.all([(()=>{try{return V}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{m=P(h({__name:"VideoTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["delete","download"],setup(u,{emit:f}){const i=u,y=f;return(X,Y)=>{const a=q,o=z,s=A,b=B,w=x("hasPermi"),g=D;return p((r(),n(b,{data:i.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(),n(_(j),{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=>[v("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"}),c("\u4E0B\u8F7D ")]),_:2},1032,["onClick"]),p((r(),n(s,{type:"primary",link:"",onClick:k=>y("delete",l.row.id)},{default:t(()=>[e(o,{icon:"ep:delete"}),c("\u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["mp:material:delete"]]])]),_:1})]),_:1},8,["data"])),[[g,i.loading]])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mp/material/components/VideoTable.vue"]])});export{Q as __tla,m as default};