/*!
 *  build: Vue  Admin Plus
 *  copyright: vue-admin-beautiful.com
 *  time: 2024-03-07 17:07:58
 */
"use strict";(self["webpackChunkadmin_plus"]=self["webpackChunkadmin_plus"]||[]).push([[5850,7283],{74987:function(t,e,a){a.d(e,{_U:function(){return n},lc:function(){return r},qm:function(){return o},r7:function(){return i}});var s=a(92325);function n(t){return(0,s.Z)({url:"/wwwapi.php?to=user&mod=space&do=pm",method:"get",params:t})}function i(t){return(0,s.Z)({url:"/wwwapi.php?to=user&do=notice",method:"get",params:t})}function r(t){return(0,s.Z)({url:"/wwwapi.php?to=usercp&ac=common&op=ignore&handlekey=noticeignore",method:"post",data:{authorid:t,type:"system"}})}function o(t){return(0,s.Z)({url:"/wwwapi.php?to=announcement",method:"get",params:t})}},87283:function(t,e,a){a.r(e),a.d(e,{default:function(){return b}});var s=a(57122),n=(a(3241),a(69540),a(66252)),i=a(2262),r=a(20235);const o=t=>((0,n.dD)("data-v-1f34b258"),t=t(),(0,n.Cn)(),t),u={class:"list-item"},l={class:"list-item-meta"},c={key:0,class:"list-item-meta-avatar"},m={key:1,class:"list-item-meta-avatar"},d=o((()=>(0,n._)("div",{class:"system-avatar"},"系统",-1))),p={class:"list-item-meta-content"},w={class:"list-item-meta-title"},v={class:"list-item-meta-description"},f={class:"list-item-meta-bottom"},g={class:"list-item-meta-operate"};var y={__name:"index",props:{user:{type:Object,default:()=>{}},avatarKey:{type:String,default:""},userIdKey:{type:[String,Number],default:""}},setup(t){const e=t,a=(0,n.Fl)((()=>e.user[e.avatarKey])),o=(0,n.Fl)((()=>parseInt(e.user[e.userIdKey]))),y=(0,n.Fl)((()=>(0,r.gx)(o.value)));return(t,e)=>{const r=s.F8,_=(0,n.up)("router-link");return(0,n.wg)(),(0,n.iD)("div",u,[(0,n._)("div",l,[(0,i.SU)(o)>0?((0,n.wg)(),(0,n.iD)("div",c,[(0,n.Wm)(_,{to:(0,i.SU)(y)},{default:(0,n.w5)((()=>[(0,n.Wm)(r,{src:(0,i.SU)(a),class:"el-avatar el-avatar--big el-avatar--circle"},null,8,["src"])])),_:1},8,["to"])])):((0,n.wg)(),(0,n.iD)("div",m,[(0,n.Wm)(r,{class:"el-avatar el-avatar--big el-avatar--circle"},{error:(0,n.w5)((()=>[d])),_:1})])),(0,n._)("div",p,[(0,n._)("div",w,[(0,n.WI)(t.$slots,"title")]),(0,n._)("div",v,[(0,n.WI)(t.$slots,"description")]),(0,n._)("div",f,[(0,n.WI)(t.$slots,"bottom")])]),(0,n._)("div",g,[(0,n.WI)(t.$slots,"action")])])])}}};function _(t){t.__source="src/components/UserRow/index.vue"}var h=a(83744);"function"===typeof _&&_(y);const k=(0,h.Z)(y,[["__scopeId","data-v-1f34b258"]]);var b=k},45850:function(t,e,a){a.r(e),a.d(e,{default:function(){return h}});var s=a(4350),n=(a(3241),a(91103),a(73632)),i=(a(74965),a(31452)),r=(a(68445),a(22040)),o=(a(99426),a(76128)),u=(a(74828),a(66252)),l=a(3577);const c={class:"list-container"},m=["innerHTML"];function d(t,e,a,d,p,w){const v=o.GT,f=r.Dv,g=i.E2,y=(0,u.up)("UserRow"),_=n.dq,h=s.t;return(0,u.wg)(),(0,u.iD)("div",c,[(0,u.Wm)(_,{gutter:20},{default:(0,u.w5)((()=>[t.emptyShow?((0,u.wg)(),(0,u.j4)(f,{key:0,span:24},{default:(0,u.w5)((()=>[(0,u.Wm)(v,{class:"vab-data-empty",description:"暂无数据"})])),_:1})):(0,u.kq)("",!0),(0,u.Wm)(f,{span:24},{default:(0,u.w5)((()=>[(0,u.wy)(((0,u.wg)(),(0,u.iD)("ul",null,[((0,u.wg)(!0),(0,u.iD)(u.HY,null,(0,u.Ko)(t.dataList,(t=>((0,u.wg)(),(0,u.iD)("li",{key:t.id},[(0,u.Wm)(y,{user:t,"avatar-key":"","user-id-key":""},{title:(0,u.w5)((()=>[(0,u.Uk)((0,l.zw)(t.subject),1)])),description:(0,u.w5)((()=>[0==t.type?((0,u.wg)(),(0,u.iD)("div",{key:0,innerHTML:t.message},null,8,m)):((0,u.wg)(),(0,u.j4)(g,{key:1,href:t.message,target:"_blank",type:"primary"},{default:(0,u.w5)((()=>[(0,u.Uk)((0,l.zw)(t.message),1)])),_:2},1032,["href"]))])),bottom:(0,u.w5)((()=>[(0,u.Uk)((0,l.zw)(t.starttime)+"-"+(0,l.zw)(t.endtime),1)])),_:2},1032,["user"])])))),128))])),[[h,t.listLoading]])])),_:1})])),_:1})])}var p=a(74987),w=a(87283),v=a(2262),f=(0,u.aZ)({name:"List",components:{UserRow:w["default"]},setup(){const t=(0,v.qj)({list:[],listLoading:!0,emptyShow:!0});t.dataList=(0,u.Fl)((()=>t.list.map((t=>{if(1==t.type){const e=/\[\/?url\]/gi;t.message=t.message.replace(e,"")}return t}))));const e=async()=>{t.listLoading=!0;const{body:e}=await(0,p.qm)({});t.list=e,t.listLoading=!1,t.emptyShow=!1};return(0,u.bv)((()=>{e()})),{...(0,v.BK)(t),fetchData:e}}});function g(t){t.__source="src/views/setting/message/components/announcmentList.vue"}var y=a(83744);"function"===typeof g&&g(f);const _=(0,y.Z)(f,[["render",d],["__scopeId","data-v-aca3ca34"]]);var h=_}}]);