|
|
@@ -57,6 +57,7 @@
|
|
|
import { typeOptions, renderHeader } from './constants'
|
|
|
import Detail from './detail/dialog'
|
|
|
import Reply from './reply'
|
|
|
+ import Bus from "@/utils/EventBus";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -167,7 +168,10 @@
|
|
|
// sorts: []
|
|
|
// }).then(response => {
|
|
|
getMyMsgList(this.getSearcFormData()).then(response => {
|
|
|
- ActionUtils.handleListData(this, response.data)
|
|
|
+ const data = response.data
|
|
|
+ const { pageResult = {} } = data
|
|
|
+ ActionUtils.handleListData(this, data)
|
|
|
+ Bus.$emit('getMessageCount', pageResult.totalCount ? pageResult.totalCount : 0)
|
|
|
this.loading = false
|
|
|
}).catch(err => {
|
|
|
this.loading = false
|
|
|
@@ -282,4 +286,4 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</script>
|
|
|
+</script>
|