|
@@ -36,7 +36,7 @@
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
<a-badge :count="record.readFlag=='0'? 1 : 0" dot>
|
|
|
- <a-button size="small" type="primary" class="button-success" @click="handleDetail(record)" id="noticeList-detail-btn">详情</a-button>
|
|
|
+ <a-button size="small" type="link" class="button-success" @click="handleDetail(record)" id="noticeList-detail-btn">详情</a-button>
|
|
|
</a-badge>
|
|
|
</template>
|
|
|
</a-table>
|
|
@@ -76,10 +76,12 @@ export default {
|
|
|
tableHeight: 0,
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
columns: [
|
|
|
- { title: '序号', dataIndex: 'no', width: 80, align: 'center' },
|
|
|
- { title: '发布时间', dataIndex: 'createDate', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '标题', dataIndex: 'notice.title', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
- { title: '操作', scopedSlots: { customRender: 'action' }, width: 200, align: 'center' }
|
|
|
+ { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
|
+ { title: '发布时间', dataIndex: 'createDate', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '类别', dataIndex: 'notice.title', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '标题', dataIndex: 'notice.title', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '内容', dataIndex: 'notice.title', width: '35%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '操作', scopedSlots: { customRender: 'action' }, width: '15%', align: 'center' }
|
|
|
],
|
|
|
loadData: [],
|
|
|
paginationProps: {
|
|
@@ -170,7 +172,7 @@ export default {
|
|
|
},
|
|
|
// 详情
|
|
|
handleDetail (row) {
|
|
|
- this.itemId = row.notice.id
|
|
|
+ this.itemId = row.noticeId
|
|
|
this.openModal = true
|
|
|
// 设置已读
|
|
|
if (row.readFlag == '0') {
|