修改已知问题

This commit is contained in:
qq787203167
2022-03-23 17:38:29 +08:00
parent 0a0597c810
commit c272904290
13 changed files with 462 additions and 414 deletions
@@ -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'))
}
})
}