|
@@ -3,14 +3,15 @@
|
|
|
<van-sticky>
|
|
<van-sticky>
|
|
|
<van-nav-bar
|
|
<van-nav-bar
|
|
|
:title="generateTitle($route.name,$route.params.title||$route.meta.title)"
|
|
:title="generateTitle($route.name,$route.params.title||$route.meta.title)"
|
|
|
- :left-text="$t('common.button.back')"
|
|
|
|
|
- left-arrow
|
|
|
|
|
@click-left="$router.push({ name: 'dashboard' })"
|
|
@click-left="$router.push({ name: 'dashboard' })"
|
|
|
/>
|
|
/>
|
|
|
|
|
+ <van-tabs v-show="tabDatas.length>1" v-model="tabActive" color="#3396FB" line-width="40" class="ibps-border-bm" @click="onClickTab">
|
|
|
|
|
+ <van-tab v-for="data in tabDatas" :key="data.name" :name="data.name" :title="data.title" />
|
|
|
|
|
+ </van-tabs>
|
|
|
<van-search
|
|
<van-search
|
|
|
v-model="subject"
|
|
v-model="subject"
|
|
|
show-action
|
|
show-action
|
|
|
- placeholder="请输入搜索关键词"
|
|
|
|
|
|
|
+ placeholder="请输入主题搜索关键词"
|
|
|
@search="onSearch"
|
|
@search="onSearch"
|
|
|
>
|
|
>
|
|
|
<template #action>
|
|
<template #action>
|
|
@@ -72,7 +73,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
-import { queryReceivePageList } from '@/api/platform/message/innerMessage'
|
|
|
|
|
|
|
+import { getMsgList, getMyMsgListAll } from '@/api/platform/message/innerMessage'
|
|
|
import { typeOptions } from './constants'
|
|
import { typeOptions } from './constants'
|
|
|
import ActionUtils from '@/utils/action'
|
|
import ActionUtils from '@/utils/action'
|
|
|
import i18n from '@/utils/i18n'
|
|
import i18n from '@/utils/i18n'
|
|
@@ -98,11 +99,23 @@ export default {
|
|
|
searchForms: {
|
|
searchForms: {
|
|
|
forms: [
|
|
forms: [
|
|
|
{ prop: 'Q^subject^SL', label: '主题', fieldType: 'text' },
|
|
{ prop: 'Q^subject^SL', label: '主题', fieldType: 'text' },
|
|
|
- { prop: ['Q^beginreceiveTime^DL', 'Q^endreceiveTime^DG'], label: '发送时间', fieldType: 'dateRange', options: { datefmt: 'yyyy-MM-dd' }},
|
|
|
|
|
- { prop: 'Q^messageType.^S', label: '消息类型', fieldType: 'checker', cols: 3, valueKey: 'value', options: typeOptions }
|
|
|
|
|
|
|
+ { prop: 'Q^ownerName^SL', label: '发送人', fieldType: 'text' },
|
|
|
|
|
+ { prop: 'Q^messageType.^S', label: '消息类型', fieldType: 'checker', cols: 3, valueKey: 'value', options: typeOptions },
|
|
|
|
|
+ { prop: 'Q^content^SL', label: '消息内容', fieldType: 'text' },
|
|
|
|
|
+ { prop: ['Q^beginreceiveTime^DL', 'Q^endreceiveTime^DG'], label: '发送时间', fieldType: 'dateRange', options: { datefmt: 'yyyy-MM-dd' }}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ tabActive: '2',
|
|
|
|
|
+ tabDatas: [{
|
|
|
|
|
+ name: '2',
|
|
|
|
|
+ title: '全部'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: '0',
|
|
|
|
|
+ title: '未读'
|
|
|
|
|
+ }, {
|
|
|
|
|
+ name: '1',
|
|
|
|
|
+ title: '已读'
|
|
|
|
|
+ }],
|
|
|
subject: '',
|
|
subject: '',
|
|
|
moreParams: {},
|
|
moreParams: {},
|
|
|
|
|
|
|
@@ -130,7 +143,7 @@ export default {
|
|
|
*/
|
|
*/
|
|
|
loadData() {
|
|
loadData() {
|
|
|
this.loading = true
|
|
this.loading = true
|
|
|
- queryReceivePageList(this.getSearcFormData()).then(response => {
|
|
|
|
|
|
|
+ getMyMsgListAll(this.getSearcFormData()).then(response => {
|
|
|
// 处理数据
|
|
// 处理数据
|
|
|
ActionUtils.handleListData(this, response.data)
|
|
ActionUtils.handleListData(this, response.data)
|
|
|
}).catch((e) => {
|
|
}).catch((e) => {
|
|
@@ -142,8 +155,10 @@ export default {
|
|
|
*/
|
|
*/
|
|
|
getSearcFormData() {
|
|
getSearcFormData() {
|
|
|
let params = {}
|
|
let params = {}
|
|
|
|
|
+
|
|
|
|
|
+ params['Q^isRead^SN'] = this.tabActive
|
|
|
if (this.$utils.isNotEmpty(this.subject)) {
|
|
if (this.$utils.isNotEmpty(this.subject)) {
|
|
|
- params['Q^subject_^SL'] = this.subject
|
|
|
|
|
|
|
+ params['Q^subject^SL'] = this.subject
|
|
|
}
|
|
}
|
|
|
if (this.$utils.isNotEmpty(this.moreParams)) {
|
|
if (this.$utils.isNotEmpty(this.moreParams)) {
|
|
|
params = Object.assign(params, this.moreParams)
|
|
params = Object.assign(params, this.moreParams)
|
|
@@ -201,6 +216,12 @@ export default {
|
|
|
onClick(item) {
|
|
onClick(item) {
|
|
|
this.innerMessageId = item.id
|
|
this.innerMessageId = item.id
|
|
|
this.formVisible = true
|
|
this.formVisible = true
|
|
|
|
|
+ },
|
|
|
|
|
+ onClickTab(){
|
|
|
|
|
+ this.title = ''
|
|
|
|
|
+ this.finished = false
|
|
|
|
|
+ this.loading = true
|
|
|
|
|
+ this.onSearch()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|