|
|
@@ -1,11 +1,24 @@
|
|
|
+
|
|
|
+//标签页版
|
|
|
<template>
|
|
|
<el-card :style="{height:cardHeight}" class="box-card changeShadow">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <ibps-icon name="commenting" />
|
|
|
+ <div style="width: 50%;display: inline-flex;align-items: center;">
|
|
|
+ <span>{{ title }}</span>
|
|
|
+ <span class="totalityClass">{{totality==null?'0':totality.totalCount>999?'999+':totality.totalCount}}</span>
|
|
|
+ </div>
|
|
|
+ <ibps-desktop-toolbar
|
|
|
+ ref="toolbar"
|
|
|
+ :actions="[{ key: 'refresh' }, { key: 'more' }, { key: 'collapse' }]"
|
|
|
+ @action-event="handleActionEvent"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<div>
|
|
|
- <div class="tabs-title">
|
|
|
+ <!-- <div class="tabs-title">
|
|
|
<ibps-icon name="commenting" />
|
|
|
<span style="font-size: 15px;margin: 0 1%;">{{ title }}</span>
|
|
|
- <!-- <el-badge :value="12" class="item"></el-badge> -->
|
|
|
- <span class="totalityClass">{{ totality.totalCount>999?'999+':totality.totalCount }}</span>
|
|
|
+ <span class="totalityClass">{{totality==null?'0':totality.totalCount>999?'999+':totality.totalCount}}</span>
|
|
|
</div>
|
|
|
<div class="tabs-toolbar">
|
|
|
<ibps-desktop-toolbar
|
|
|
@@ -14,6 +27,7 @@
|
|
|
@action-event="handleActionEvent"
|
|
|
/>
|
|
|
</div>
|
|
|
+ -->
|
|
|
<div ref="body">
|
|
|
<el-tabs
|
|
|
ref="unreadMessageTabs"
|
|
|
@@ -24,7 +38,7 @@
|
|
|
})"
|
|
|
>
|
|
|
<el-tab-pane label="未读" name="innerMessage" style="margin:0;">
|
|
|
- <div ref="tabsContent" :style="{height: getAddHeight(20), width: '100%'}" class="tabs-content">
|
|
|
+ <div ref="tabsContent" :style="{height:getAddHeight(20),width:'100%'}" class="tabs-content">
|
|
|
<el-scrollbar
|
|
|
style="height: 100%;width:100%;"
|
|
|
wrap-class="ibps-scrollbar-wrapper"
|
|
|
@@ -37,12 +51,14 @@
|
|
|
>
|
|
|
<ibps-list-item-meta>
|
|
|
<ibps-icon slot="avatar" name="bolt" style="color:#5cb85c;margin:5px 0 0 5px;" />
|
|
|
+
|
|
|
<el-link slot="title" type="primary" :underline="false">{{ d.subject }}</el-link>
|
|
|
<template slot="description">{{ d.createTime|dateFormat }}</template>
|
|
|
</ibps-list-item-meta>
|
|
|
<div slot="extra">
|
|
|
<!-- <ibps-icon name="dot-circle-o" style="color:#36c6d3" /> -->
|
|
|
<el-tag size="mini" type="warning">{{ d.messageType | filterStatus('unreadMessage') }}</el-tag>
|
|
|
+
|
|
|
</div>
|
|
|
</ibps-list-item>
|
|
|
</ibps-list>
|
|
|
@@ -93,3 +109,68 @@
|
|
|
</div>
|
|
|
</el-card>
|
|
|
</template>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/////
|
|
|
+ <!--<template>-->
|
|
|
+ <!-- <el-card :style="{height:cardHeight}" class="box-card changeShadow">
|
|
|
+ <div slot="header" class="clearfix">
|
|
|
+ <ibps-icon name="commenting" />
|
|
|
+ <div style="width: 50%;display: inline-flex;align-items: center;">
|
|
|
+ <span>{{ title }}</span>
|
|
|
+ <span class="totalityClass">{{totality==null?'0':totality.totalCount>999?'999+':totality.totalCount}}</span>
|
|
|
+ </div>
|
|
|
+ <ibps-desktop-toolbar
|
|
|
+ ref="toolbar"
|
|
|
+ :actions="[{ key: 'refresh' }, { key: 'more' }, { key: 'collapse' }]"
|
|
|
+ @action-event="handleActionEvent"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div ref="body" :style="{height:getAddHeight(),width:'100%'}">
|
|
|
+ <el-scrollbar
|
|
|
+ style="height: 100%;width:100%;"
|
|
|
+ wrap-class="ibps-scrollbar-wrapper"
|
|
|
+ >
|
|
|
+ <ibps-list v-if="data && data.length >0" class="ibps-pr-10">
|
|
|
+ <ibps-list-item
|
|
|
+ v-for="(d,index) in data"
|
|
|
+ :key="index"
|
|
|
+ @click.native="handleUnreadMessage(d.id)"
|
|
|
+ >
|
|
|
+ <ibps-list-item-meta>
|
|
|
+ <ibps-icon slot="avatar" name="bolt" style="color:#5cb85c;margin:5px 0 0 5px;" />
|
|
|
+
|
|
|
+ <el-link slot="title" type="primary" :underline="false">{{ d.subject }}</el-link>
|
|
|
+ <template slot="description">{{ d.createTime|dateFormat }}</template>
|
|
|
+ </ibps-list-item-meta>
|
|
|
+ <div slot="extra">
|
|
|
+ <!-- <ibps-icon name="dot-circle-o" style="color:#36c6d3" /> -->
|
|
|
+ <el-tag size="mini" type="warning">{{ d.messageType | filterStatus('unreadMessage') }}</el-tag>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </ibps-list-item>
|
|
|
+ </ibps-list>
|
|
|
+ <el-alert
|
|
|
+ v-else
|
|
|
+ :title="$t('common.noData')"
|
|
|
+ :closable="false"
|
|
|
+ type="warning"
|
|
|
+ />
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-card> -->
|
|
|
+ <!--</template>-->
|