1 |
- import{d as z,r as d,x as w,o as c,c as x,f as a,B as p,a as e,F as V,P as D,A as E,G as b,l as F,v as A,S as G,Q as H,R,a6 as q,K as B,_ as K,L,U as Q,aZ as W}from"./index-39d329c4.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-24521fcb.js";import{_ as j}from"./ContentWrap.vue_vue_type_script_setup_true_lang-f3ab50e7.js";import{W as O,g as J}from"./main-510e7f64.js";import{M as X}from"./types-5fca7b13.js";import{_ as $}from"./main.vue_vue_type_script_setup_true_lang-7799733e.js";import{_ as ee}from"./MessageTable.vue_vue_type_script_setup_true_lang-cf18cebf.js";import{e as le,D as ae}from"./dict-0856c143.js";import"./index-e66b1f22.js";import"./el-card-5cc80b8a.js";import"./TabNews-5ded56a3.js";import"./main-668d31db.js";import"./el-image-7f18c10a.js";import"./el-image-viewer-b66eac2e.js";import"./_plugin-vue_export-helper-1b428a4d.js";import"./main-9ba9eb2c.js";import"./main-23e4f03b.js";import"./main.vue_vue_type_script_setup_true_lang-2ca0cd2c.js";import"./index-94c594de.js";import"./index-710fee60.js";import"./formatTime-4c4af720.js";import"./main-c89ef482.js";import"./TabText.vue_vue_type_script_setup_true_lang-35e570b2.js";import"./TabImage-a2045be6.js";import"./useUpload-063ad6c3.js";import"./useMessage-47346882.js";import"./TabVoice-80d90373.js";import"./TabVideo-1b2749ce.js";import"./TabMusic.vue_vue_type_script_setup_true_lang-0b570282.js";import"./MsgList-5ac83b6e.js";import"./Msg.vue_vue_type_script_setup_true_lang-fd3a13dc.js";import"./el-link-fd77eff1.js";import"./main.vue_vue_type_script_setup_true_lang-1327f214.js";import"./main-3b9fbebf.js";import"./MsgEvent.vue_vue_type_script_setup_true_lang-e31777fb.js";import"./index-d943c60c.js";import"./index-805db034.js";const oe=z({name:"MpMessage",__name:"index",setup(te){const n=d(!1),u=d(0),f=d([]),o=w({pageNo:1,pageSize:10,openid:"",accountId:-1,type:X.Text,createTime:[]}),_=d(null),s=w({show:!1,userId:0}),I=r=>{o.accountId=r,o.pageNo=1,m()},m=()=>{o.pageNo=1,g()},g=async()=>{try{n.value=!0;const r=await J(o);f.value=r.list,u.value=r.total}finally{n.value=!1}},M=async()=>{var l;const r=o.accountId;(l=_.value)==null||l.resetFields(),o.accountId=r,m()},S=async r=>{s.userId=r,s.show=!0};return(r,l)=>{const i=G,U=H,N=R,T=q,k=B,h=K,y=L,Y=Q,v=j,C=Z,P=W;return c(),x(V,null,[a(v,null,{default:p(()=>[a(Y,{class:"-mb-15px",model:e(o),ref_key:"queryFormRef",ref:_,inline:!0,"label-width":"68px"},{default:p(()=>[a(i,{label:"\u516C\u4F17\u53F7",prop:"accountId"},{default:p(()=>[a(e($),{onChange:I})]),_:1}),a(i,{label:"\u6D88\u606F\u7C7B\u578B",prop:"type"},{default:p(()=>[a(N,{modelValue:e(o).type,"onUpdate:modelValue":l[0]||(l[0]=t=>e(o).type=t),placeholder:"\u8BF7\u9009\u62E9\u6D88\u606F\u7C7B\u578B",class:"!w-240px"},{default:p(()=>[(c(!0),x(V,null,D(e(le)(e(ae).MP_MESSAGE_TYPE),t=>(c(),E(U,{key:t.value,label:t.label,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(i,{label:"\u7528\u6237\u6807\u8BC6",prop:"openid"},{default:p(()=>[a(T,{modelValue:e(o).openid,"onUpdate:modelValue":l[1]||(l[1]=t=>e(o).openid=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6807\u8BC6",clearable:"","v-on":m,class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(i,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime"},{default:p(()=>[a(k,{modelValue:e(o).createTime,"onUpdate:modelValue":l[2]||(l[2]=t=>e(o).createTime=t),style:{width:"240px"},"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":["00:00:00","23:59:59"],class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(i,null,{default:p(()=>[a(y,{onClick:m},{default:p(()=>[a(h,{icon:"ep:search",class:"mr-5px"}),l[7]||(l[7]=b(" \u641C\u7D22 "))]),_:1}),a(y,{onClick:M},{default:p(()=>[a(h,{icon:"ep:refresh",class:"mr-5px"}),l[8]||(l[8]=b(" \u91CD\u7F6E "))]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(v,null,{default:p(()=>[a(ee,{list:e(f),loading:e(n),onSend:S},null,8,["list","loading"]),F(a(C,{total:e(u),page:e(o).pageNo,"onUpdate:page":l[3]||(l[3]=t=>e(o).pageNo=t),limit:e(o).pageSize,"onUpdate:limit":l[4]||(l[4]=t=>e(o).pageSize=t),onPagination:g},null,8,["total","page","limit"]),[[A,e(u)>0]])]),_:1}),a(P,{title:"\u7C89\u4E1D\u6D88\u606F\u5217\u8868",modelValue:e(s).show,"onUpdate:modelValue":l[5]||(l[5]=t=>e(s).show=t),onClick:l[6]||(l[6]=t=>e(s).show=!0),width:"50%","destroy-on-close":""},{default:p(()=>[a(e(O),{"user-id":e(s).userId},null,8,["user-id"])]),_:1},8,["modelValue"])],64)}}});export{oe as default};
|