|
@@ -46,6 +46,7 @@
|
|
|
<s-table
|
|
|
ref="table"
|
|
|
size="default"
|
|
|
+ bordered
|
|
|
rowKey="id"
|
|
|
:columns="columns"
|
|
|
:data="loadData"
|
|
@@ -59,8 +60,7 @@
|
|
|
</template>
|
|
|
</span>
|
|
|
<a slot="name" slot-scope="text" v-html="text"> {{ text }}</a>
|
|
|
- <span slot="content" slot-scope="text" v-html="text">
|
|
|
- </span>
|
|
|
+<!-- <span slot="content" slot-scope="text" v-html="text"></span>-->
|
|
|
</s-table>
|
|
|
</div>
|
|
|
<detail ref="detail" />
|
|
@@ -140,6 +140,7 @@ export default {
|
|
|
columns: [
|
|
|
{
|
|
|
title: '序号',
|
|
|
+ width: 100,
|
|
|
dataIndex: 'index',
|
|
|
align: 'center',
|
|
|
customRender: (text, record, index) => {
|
|
@@ -149,6 +150,7 @@ export default {
|
|
|
{
|
|
|
title: '类型',
|
|
|
dataIndex: 'type',
|
|
|
+ width: 150,
|
|
|
align: 'center',
|
|
|
customRender: (text, record, index) => {
|
|
|
return this.typeDict[text]
|
|
@@ -157,6 +159,7 @@ export default {
|
|
|
{
|
|
|
title: '详细类型',
|
|
|
dataIndex: 'detailType',
|
|
|
+ width: 150,
|
|
|
align: 'center',
|
|
|
customRender: (text, record, index) => {
|
|
|
return this.typeDetailDict[text]
|
|
@@ -167,16 +170,18 @@ export default {
|
|
|
dataIndex: 'content',
|
|
|
align: 'center',
|
|
|
width: 400,
|
|
|
- scopedSlots: { customRender: 'content' }
|
|
|
+ ellipsis: true
|
|
|
},
|
|
|
{
|
|
|
title: '时间',
|
|
|
align: 'center',
|
|
|
+ width: 200,
|
|
|
dataIndex: 'createdTime'
|
|
|
},
|
|
|
{
|
|
|
title: '状态',
|
|
|
align: 'center',
|
|
|
+ width: 100,
|
|
|
dataIndex: 'status',
|
|
|
customRender: (text, record, index) => {
|
|
|
return (text === 1 ? '未读' : '已读')
|
|
@@ -185,6 +190,7 @@ export default {
|
|
|
{
|
|
|
title: '操作',
|
|
|
key: 'action',
|
|
|
+ width: 150,
|
|
|
align: 'center',
|
|
|
scopedSlots: { customRender: 'action' }
|
|
|
}
|