|
@@ -20,14 +20,6 @@
|
|
|
<div class="infomations-container">
|
|
<div class="infomations-container">
|
|
|
<a-empty> {{ $t('conversation.history_empty') }} </a-empty>
|
|
<a-empty> {{ $t('conversation.history_empty') }} </a-empty>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
- <!-- <HistoryList
|
|
|
|
|
- v-if="list_history.length !== 0"
|
|
|
|
|
- :list="list_history"
|
|
|
|
|
- :can_loadmore="can_loadmore"
|
|
|
|
|
- @loadmore="handleListLoadMore"
|
|
|
|
|
- @active="handleListItemActive"
|
|
|
|
|
- /> -->
|
|
|
|
|
</template>
|
|
</template>
|
|
|
<template v-if="api_status === 4">
|
|
<template v-if="api_status === 4">
|
|
|
<div class="infomations-container">
|
|
<div class="infomations-container">
|
|
@@ -95,7 +87,8 @@ function dropListByType(res_list) {
|
|
|
// 今天的数据
|
|
// 今天的数据
|
|
|
list_history.value.push({
|
|
list_history.value.push({
|
|
|
client_field_content_type: 'label',
|
|
client_field_content_type: 'label',
|
|
|
- client_field_timestamp_type: 'today'
|
|
|
|
|
|
|
+ client_field_timestamp_type: 'today',
|
|
|
|
|
+ id: 'today'
|
|
|
// content: '今天'
|
|
// content: '今天'
|
|
|
// content: t('conversation.history_today')
|
|
// content: t('conversation.history_today')
|
|
|
});
|
|
});
|
|
@@ -114,7 +107,8 @@ function dropListByType(res_list) {
|
|
|
if (count_month.value === 0) {
|
|
if (count_month.value === 0) {
|
|
|
list_history.value.push({
|
|
list_history.value.push({
|
|
|
client_field_content_type: 'label',
|
|
client_field_content_type: 'label',
|
|
|
- client_field_timestamp_type: 'month'
|
|
|
|
|
|
|
+ client_field_timestamp_type: 'month',
|
|
|
|
|
+ id: 'month'
|
|
|
// content: '本月'
|
|
// content: '本月'
|
|
|
// content: t('conversation.history_month')
|
|
// content: t('conversation.history_month')
|
|
|
});
|
|
});
|
|
@@ -130,7 +124,8 @@ function dropListByType(res_list) {
|
|
|
if (count_earlier.value === 0) {
|
|
if (count_earlier.value === 0) {
|
|
|
list_history.value.push({
|
|
list_history.value.push({
|
|
|
client_field_content_type: 'label',
|
|
client_field_content_type: 'label',
|
|
|
- client_field_timestamp_type: 'earlier'
|
|
|
|
|
|
|
+ client_field_timestamp_type: 'earlier',
|
|
|
|
|
+ id: 'earlier'
|
|
|
// content: '更早以前'
|
|
// content: '更早以前'
|
|
|
// content: t('conversation.history_earlier')
|
|
// content: t('conversation.history_earlier')
|
|
|
});
|
|
});
|
|
@@ -203,6 +198,10 @@ const handleApiRequest = () => {
|
|
|
* 请求更多数据
|
|
* 请求更多数据
|
|
|
*/
|
|
*/
|
|
|
const handleListLoadMore = () => {
|
|
const handleListLoadMore = () => {
|
|
|
|
|
+ if (api_status.value === 2) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (!can_loadmore.value) {
|
|
if (!can_loadmore.value) {
|
|
|
// 没有更多了
|
|
// 没有更多了
|
|
|
return;
|
|
return;
|
|
@@ -225,6 +224,10 @@ const handleListItemActive = (history_id) => {};
|
|
|
* @param value
|
|
* @param value
|
|
|
*/
|
|
*/
|
|
|
const handleHistorySearch = (value) => {
|
|
const handleHistorySearch = (value) => {
|
|
|
|
|
+ if (api_status.value === 2) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
search_text.value = value; // 搜索字符串
|
|
search_text.value = value; // 搜索字符串
|
|
|
page_no.value = 1; // 页码归位
|
|
page_no.value = 1; // 页码归位
|
|
|
|
|
|