|
@@ -2,7 +2,9 @@
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
<template #header>
|
|
<template #header>
|
|
<div class="card-header">
|
|
<div class="card-header">
|
|
- <span>公告</span>
|
|
|
|
|
|
+ <span>公告
|
|
|
|
+ <el-badge class="mark" v-if="notifylogCount !== 0" :value="notifylogCount" :max="99" style="line-height: 0;margin-top: 8px"/>
|
|
|
|
+ </span>
|
|
<div style="float:right;">
|
|
<div style="float:right;">
|
|
<el-button type="text" @click="refreshList()">刷新</el-button>
|
|
<el-button type="text" @click="refreshList()">刷新</el-button>
|
|
<el-button type="text" @click="toPendingList()">查看更多</el-button>
|
|
<el-button type="text" @click="toPendingList()">查看更多</el-button>
|
|
@@ -101,7 +103,7 @@
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column
|
|
<vxe-column
|
|
title="发布者"
|
|
title="发布者"
|
|
- field="createBy.name"
|
|
|
|
|
|
+ field="createName"
|
|
></vxe-column>
|
|
></vxe-column>
|
|
<vxe-column
|
|
<vxe-column
|
|
title="操作"
|
|
title="操作"
|
|
@@ -167,6 +169,11 @@
|
|
loading: false,
|
|
loading: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ computed:{
|
|
|
|
+ notifylogCount(){
|
|
|
|
+ return this.$store.state.global.notifylogCount
|
|
|
|
+ },
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
this.refreshList();
|
|
this.refreshList();
|
|
},
|
|
},
|
|
@@ -182,16 +189,18 @@
|
|
refreshList() {
|
|
refreshList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
this.notifyService
|
|
this.notifyService
|
|
- .list({
|
|
|
|
|
|
+ .myNotifyList({
|
|
current: this.tablePage.currentPage,
|
|
current: this.tablePage.currentPage,
|
|
size: this.tablePage.pageSize,
|
|
size: this.tablePage.pageSize,
|
|
orders: this.tablePage.orders,
|
|
orders: this.tablePage.orders,
|
|
isSelf: true,
|
|
isSelf: true,
|
|
|
|
+ isClose: '0',
|
|
...this.searchForm,
|
|
...this.searchForm,
|
|
})
|
|
})
|
|
.then((data) => {
|
|
.then((data) => {
|
|
this.dataList = data.records;
|
|
this.dataList = data.records;
|
|
this.tablePage.total = data.total;
|
|
this.tablePage.total = data.total;
|
|
|
|
+ this.$store.state.global.notifylogCount = data.total
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|