10/28
1. 会话列表中 添加等待时间-随着时间变化 2. 会话列表筛选条件 3. 关闭消息ws 4. 知识库内容-只有纯文字,没有图片,链接 5.
This commit is contained in:
@@ -12,15 +12,15 @@ const props = defineProps({
|
||||
})
|
||||
|
||||
const display = ref('--')
|
||||
const timerManager = inject('timerManager')
|
||||
const timerManager = inject('timerManager', null)
|
||||
|
||||
watch(
|
||||
() => [props.status, props.startTime],
|
||||
() => {
|
||||
if (props.status === '1' && props.startTime) {
|
||||
timerManager.register(props.rowId, new Date(props.startTime).getTime(), display)
|
||||
if (props.status === '1' && props.startTime > 0) {
|
||||
timerManager?.register(props.rowId, props.startTime, display)
|
||||
} else {
|
||||
timerManager.unregister(props.rowId)
|
||||
timerManager?.unregister(props.rowId)
|
||||
display.value = '--'
|
||||
}
|
||||
},
|
||||
@@ -28,7 +28,7 @@ watch(
|
||||
)
|
||||
|
||||
onUnmounted(() => {
|
||||
timerManager.unregister(props.rowId)
|
||||
timerManager?.unregister(props.rowId)
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -37,3 +37,4 @@ onUnmounted(() => {
|
||||
color: #EA580C;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -59,8 +59,8 @@
|
||||
</div>
|
||||
<div class="null"></div>
|
||||
<div class="brand-footer">
|
||||
<span>© 2025 智净云科技有限公司</span>
|
||||
<span style="margin-left: 24px">京ICP备 2025001234 号 </span>
|
||||
<!-- <span>© 2025 智净云科技有限公司</span>-->
|
||||
<!-- <span style="margin-left: 24px">京ICP备 2025001234 号 </span>-->
|
||||
</div>
|
||||
</section>
|
||||
<section class="login_box">
|
||||
|
||||
@@ -88,6 +88,7 @@ defineEmits(['preview'])
|
||||
border-radius: 16px 4px 16px 16px;
|
||||
padding: 10px 14px;
|
||||
font-size: 14px;
|
||||
word-break: break-all;
|
||||
line-height: 22px;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
}
|
||||
|
||||
@@ -101,6 +101,7 @@ defineEmits(['quickAction'])
|
||||
line-height: 1.6;
|
||||
color: #333;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column :show-overflow-tooltip="true" align="center" label="等待时长" prop="os" width="100">
|
||||
<template #default="{ row }">
|
||||
<AwaitTime :row-id="row.id" :start-time="row.queueTime" :status="row.status"/>
|
||||
<AwaitTime :row-id="row.sessionId" :start-time="parseQueueTime(row.queueTime)" :status="row.status"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :show-overflow-tooltip="true" align="center" label="最后消息时间" prop="lastMessageTime"
|
||||
@@ -184,12 +184,13 @@
|
||||
import {listCsSession as initData, overViewCsSession} from '@/api/system/conversation/index';
|
||||
import {CsSessionQuery, CsSessionVO} from '@/api/system/conversation/types';
|
||||
import {useDict} from '@/utils/dict';
|
||||
import {hiddenPhone} from "@/utils/phone";
|
||||
import {download as requestDownload} from "@/utils/request";
|
||||
import {useTableSelection} from "@/hooks/table/useTableSelection";
|
||||
import {CsAgentVO} from "@/api/system/cssAgent/types";
|
||||
import {listUser} from "@/api/system/user";
|
||||
import {UserVO} from "@/api/system/user/types";
|
||||
import {provide} from 'vue'
|
||||
import {useWaitTimerManager} from '@/components/AwaitTime/useWaitTimerManager'
|
||||
import AwaitTime from '@/components/AwaitTime/index.vue'
|
||||
|
||||
const {com_session_state} = toRefs<any>(useDict('com_session_state'));
|
||||
|
||||
@@ -201,6 +202,12 @@ const total = ref(0);
|
||||
const {ids, single, multiple, handleSelectionChange} = useTableSelection<CsSessionVO>(item => item.sessionId);
|
||||
const queryFormRef = ref<ElFormInstance>();
|
||||
|
||||
function parseQueueTime(queueTime?: string) {
|
||||
if (!queueTime) return 0
|
||||
const ms = new Date(queueTime.replace(/-/g, '/')).getTime()
|
||||
return ms > 0 ? ms : 0
|
||||
}
|
||||
|
||||
|
||||
const queryParamsOptions = ref<UserVO[]>([]);
|
||||
|
||||
@@ -308,17 +315,13 @@ const handleExport = () => {
|
||||
};
|
||||
|
||||
|
||||
import {provide} from 'vue'
|
||||
import {useWaitTimerManager} from '@/components/AwaitTime/useWaitTimerManager'
|
||||
import AwaitTime from '@/components/AwaitTime/index.vue'
|
||||
|
||||
const {register, unregister} = useWaitTimerManager()
|
||||
provide('timerManager', {register, unregister})
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
getList();
|
||||
getOverViewSession()
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ function exportCsSessionStore() {
|
||||
</div>
|
||||
<div class="content beautify_scroll">
|
||||
<MessageList ref="messageListRef" :loading-history="loadingHistory" :messages="msgList"
|
||||
:user-avatar="form.customer.avatarUrl || ''"
|
||||
:user-avatar="form.customer.avatarUrl || defaultImage"
|
||||
@load-more="handleLoadMore"></MessageList>
|
||||
</div>
|
||||
<div class="footer">
|
||||
|
||||
@@ -165,7 +165,7 @@ init()
|
||||
</div>
|
||||
<div class="grid-item">
|
||||
<div class="title">所在房间</div>
|
||||
<div class="value">{{ form.homeName }}</div>
|
||||
<div class="value">{{ form.locationName }}</div>
|
||||
</div>
|
||||
<div class="grid-item">
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user