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-gyz1IdHU.js";import V from"./DetailModal-myPkx0TW.js";import{g as z,e as I,s as y,a as E,r as O}from"./mynews.api-DB_yJ_Jy.js";import{render as p}from"./renderUtils-BcsccCoe.js";import{aY as Q,a9 as j,z as q,u as J}from"./index-Cy4uayzW.js";import"./index-zKZnG1QC.js";import{useListPage as W}from"./useListPage-TMORxSEa.js";import{u as X}from"./useSysMessage-kGf4uN4q.js";import{Q as Z}from"./componentMap-0iK4HQBq.js";import $ from"./BasicTable-CgafrQwz.js";import"./antd-vue-vendor-CahNzUUa.js";import"./BasicModal-sKcs_9Ir.js";import"./ModalHeader-ByCVDoqO.js";import"./useTimeout-gJpgadD6.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-Bdn0r8CG.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./index-CYoRlduV.js";import"./index-DYB8Ashr.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./index-tDBMxW9-.js";import"./index-BN26Feep.js";import"./useForm-DfoT2G6J.js";import"./JAreaLinkage-CTMEfTuh.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./JSelectUser-B98pRPrS.js";import"./props-CtlWAg-s.js";import"./JSelectBiz-vYDBA0SK.js";import"./JSelectDept-D-TUaHvK.js";import"./index-CNQBnF3P.js";import"./bem-IZKqD41e.js";import"./props-CG-jAkbI.js";import"./useContextMenu-Q6J5bB_u.js";import"./JCodeEditor-U9QIstNN.js";import"./useFormItem-IOFWTdED.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./JAddInput-DP4caUmw.js";import"./depart.api-B8q8MC-j.js";import"./JPopup-CVHkQZFq.js";import"./EasyCronInput-CZdChTcP.js";import"./JEllipsis-TuDc52fh.js";import"./JDictSelectTag-CalJXNVe.js";import"./JImageUpload-C5OCTlCG.js";import"./download-Bn4f3tzD.js";import"./base64Conver-24EVOS6V.js";import"./index-D6H6KsT6.js";import"./index-CLxBW_h0.js";import"./useCountdown-2P9HvnfJ.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JUpload-DSWoDwh2.js";import"./index-B4vNk56t.js";import"./index-Dc7Jr5-j.js";import"./index-Dm1rPBfc.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};
