[update] 修改bug78604
This commit is contained in:
@@ -58,7 +58,6 @@
|
||||
:dataSource="dataSource"
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
@change="handleTableChange">
|
||||
|
||||
<!-- 操作 -->
|
||||
@@ -258,12 +257,11 @@ export default {
|
||||
}
|
||||
},
|
||||
readAll () {
|
||||
if (this.selectedRowKeys.length > 0) {
|
||||
if (this.dataSource.length > 0) {
|
||||
this.$confirm({
|
||||
content: this.$t('message.my.areAllLabelsRead'),
|
||||
onOk: () => {
|
||||
const selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||
postAction(this.url.readAllMsg, { ids: selectedRowKeys.join(',') }).then((res) => {
|
||||
postAction(this.url.readAllMsg, {}).then((res) => {
|
||||
if (res.success) {
|
||||
this.selectedRowKeys = []
|
||||
this.$message.success(this.$t('operationSuccessful'))
|
||||
@@ -275,7 +273,7 @@ export default {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning(this.$t('pleaseSelectData'))
|
||||
this.$message.warning(this.$t('personalCenter.myMessage.noCanRemarkData'))
|
||||
}
|
||||
},
|
||||
onSelectChange (value) {
|
||||
|
||||
Reference in New Issue
Block a user