|
|
@ -221,7 +221,7 @@
|
|
|
|
title="日志记录"
|
|
|
|
title="日志记录"
|
|
|
|
:bodyStyle="{ padding: '16px' }"
|
|
|
|
:bodyStyle="{ padding: '16px' }"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<a-list :dataSource="logData">
|
|
|
|
<a-list :dataSource="formattedLogDatas">
|
|
|
|
<a-list-item
|
|
|
|
<a-list-item
|
|
|
|
slot="renderItem"
|
|
|
|
slot="renderItem"
|
|
|
|
slot-scope="item, index"
|
|
|
|
slot-scope="item, index"
|
|
|
@ -256,6 +256,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
logType: logApi.logType,
|
|
|
|
activityLoading: true,
|
|
|
|
activityLoading: true,
|
|
|
|
logLoading: true,
|
|
|
|
logLoading: true,
|
|
|
|
countsLoading: true,
|
|
|
|
countsLoading: true,
|
|
|
@ -279,6 +280,12 @@ export default {
|
|
|
|
post.status = postApi.postStatus[post.status]
|
|
|
|
post.status = postApi.postStatus[post.status]
|
|
|
|
return post
|
|
|
|
return post
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
formattedLogDatas() {
|
|
|
|
|
|
|
|
return this.logData.map(log => {
|
|
|
|
|
|
|
|
log.type = this.logType[log.type].text
|
|
|
|
|
|
|
|
return log
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|