"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[8699],{78699:function(e,t,a){a.r(t),a.d(t,{default:function(){return I}});var s=a(66252),n=a(3577),i=a(49963);const l=e=>((0,s.dD)("data-v-2ef8fc77"),e=e(),(0,s.Cn)(),e),o={class:"account_comment"},c={class:"account_generalMessage_title modal_title_text"},r={class:"account_generalMessage_center modal_title_text"},_=["onClick"],d={class:"account_generalMessage_item_right"},g=["onClick"],u=["src"],m={class:"account_generalMessage_item_right_title"},h={class:"account_generalMessage_item_right_title_name"},p={class:"account_generalMessage_item_right_title_center modal_title_text_assistant"},v=["onClick"],w={class:"account_generalMessage_item_left"},k=l((()=>(0,s._)("div",{class:"account_generalMessage_item_left_delete modal_title_text_intro"},null,-1))),M={class:"modal_title_text_intro"},f={key:0,class:"account_generalMessage_item",style:{"justify-content":"center"}},y={class:"page_loading_box"},D={class:"page_loading",ref:"loadingDom"};function R(e,t,a,l,R,z){const C=(0,s.up)("a-badge"),b=(0,s.up)("a-spin");return(0,s.wg)(),(0,s.iD)("div",o,[(0,s._)("div",c,[(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._)("div",r,[((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",onClick:a=>e.setRead(t)},[(0,s.Wm)(C,{dot:0==t.isRead},null,8,["dot"]),(0,s._)("div",d,[(0,s._)("div",{class:"account_generalMessage_item_right_img",onClick:(0,i.iM)((a=>e.openOtherUsers(t)),["stop"])},[(0,s._)("img",{src:t.avatar,alt:""},null,8,u)],8,g),(0,s._)("div",m,[(0,s._)("div",h,[(0,s.Uk)((0,n.zw)(t.userName)+" ",1),(0,s._)("span",null,(0,n.zw)(e.$t("account.reply")),1)]),(0,s._)("div",p,(0,n.zw)(t.content),1),(0,s._)("div",{class:"account_generalMessage_item_right_works modal_title_text_intro",onClick:(0,i.iM)((a=>e.openOtherWork(t)),["stop"])},(0,n.zw)(t.portfolioName),9,v)])]),(0,s._)("div",w,[k,(0,s._)("div",M,(0,n.zw)(t.createTime),1)])],8,_)))),256)),0==e.dataList.length&&e.isNoData?((0,s.wg)(),(0,s.iD)("div",f,(0,n.zw)(e.$t("account.dataNull")),1)):(0,s.kq)("",!0),(0,s.wy)((0,s._)("div",y,[(0,s.wy)((0,s._)("span",D,null,512),[[i.F8,!e.isShowMark]]),(0,s.wy)((0,s._)("span",null,[(0,s.Wm)(b,{size:"large"})],512),[[i.F8,e.isShowMark]])],512),[[i.F8,!e.isNoData]])])])}var z=a(2262),C=a(22201),b=a(33907),N=(0,s.aZ)({components:{},props:["setReadStatus","setAllmessage","getHistory"],setup(e,{emit:t}){const a=(0,C.tv)();(0,b.oR)();let n=(0,z.qj)({activeKey:(0,z.iH)("1"),dataList:[],page:1,size:10,isNoData:!1,isShowMark:!1}),i=(0,z.iH)(null),l=()=>{n.isShowMark=!0;let t={page:n.page,size:n.size};e.getHistory(t).then((e=>{n.isShowMark=!1,0!=e.content.length?n.dataList=e.content:n.isNoData=!0})).catch((()=>{n.isShowMark=!1,n.isNoData=!0}))},o=t=>{e.setReadStatus(t).then((e=>{t.isRead=1})).catch((e=>{}))},c=()=>{e.setAllmessage().then((()=>{n.dataList.forEach((e=>{e.isRead=1}))})).catch((e=>{}))},r=e=>{const t=a.resolve({path:"/home/otherUsers",query:{userId:e.senderId}});window.open(t.href,"_blank")},_=e=>{const t=a.resolve({path:"/home/works",query:{workId:e.portfolioId}});window.open(t.href,"_blank")};return(0,s.bv)((()=>{n.isNoData=!1,n.page=0;document.querySelector(".account_systemMessage .page_loading");new IntersectionObserver(((e,t)=>{e[0].intersectionRatio&&(n.page+=1,l())})).observe(i.value)})),{...(0,z.BK)(n),setmessageList:l,setRead:o,allRead:c,openOtherUsers:r,openOtherWork:_,loadingDom:i}},data(){return{}}}),S=a(83744);const x=(0,S.Z)(N,[["render",R],["__scopeId","data-v-2ef8fc77"]]);var I=x}}]);