"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[6784],{86784:function(e,t,a){a.r(t),a.d(t,{default:function(){return f}});var s=a(66252),n=a(3577),i=a(49963);const l={class:"account_systemMessage"},o={class:"account_generalMessage_title modal_title_text"},c=["onClick"],d={class:"account_generalMessage_item_title"},_=["title"],r={class:"modal_title_text_intro"},g={class:"modal_title_text_intro"},u={key:0,class:"account_generalMessage_item_link"},p={key:0,class:"account_generalMessage_item modal_title_text",style:{display:"flex","justify-content":"center"}},m={class:"page_loading_box"},w={class:"page_loading",ref:"loadingDom"};function k(e,t,a,k,v,h){const M=(0,s.up)("a-badge"),y=(0,s.up)("a-spin");return(0,s.wg)(),(0,s.iD)("div",l,[(0,s._)("div",o,[(0,s._)("div",{class:"account_generalMessage_title_setting",onClick:t[0]||(t[0]=(...t)=>e.allRead&&e.allRead(...t))},(0,n.zw)(e.$t("account.AllRead")),1)]),((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(e.dataList,(t=>((0,s.wg)(),(0,s.iD)("div",{class:"account_generalMessage_item modal_title_text",key:t.id,onClick:a=>e.setRead(t)},[(0,s.Wm)(M,{dot:0==t.isRead},null,8,["dot"]),(0,s._)("div",d,[(0,s._)("div",{class:"account_generalMessage_item_title_text",title:t.content},(0,n.zw)(t.content.title),9,_),(0,s._)("div",r,(0,n.zw)(t.createTime),1)]),(0,s._)("div",g,[(0,s.Uk)((0,n.zw)(t.content.content)+" ",1),t.content.link?((0,s.wg)(),(0,s.iD)("span",u,(0,n.zw)(t.content.link),1)):(0,s.kq)("",!0)])],8,c)))),128)),0==e.dataList.length&&e.isNoData?((0,s.wg)(),(0,s.iD)("div",p,(0,n.zw)(e.$t("account.dataNull")),1)):(0,s.kq)("",!0),(0,s.wy)((0,s._)("div",m,[(0,s.wy)((0,s._)("span",w,null,512),[[i.F8,!e.isShowMark]]),(0,s.wy)((0,s._)("span",null,[(0,s.Wm)(y,{size:"large"})],512),[[i.F8,e.isShowMark]])],512),[[i.F8,!e.isNoData]])])}var v=a(2262),h=a(22201),M=a(33907),y=(0,s.aZ)({components:{},props:["setReadStatus","setAllmessage","getHistory"],setup(e,{emit:t}){(0,h.tv)(),(0,M.oR)();let a=(0,v.qj)({dataList:[],page:1,size:10,isNoData:!1,isShowMark:!1}),n=(0,v.iH)(null),i=()=>{a.isShowMark=!0;let t={page:a.page,size:a.size};e.getHistory(t).then((e=>{a.isShowMark=!1,0!=e.content.length?(e.content.forEach((e=>{e.content=JSON.parse(e.content)})),a.dataList=e.content):a.isNoData=!0})).catch((()=>{a.isShowMark=!1,a.isNoData=!0}))},l=t=>{e.setReadStatus(t).then((e=>{t.isRead=1})).catch((e=>{}))},o=()=>{e.setAllmessage().then((()=>{})).catch((e=>{}))};return(0,s.bv)((()=>{a.isNoData=!1,a.page=0;document.querySelector(".account_systemMessage .page_loading");new IntersectionObserver(((e,t)=>{e[0].intersectionRatio&&(a.page+=1,i())})).observe(n.value)})),{...(0,v.BK)(a),setmessageList:i,setRead:l,allRead:o,loadingDom:n}},data(){return{}}}),D=a(83744);const R=(0,D.Z)(y,[["render",k],["__scopeId","data-v-66505126"]]);var f=R}}]);