1 |
- import{d as R,Q as W,o as e,c as l,x as X,v as d,w as n,f as a,a as r,n as o,t as u,g as c,G as j,al as J,C as O,H as S,I as Z,_ as $,__tla as tt}from"./index-11e4820e.js";import et,{__tla as rt}from"./main-12949ceb.js";import at,{__tla as lt}from"./main-5f2e1efb.js";import ot,{__tla as nt}from"./main-34cd11ba.js";import it,{__tla as st}from"./main-fa699f7a.js";import _t,{__tla as ut}from"./main-811efd88.js";import{d as dt,__tla as ct}from"./formatTime-f6a2c881.js";import{M as i}from"./types-5fca7b13.js";import{__tla as yt}from"./el-link-6cd4f1ac.js";import{__tla as pt}from"./el-image-17e8bc54.js";import{__tla as wt}from"./el-image-viewer-c4f5814f.js";let Y,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,I,K,T,L,V,F,H;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"],I={key:14},K={key:15},T=["href"],L={key:16},V={key:17},F={key:18},H={key:19},Y=$(R({__name:"MessageTable",props:{list:{type:Array,required:!0},loading:{type:Boolean,required:!0}},emits:["send"],setup(z,{emit:A}){const P=z,B=A;return(vt,ft)=>{const _=j,s=J,D=O,G=S,N=W("hasPermi"),Q=Z;return e(),l("div",null,[X((e(),d(G,{data:P.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",I,[a(r(et),{url:t.row.mediaUrl,style:{"margin-top":"10px"}},null,8,["url"])])):t.row.type===r(i).Link?(e(),l("div",K,[a(s,null,{default:n(()=>[o("\u94FE\u63A5")]),_:1}),o(" \uFF1A "),c("a",{href:t.row.url,target:"_blank"},u(t.row.title),9,T)])):t.row.type===r(i).Location?(e(),l("div",L,[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",V,[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",F,[a(r(_t),{articles:t.row.articles},null,8,["articles"])])):(e(),l("div",H,[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=>[X((e(),d(D,{link:"",type:"primary",onClick:ht=>B("send",t.row.userId)},{default:n(()=>[o(" \u6D88\u606F ")]),_:2},1032,["onClick"])),[[N,["mp:message:send"]]])]),_:1})]),_:1},8,["data"])),[[Q,P.loading]])])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/message/MessageTable.vue"]])});export{mt as __tla,Y as default};
|