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-BN5Ac_IG.js";import V from"./DetailModal-BkFgbky5.js";import{g as z,e as I,s as y,a as E,r as O}from"./mynews.api-B9vH4XK6.js";import{render as p}from"./renderUtils-CGtepdOw.js";import{aY as Q,a9 as j,z as q,u as J}from"./index-CYriLmQo.js";import"./index-CF_FJn6P.js";import{useListPage as W}from"./useListPage-i3Wl0_Fg.js";import{u as X}from"./useSysMessage-Cm9Imj70.js";import{Q as Z}from"./componentMap-7D1QIeNI.js";import $ from"./BasicTable-DAfCfXmD.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./BasicModal-BBgVjypv.js";import"./ModalHeader-jGKMr-DQ.js";import"./useTimeout-DC8132dd.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CxQILSKV.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-BTSd5ebC.js";import"./index-BkgeZpOO.js";import"./useForm-8o5KRzWo.js";import"./JAreaLinkage-DFTeDmm8.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-nVFm3ao2.js";import"./props-DoGpHXAD.js";import"./JSelectBiz-BW6f3e--.js";import"./JSelectDept-DorRVguN.js";import"./index-BTAl55Kt.js";import"./bem-2ra1afoV.js";import"./props-BLY2qIO5.js";import"./useContextMenu-DYyhcDf7.js";import"./JCodeEditor-_KZ8XnNK.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-CXT54-j9.js";import"./depart.api-C9T5xfw6.js";import"./JPopup-KP1kIsae.js";import"./EasyCronInput-XK54XB3r.js";import"./JEllipsis-287cEHxd.js";import"./JDictSelectTag-Jqy9TBcS.js";import"./download-CkbK5et1.js";import"./base64Conver-24EVOS6V.js";import"./index-QMJkXEyl.js";import"./index-Bb_NRLur.js";import"./useCountdown-C3-PRPLY.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-pyrTRFCz.js";import"./index-Bx9Mnn3N.js";import"./index-B1-pj6uh.js";import"./index-isxCPgHp.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"}),ce=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{ce as default};
