update 我的消息
This commit is contained in:
@@ -77,7 +77,7 @@
|
|||||||
// import { filterObj } from '@/utils/util'
|
// import { filterObj } from '@/utils/util'
|
||||||
// import ShowAnnouncement from '@/components/tools/ShowAnnouncement'
|
// import ShowAnnouncement from '@/components/tools/ShowAnnouncement'
|
||||||
// import DynamicNotice from '../../components/tools/DynamicNotice'
|
// import DynamicNotice from '../../components/tools/DynamicNotice'
|
||||||
import { getAction, deleteAction } from '@/api/manage'
|
import { getAction, deleteAction, postAction } from '@/api/manage'
|
||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
// import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
// import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
@@ -263,7 +263,7 @@ export default {
|
|||||||
content: this.$t('message.my.areAllLabelsRead'),
|
content: this.$t('message.my.areAllLabelsRead'),
|
||||||
onOk: () => {
|
onOk: () => {
|
||||||
const selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
const selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
getAction(this.url.readAllMsg, { ids: selectedRowKeys.join(',') }).then((res) => {
|
postAction(this.url.readAllMsg, { ids: selectedRowKeys.join(',') }).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.$message.success(this.$t('operationSuccessful'))
|
this.$message.success(this.$t('operationSuccessful'))
|
||||||
@@ -282,7 +282,7 @@ export default {
|
|||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
},
|
},
|
||||||
msgContentClick (row) {
|
msgContentClick (row) {
|
||||||
getAction(this.url.readAllMsg, { ids: row.id })
|
postAction(this.url.readAllMsg, { ids: row.id })
|
||||||
},
|
},
|
||||||
handleDel () {
|
handleDel () {
|
||||||
if (this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user