var H=Object.defineProperty,N=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable;var b=(t,e,r)=>e in t?H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,M=(t,e)=>{for(var r in e||(e={}))A.call(e,r)&&b(t,r,e[r]);if(g)for(var r of g(e))F.call(e,r)&&b(t,r,e[r]);return t},h=(t,e)=>N(t,Y(e));import{d as T,f as _,o as L,U,a2 as B,a3 as G,k as m,af as d,u as l,G as K}from"./vue-vendor-CxLCUzY4.js";import"./index-KOQNKxnC.js";import V from"./DetailModal-DnynBrE-.js";import{g as z,e as I,s as y,a as E,r as O}from"./mynews.api-DOPwW4Fj.js";import{render as p}from"./renderUtils-BgFeePLc.js";import{aY as Q,a9 as j,z as q,u as J}from"./index-CLZzJyTP.js";import"./index-XZKTTfG1.js";import{useListPage as W}from"./useListPage-CevWQ3ci.js";import{u as X}from"./useSysMessage-BWPOd9H4.js";import{Q as Z}from"./componentMap-DpsJvoqz.js";import $ from"./BasicTable-DUJWN3yz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-C7yPiS0L.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./JAreaLinkage-M9TGy8nY.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JSelectDept-CaEHrQp6.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./JCodeEditor-CR57XeIe.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-B36c3B5x.js";import"./depart.api-DHG2p2Yd.js";import"./JPopup-BvqhHpPl.js";import"./EasyCronInput-CWOTSpxK.js";import"./JEllipsis-C_gT_vEQ.js";import"./JDictSelectTag-CfF54ALX.js";import"./JImageUpload-BFwNYdm5.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./injectionKey-DPVn4AgL.js";const tt=[{title:"标题",dataIndex:"titile",width:100,align:"left"},{title:"消息类型",dataIndex:"msgCategory",width:80,customRender:({text:t})=>p.renderDictNative(t,[{label:"通知公告",value:"1",color:"blue"},{label:"系统消息",value:"2"}],!0)},{title:"发布人",dataIndex:"sender",width:80},{title:"发布时间",dataIndex:"sendTime",width:80},{title:"优先级",dataIndex:"priority",width:80,customRender:({text:t})=>{const e=t=="L"?"blue":t=="M"?"yellow":"red";return p.renderTag(p.renderDict(t,"priority"),e)}},{title:"阅读状态",dataIndex:"readFlag",width:80,customRender:({text:t})=>p.renderDictNative(t,[{label:"未读",value:"0",color:"red"},{label:"已读",value:"1"}],!0)}],et=[{field:"titile",label:"标题",component:"Input",colProps:{span:8}},{field:"sender",label:"发布人",component:"Input",colProps:{span:8}}],ot=T({name:"monitor-mynews"}),ue=T(h(M({},ot),{setup(t){const e=Q(),{createMessage:r}=J(),w=_([]),rt=_({}),c={logType:"1"},[C,{openModal:u}]=j(),f=q(),{goPage:x}=X(),{prefixCls:it,tableContext:v}=W({designScope:"mynews-list",tableProps:{title:"我的消息",api:z,columns:tt,formConfig:{schemas:et,fieldMapToTime:[["fieldTime",["createTime_begin","createTime_end"],"YYYY-MM-DD HH:mm:ss"]]}}}),[D,{reload:a}]=v;function R(o){return[{label:"查看",onClick:k.bind(null,o)}]}function k(o){let i=o.anntId;I({anntId:i}).then(s=>{a(),y({anntId:i})}),x(o,()=>{u(!0,{record:o,isUpdate:!0})})}function nt(o){c.logType=o,a()}function P(){O({},a)}function at(o){w.value=o}L(()=>{S()});function S(){let o=f.getMessageHrefParams;if(o){let i=o.id;i&&I({anntId:i}).then(()=>{a(),y({anntId:i})});let n=o.detailId;n&&E(n).then(s=>{u(!0,{record:s,isUpdate:!0}),f.setMessageHrefParams("")})}}return(o,i)=>{const n=U("a-button");return B(),G("div",null,[m(l($),{onRegister:l(D),searchInfo:c},{tableTitle:d(()=>[m(n,{type:"primary",onClick:P},{default:d(()=>i[0]||(i[0]=[K("全部标注已读")])),_:1})]),action:d(({record:s})=>[m(l(Z),{actions:R(s)},null,8,["actions"])]),_:1},8,["onRegister"]),m(V,{onRegister:l(C)},null,8,["onRegister"])])}}}));export{ue as default};
