1 |
- import{d as R,P as Y,o as e,c as l,C as W,l as d,w as n,i as a,a as r,j as o,t as u,g as c,L as G,ak as O,J as Q,M as S,N as Z,_ as $,__tla as tt}from"./index-afaf388d.js";import et,{__tla as rt}from"./main-1dc41615.js";import at,{__tla as lt}from"./main-5e5bc66b.js";import ot,{__tla as nt}from"./main-f7f4665f.js";import it,{__tla as st}from"./main-e49ca07a.js";import _t,{__tla as ut}from"./main-ec8fb9d1.js";import{d as dt,__tla as ct}from"./formatTime-42952e7f.js";import{M as i}from"./types-5fca7b13.js";import{__tla as yt}from"./el-link-22fa86d2.js";import{__tla as pt}from"./el-image-caa301d0.js";import{__tla as wt}from"./el-image-viewer-9330e340.js";let X,mt=Promise.all([(()=>{try{return tt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return st}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return wt}catch{}})()]).then(async()=>{let y,p,w,m,v,f,h,k,g,b,E,x,U,M,q,C,K,I,L,T,P,V,F;y={key:0},p={key:1},w={key:2},m={key:3},v={key:4},f={key:5},h={key:6},k={key:7},g={key:8},b={key:9},E={key:10},x={key:11},U={key:12},M={key:13},q=["href"],C=["src"],K={key:14},I={key:15},L=["href"],T={key:16},P={key:17},V={key:18},F={key:19},X=$(R({__name:"MessageTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["send"],setup(j,{emit:z}){const N=j,A=z;return(vt,ft)=>{const _=G,s=O,B=Q,D=S,H=Y("hasPermi"),J=Z;return e(),l("div",null,[W((e(),d(D,{data:N.list},{default:n(()=>[a(_,{label:"\u53D1\u9001\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:r(dt)},null,8,["formatter"]),a(_,{label:"\u6D88\u606F\u7C7B\u578B",align:"center",prop:"type",width:"80"}),a(_,{label:"\u53D1\u9001\u65B9",align:"center",prop:"sendFrom",width:"80"},{default:n(t=>[t.row.sendFrom===1?(e(),d(s,{key:0,type:"success"},{default:n(()=>[o("\u7C89\u4E1D")]),_:1})):(e(),d(s,{key:1,type:"info"},{default:n(()=>[o("\u516C\u4F17\u53F7")]),_:1}))]),_:1}),a(_,{label:"\u7528\u6237\u6807\u8BC6",align:"center",prop:"openid",width:"300"}),a(_,{label:"\u5185\u5BB9",prop:"content"},{default:n(t=>[t.row.type===r(i).Event&&t.row.event==="subscribe"?(e(),l("div",y,[a(s,{type:"success"},{default:n(()=>[o("\u5173\u6CE8")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="unsubscribe"?(e(),l("div",p,[a(s,{type:"danger"},{default:n(()=>[o("\u53D6\u6D88\u5173\u6CE8")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="CLICK"?(e(),l("div",w,[a(s,null,{default:n(()=>[o("\u70B9\u51FB\u83DC\u5355")]),_:1}),o(" \u3010"+u(t.row.eventKey)+"\u3011 ",1)])):t.row.type===r(i).Event&&t.row.event==="VIEW"?(e(),l("div",m,[a(s,null,{default:n(()=>[o("\u70B9\u51FB\u83DC\u5355\u94FE\u63A5")]),_:1}),o(" \u3010"+u(t.row.eventKey)+"\u3011 ",1)])):t.row.type===r(i).Event&&t.row.event==="scancode_waitmsg"?(e(),l("div",v,[a(s,null,{default:n(()=>[o("\u626B\u7801\u7ED3\u679C")]),_:1}),o(" \u3010"+u(t.row.eventKey)+"\u3011 ",1)])):t.row.type===r(i).Event&&t.row.event==="scancode_push"?(e(),l("div",f,[a(s,null,{default:n(()=>[o("\u626B\u7801\u7ED3\u679C")]),_:1}),o(" \u3010"+u(t.row.eventKey)+"\u3011 ",1)])):t.row.type===r(i).Event&&t.row.event==="pic_sysphoto"?(e(),l("div",h,[a(s,null,{default:n(()=>[o("\u7CFB\u7EDF\u62CD\u7167\u53D1\u56FE")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="pic_photo_or_album"?(e(),l("div",k,[a(s,null,{default:n(()=>[o("\u62CD\u7167\u6216\u8005\u76F8\u518C")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="pic_weixin"?(e(),l("div",g,[a(s,null,{default:n(()=>[o("\u5FAE\u4FE1\u76F8\u518C")]),_:1})])):t.row.type===r(i).Event&&t.row.event==="location_select"?(e(),l("div",b,[a(s,null,{default:n(()=>[o("\u9009\u62E9\u5730\u7406\u4F4D\u7F6E")]),_:1})])):t.row.type===r(i).Event?(e(),l("div",E,[a(s,{type:"danger"},{default:n(()=>[o("\u672A\u77E5\u4E8B\u4EF6\u7C7B\u578B")]),_:1})])):t.row.type===r(i).Text?(e(),l("div",x,u(t.row.content),1)):t.row.type===r(i).Voice?(e(),l("div",U,[a(r(at),{url:t.row.mediaUrl,content:t.row.recognition},null,8,["url","content"])])):t.row.type===r(i).Image?(e(),l("div",M,[c("a",{target:"_blank",href:t.row.mediaUrl},[c("img",{src:t.row.mediaUrl,style:{width:"100px"}},null,8,C)],8,q)])):t.row.type===r(i).Video||t.row.type==="shortvideo"?(e(),l("div",K,[a(r(et),{url:t.row.mediaUrl,style:{"margin-top":"10px"}},null,8,["url"])])):t.row.type===r(i).Link?(e(),l("div",I,[a(s,null,{default:n(()=>[o("\u94FE\u63A5")]),_:1}),o(" \uFF1A "),c("a",{href:t.row.url,target:"_blank"},u(t.row.title),9,L)])):t.row.type===r(i).Location?(e(),l("div",T,[a(r(ot),{label:t.row.label,"location-y":t.row.locationY,"location-x":t.row.locationX},null,8,["label","location-y","location-x"])])):t.row.type===r(i).Music?(e(),l("div",P,[a(r(it),{title:t.row.title,description:t.row.description,"thumb-media-url":t.row.thumbMediaUrl,"music-url":t.row.musicUrl,"hq-music-url":t.row.hqMusicUrl},null,8,["title","description","thumb-media-url","music-url","hq-music-url"])])):t.row.type===r(i).News?(e(),l("div",V,[a(r(_t),{articles:t.row.articles},null,8,["articles"])])):(e(),l("div",F,[a(s,{type:"danger"},{default:n(()=>[o("\u672A\u77E5\u6D88\u606F\u7C7B\u578B")]),_:1})]))]),_:1}),a(_,{label:"\u64CD\u4F5C",align:"center","class-name":"small-padding fixed-width"},{default:n(t=>[W((e(),d(B,{link:"",type:"primary",onClick:ht=>A("send",t.row.userId)},{default:n(()=>[o(" \u6D88\u606F ")]),_:2},1032,["onClick"])),[[H,["mp:message:send"]]])]),_:1})]),_:1},8,["data"])),[[J,N.loading]])])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/message/MessageTable.vue"]])});export{mt as __tla,X as default};
|