123 |
- import{e as p,G as b,o as f,a0 as h,g as a,h as n,j as t,z as r,x as m,F as w,Q as y,p as k}from"./vue.e266cb73.js";import{r as l}from"./index.49e09d9d.js";import{I as x}from"./index.8cb47178.js";import{ad as d}from"./index.dcc65bf7.js";import{_ as L}from"./_plugin-vue_export-helper.c27b6911.js";import"./_commonjsHelpers.35101cd5.js";import"./index.3f666869.js";import"./keepAliveNames.4207d036.js";import"./routesList.786cc129.js";import"./themeConfig.ed8e6a95.js";import"./storage.acfc8920.js";import"./preload-helper.41c905a7.js";import"./userInfo.0308cef3.js";import"./loading.85c4a19d.js";import"./tagsViewRoutes.02a94730.js";import"./request.1f3df8c8.js";import"./config.3668004a.js";import"./index.4f91577e.js";import"./index.f84209b0.js";import"./Urls.a85bb052.js";const B={class:"layout-navbars-breadcrumb-user-news"},C={class:"head-box"},N={class:"head-box-title"},G={class:"content-box"},M={class:"content-box-msg"},$={class:"content-box-time"},D=p({name:"layoutBreadcrumbUserNews"}),E=p({...D,emits:["refresh"],setup(I,{expose:_,emit:F}){const o=b({newsList:[],param:{keyword:"",page:1,list_rows:10}}),c=async()=>{let e=await x.message(o.param);if(e.code!=0)return d.error(e.msg);e.data.data.forEach(s=>{s.is_read==0&&o.newsList.push({label:s.title,value:s.content,time:s.update_time,is_read:s.is_read})})};f(()=>{c()});const u=()=>{if(l.currentRoute.value.name=="systemMessage")return d.warning("您已经在通知中心了");l.replace({name:"systemMessage"})};return _({getList:c}),(e,s)=>{const g=h("el-empty");return a(),n("div",B,[t("div",C,[t("div",N,r(e.$t("message.user.newTitle")),1),m(` <div class="head-box-btn" v-if="state.newsList.length > 0" @click="onAllReadClick">{{ $t('message.user.newBtn') }}</div> `)]),t("div",G,[o.newsList.length>0?(a(!0),n(w,{key:0},y(o.newsList,(i,v)=>(a(),n("div",{class:"content-box-item",key:v},[t("div",null,r(i.label),1),t("div",M,r(i.value),1),t("div",$,r(i.time),1)]))),128)):(a(),k(g,{key:1,description:e.$t("message.user.newDesc")},null,8,["description"]))]),o.newsList.length>0?(a(),n("div",{key:0,class:"foot-box",onClick:u},r(e.$t("message.user.newGo")),1)):m("v-if",!0)])}}});const se=L(E,[["__scopeId","data-v-c0325cb8"],["__file","C:/Users/89282/Desktop/lechang_storage/lechang_storage/vue-next-admin/src/layout/navBars/breadcrumb/userNews.vue"]]);export{se as default};
- //# sourceMappingURL=userNews.d8ea8d95.js.map
|