修改已知问题
This commit is contained in:
@@ -61,12 +61,13 @@
|
||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:scroll="{x: 1600}"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
<span slot="msgContent" slot-scope="text,scope">
|
||||
<a :style="{'color':scope.readFlag == 0 ? 'red':'#00A0E9'}" :title="text" @click="msgContentClick(scope)">
|
||||
{{text && text.length > 25?text.slice(0,24)+'...':text}}
|
||||
{{text}}
|
||||
</a>
|
||||
</span>
|
||||
<span slot="msgCategory" slot-scope="text,scope">
|
||||
@@ -82,7 +83,7 @@
|
||||
|
||||
<script>
|
||||
import { filterObj } from '@/utils/util'
|
||||
import { getAction, putAction , deleteAction } from '@/api/manage'
|
||||
import { getAction, putAction, deleteAction } from '@/api/manage'
|
||||
import ShowAnnouncement from '@/components/tools/ShowAnnouncement'
|
||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||
import DynamicNotice from '../../components/tools/DynamicNotice'
|
||||
@@ -109,17 +110,21 @@
|
||||
title: this.$t('MessageContent'),
|
||||
align: 'center',
|
||||
dataIndex: 'msgContent',
|
||||
width: 600,
|
||||
ellipsis: true,
|
||||
scopedSlots: { customRender: 'msgContent' }
|
||||
},
|
||||
{
|
||||
title: this.$t('MessageType'),
|
||||
align: 'center',
|
||||
dataIndex: 'msgCategory',
|
||||
width: 200,
|
||||
scopedSlots: { customRender: 'msgCategory' }
|
||||
},
|
||||
{
|
||||
title: this.$t('NotificationTime'),
|
||||
align: 'center',
|
||||
width: 200,
|
||||
dataIndex: 'sendTime'
|
||||
}
|
||||
],
|
||||
@@ -160,10 +165,10 @@
|
||||
getAction(that.url.readAllMsg, { ids: selectedRowKeys.join(',') }).then((res) => {
|
||||
if (res.success) {
|
||||
that.selectedRowKeys = []
|
||||
that.$message.success(this.$t('OperationSuccessful'))
|
||||
that.$message.success(that.$t('OperationSuccessful'))
|
||||
that.loadData()
|
||||
}else{
|
||||
that.$message.success(this.$t('operationFailed'))
|
||||
} else {
|
||||
that.$message.success(that.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -193,10 +198,10 @@
|
||||
deleteAction(that.url.deleteUrl, { ids: selectedRowKeys.join(',') }).then((res) => {
|
||||
if (res.success) {
|
||||
that.selectedRowKeys = []
|
||||
that.$message.success(this.$t('OperationSuccessful'))
|
||||
that.$message.success(that.$t('OperationSuccessful'))
|
||||
that.loadData()
|
||||
}else{
|
||||
that.$message.success(this.$t('operationFailed'))
|
||||
} else {
|
||||
that.$message.success(that.$t('operationFailed'))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user