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-LwlFn7Y4.js";import V from"./DetailModal-BrwqFjCz.js";import{g as z,e as I,s as y,a as E,r as O}from"./mynews.api-DBt0yrSk.js";import{render as p}from"./renderUtils-Cbe4E0PZ.js";import{aY as Q,a9 as j,z as q,u as J}from"./index-B_2CoVdl.js";import"./index-D2AmS0aU.js";import{useListPage as W}from"./useListPage-BEtybUiF.js";import{u as X}from"./useSysMessage-vt9s8mL0.js";import{Q as Z}from"./componentMap-CzCGDP7x.js";import $ from"./BasicTable-Clbg3fHx.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-CkL00Q0a.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./JAreaLinkage-CSgDAlrn.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JSelectDept-wKz_Qtmc.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./JCodeEditor-esTLnfS3.js";import"./useFormItem-CWa0w7fA.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./JAddInput-YFlAniYT.js";import"./depart.api-0qTriT9h.js";import"./JPopup-BJBYqoWe.js";import"./EasyCronInput-DclSHT47.js";import"./JEllipsis-Cn7GCKHR.js";import"./JDictSelectTag-CxpDdimB.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.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};
