1 |
- import{d as h,T as x,D as p,o as r,k as n,w as t,i as e,a as _,S as T,j as v,t as C,l as c,K as q,n as j,s as z,L as D,M as P,_ as V,__tla as A}from"./index-66208f93.js";import B,{__tla as I}from"./main-d3c3164d.js";import{d as K,__tla as L}from"./formatTime-54a7e363.js";let m,M=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return L}catch{}})()]).then(async()=>{m=V(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(S,E)=>{const a=q,o=j,s=z,w=D,b=x("hasPermi"),g=P;return p((r(),n(w,{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(_(B),{key:0,url:l.row.url},null,8,["url"])):T("",!0)]),_:1}),e(a,{label:"\u4E0A\u4F20\u65F6\u95F4",align:"center",formatter:_(K),prop:"createTime",width:"180"},{default:t(l=>[v("span",null,C(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"])),[[b,["mp:material:delete"]]])]),_:1})]),_:1},8,["data"])),[[g,i.loading]])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/mp/material/components/VideoTable.vue"]])});export{M as __tla,m as default};
|