Files
aiot-platform-ui/apps/web-antd/dist/js/index-CuT1uj3b.js
lzh c16d049c38
All checks were successful
Web UI CI/CD / build-and-deploy (push) Successful in 8s
chore: build and deploy web-antd
2026-03-31 23:16:25 +08:00

2 lines
8.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var M=Object.defineProperty,N=Object.defineProperties;var P=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var C=(p,d,m)=>d in p?M(p,d,{enumerable:!0,configurable:!0,writable:!0,value:m}):p[d]=m,k=(p,d)=>{for(var m in d||(d={}))V.call(d,m)&&C(p,m,d[m]);if(b)for(var m of b(d))S.call(d,m)&&C(p,m,d[m]);return p},E=(p,d)=>N(p,P(d));var x=(p,d,m)=>new Promise((v,_)=>{var g=i=>{try{f(m.next(i))}catch(e){_(e)}},y=i=>{try{f(m.throw(i))}catch(e){_(e)}},f=i=>i.done?v(i.value):Promise.resolve(i.value).then(g,y);f((m=m.apply(p,d)).next())});import"./vxe-table-CnulWayt.js";import{g as U,_ as $}from"./wx-msg.vue_vue_type_script_setup_true_lang-IfKPRfHy.js";import{_ as A}from"./wx-account-select.vue_vue_type_script_setup_true_lang-3I-L3zE4.js";import{_ as F}from"./wx-location.vue_vue_type_script_setup_true_lang-BLcMp7a8.js";import{M as r}from"./wx-material-select.vue_vue_type_style_index_0_scoped_ee95df5f_lang-Cswkld9u.js";import{_ as B}from"./wx-music.vue_vue_type_script_setup_true_lang-DlBQevLM.js";import{_ as D}from"./wx-news.vue_vue_type_script_setup_true_lang-DHta-k_C.js";import{at as O,az as u,aC as G,c3 as K}from"./bootstrap-peLAqOBq.js";import{_ as q}from"./wx-video-play.vue_vue_type_script_setup_true_lang-nsEmDRmz.js";import{_ as L}from"./wx-voice-play.vue_vue_type_script_setup_true_lang-DEQ8Mjs6.js";import{g as z}from"./rangePickerProps-CDCdOjkx.js";import{D as W}from"./dict-enum-CaHgMaDZ.js";import{_ as Y}from"./table-action.vue_vue_type_script_setup_true_lang-A3twu02O.js";import{m as j,b9 as I,ab as h,b2 as o,bJ as l,j as n,u as t,ad as a,ai as s,bp as c,ae as T,dQ as R}from"../jse/index-index-fr7m5rpH.js";import{_ as H}from"./page.vue_vue_type_script_setup_true_lang-Cw-j3v4f.js";import{u as J}from"./use-vxe-grid-Cv_1yxok.js";import{A as Q}from"./icons-CieLeI1V.js";import"./dict-tag.vue_vue_type_script_setup_true_lang-N9uNt7p5.js";import"./index-Bp9N6W5V.js";import"./msg-list.vue_vue_type_script_setup_true_lang-CV9PUiwu.js";import"./msg.vue_vue_type_script_setup_true_lang-CMcObxv_.js";import"./msg-event.vue_vue_type_script_setup_true_lang-C7XzjJkw.js";import"./wx-reply.vue_vue_type_script_setup_true_lang-BRkQn4TB.js";import"./tab-image.vue_vue_type_script_setup_true_lang-DwVEaV2Q.js";import"./wx-material-select-D-31PBEK.js";import"./useUpload-D9dJ1nr1.js";import"./tab-music.vue_vue_type_script_setup_true_lang-BR2B_yck.js";import"./tab-news.vue_vue_type_script_setup_true_lang-BxKrlaMe.js";import"./tab-text.vue_vue_type_script_setup_true_lang-Bmz_yOf2.js";import"./tab-video.vue_vue_type_script_setup_true_lang-Cd2r_6rm.js";import"./tab-voice.vue_vue_type_script_setup_true_lang-D4LtoU5Y.js";import"./index-s-t3FFuC.js";import"./index-DwabXW0_.js";import"./index-xFYqN11U.js";import"./Text-D5O43i6J.js";import"./index-B8fpydG4.js";function X(){return[{fieldName:"accountId",label:"公众号",component:"Input"},{fieldName:"type",label:"消息类型",component:"Select",componentProps:{placeholder:"请选择消息类型",options:O(W.MP_MESSAGE_TYPE),allowClear:!0}},{fieldName:"openid",label:"用户标识",component:"Input",componentProps:{placeholder:"请输入用户标识",allowClear:!0}},{fieldName:"createTime",label:"创建时间",component:"RangePicker",componentProps:E(k({},z()),{allowClear:!0})}]}function Z(){return[{field:"createTime",title:"发送时间",width:180,align:"center",slots:{default:"createTime"}},{field:"type",title:"消息类型",width:80,align:"center"},{field:"sendFrom",title:"发送方",width:80,align:"center",slots:{default:"sendFrom"}},{field:"openid",title:"用户标识",width:300,align:"center"},{field:"content",title:"内容",align:"left",minWidth:320,slots:{default:"content"}},{field:"actions",title:"操作",width:120,align:"center",fixed:"right",slots:{default:"actions"}}]}const w={key:0},ee={key:1},te={key:2},ie={key:3},ne={key:4},oe={key:5},le={key:6},se={key:7},ae={key:8},re={key:9},de={key:10},me={key:11},ue={key:12},pe={key:13},fe=["href"],ce={key:14},_e={key:15},ye=["href"],ve={key:16},ge={key:17},ke={key:18},he={key:19},ot=j({name:"MpMessage",__name:"index",setup(p){const d=I(!1),m=I(0);function v(f){y.formApi.setValues({accountId:f}),y.formApi.submitForm()}function _(f){m.value=f,d.value=!0}const[g,y]=J({formOptions:{schema:X()},gridOptions:{columns:Z(),height:"auto",keepSource:!0,proxyConfig:{ajax:{query:(e,at)=>x(null,[e,at],function*({page:f},i){return yield U(k({pageNo:f.currentPage,pageSize:f.pageSize},i))})},autoLoad:!1},rowConfig:{keyField:"id",isHover:!0},toolbarConfig:{refresh:!0,search:!0},showOverflow:"tooltip"}});return(f,i)=>(o(),h(t(H),{"auto-content-height":""},{default:l(()=>[n(t(g),null,{"form-accountId":l(()=>[n(t(A),{onChange:v})]),createTime:l(({row:e})=>[s(c(e.createTime?t(R)(e.createTime):""),1)]),sendFrom:l(({row:e})=>[e.sendFrom===1?(o(),h(t(u),{key:0,color:"success"},{default:l(()=>[...i[1]||(i[1]=[s("粉丝",-1)])]),_:1})):(o(),h(t(u),{key:1},{default:l(()=>[...i[2]||(i[2]=[s("公众号",-1)])]),_:1}))]),content:l(({row:e})=>[e.type===t(r).Event&&e.event==="subscribe"?(o(),a("div",w,[n(t(u),{color:"success"},{default:l(()=>[...i[3]||(i[3]=[s("关注",-1)])]),_:1})])):e.type===t(r).Event&&e.event==="unsubscribe"?(o(),a("div",ee,[n(t(u),{color:"error"},{default:l(()=>[...i[4]||(i[4]=[s("取消关注",-1)])]),_:1})])):e.type===t(r).Event&&e.event==="CLICK"?(o(),a("div",te,[n(t(u),null,{default:l(()=>[...i[5]||(i[5]=[s("点击菜单",-1)])]),_:1}),s(" 【"+c(e.eventKey)+"】 ",1)])):e.type===t(r).Event&&e.event==="VIEW"?(o(),a("div",ie,[n(t(u),null,{default:l(()=>[...i[6]||(i[6]=[s("点击菜单链接",-1)])]),_:1}),s(" 【"+c(e.eventKey)+"】 ",1)])):e.type===t(r).Event&&e.event==="scancode_waitmsg"?(o(),a("div",ne,[n(t(u),null,{default:l(()=>[...i[7]||(i[7]=[s("扫码结果",-1)])]),_:1}),s(" 【"+c(e.eventKey)+"】 ",1)])):e.type===t(r).Event&&e.event==="scancode_push"?(o(),a("div",oe,[n(t(u),null,{default:l(()=>[...i[8]||(i[8]=[s("扫码结果",-1)])]),_:1}),s(" 【"+c(e.eventKey)+"】 ",1)])):e.type===t(r).Event&&e.event==="pic_sysphoto"?(o(),a("div",le,[n(t(u),null,{default:l(()=>[...i[9]||(i[9]=[s("系统拍照发图",-1)])]),_:1})])):e.type===t(r).Event&&e.event==="pic_photo_or_album"?(o(),a("div",se,[n(t(u),null,{default:l(()=>[...i[10]||(i[10]=[s("拍照或者相册",-1)])]),_:1})])):e.type===t(r).Event&&e.event==="pic_weixin"?(o(),a("div",ae,[n(t(u),null,{default:l(()=>[...i[11]||(i[11]=[s("微信相册",-1)])]),_:1})])):e.type===t(r).Event&&e.event==="location_select"?(o(),a("div",re,[n(t(u),null,{default:l(()=>[...i[12]||(i[12]=[s("选择地理位置",-1)])]),_:1})])):e.type===t(r).Event?(o(),a("div",de,[n(t(u),{color:"error"},{default:l(()=>[...i[13]||(i[13]=[s("未知事件类型",-1)])]),_:1})])):e.type===t(r).Text?(o(),a("div",me,c(e.content),1)):e.type===t(r).Voice?(o(),a("div",ue,[n(t(L),{url:e.mediaUrl||"",content:e.recognition||""},null,8,["url","content"])])):e.type===t(r).Image?(o(),a("div",pe,[T("a",{href:e.mediaUrl,target:"_blank"},[n(t(G),{src:e.mediaUrl,width:100,preview:!1},null,8,["src"])],8,fe)])):e.type===t(r).Video||e.type==="shortvideo"?(o(),a("div",ce,[n(t(q),{url:e.mediaUrl||"",class:"mt-2"},null,8,["url"])])):e.type===t(r).Link?(o(),a("div",_e,[n(t(u),null,{default:l(()=>[...i[14]||(i[14]=[s("链接",-1)])]),_:1}),i[15]||(i[15]=s(" ",-1)),T("a",{href:e.url,target:"_blank"},c(e.title),9,ye)])):e.type===t(r).Location?(o(),a("div",ve,[n(t(F),{label:e.label||"","location-y":e.locationY||0,"location-x":e.locationX||0},null,8,["label","location-y","location-x"])])):e.type===t(r).Music?(o(),a("div",ge,[n(t(B),{title:e.title,description:e.description,"thumb-media-url":e.thumbMediaUrl||"","music-url":e.musicUrl,"hq-music-url":e.hqMusicUrl},null,8,["title","description","thumb-media-url","music-url","hq-music-url"])])):e.type===t(r).News?(o(),a("div",ke,[n(t(D),{articles:e.articles},null,8,["articles"])])):(o(),a("div",he,[n(t(u),{color:"error"},{default:l(()=>[...i[16]||(i[16]=[s("未知消息类型",-1)])]),_:1})]))]),actions:l(({row:e})=>[n(t(Y),{actions:[{label:"消息",type:"link",icon:t(Q).VIEW,onClick:()=>_(e.userId||0)}]},null,8,["actions"])]),_:1}),n(t(K),{open:d.value,"onUpdate:open":i[0]||(i[0]=e=>d.value=e),title:"粉丝消息列表",width:800,footer:null,"destroy-on-close":""},{default:l(()=>[n(t($),{"user-id":m.value},null,8,["user-id"])]),_:1},8,["open"])]),_:1}))}});export{ot as default};